UNPKG

@ionic/cli

Version:

A tool for creating and developing Ionic Framework mobile apps.

24 lines (23 loc) 572 B
export interface RGB { b: number; g: number; r: number; } export interface HSL { h: number; l: number; s: number; } export declare class Color { readonly hex: string; readonly hsl: HSL; readonly rgb: RGB; readonly yiq: number; constructor(value: string | RGB | HSL); static isColor(value: string): boolean; contrast: (threshold?: number) => Color; mix: (from: string | RGB | HSL | Color, amount?: number) => Color; shade: (weight?: number) => Color; tint: (weight?: number) => Color; toList(): string; }