1 | declare const isLight: (color: string) => boolean;
|
2 | declare const getLightVariant: (color: string) => string;
|
3 | declare const getDarkVariant: (color: string) => string;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | declare const getContrastVariant: (color: string) => string;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | declare const shade: (color: string, amount: number) => string;
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | declare const getShadeVariant: (color: string, ifLight: number, ifDark?: number) => string;
|
29 |
|
30 | declare type ThemeColors = Record<string, undefined | string>;
|
31 | interface Shades extends Record<string, undefined | number | [darker: number, lighter: number]> {
|
32 | hover?: number | [darker: number, lighter: number];
|
33 | active?: number | [darker: number, lighter: number];
|
34 | disabled?: number | [darker: number, lighter: number];
|
35 | selected?: number | [darker: number, lighter: number];
|
36 | }
|
37 | declare const createOnColor: (colors: ThemeColors, key: string, color?: string | undefined) => ThemeColors;
|
38 | declare const generateOnColors: (base: ThemeColors) => ThemeColors;
|
39 | declare const createShadeVariants: (colors: ThemeColors, key: string, shades?: Shades, color?: string | undefined) => ThemeColors;
|
40 | declare const generateColors: (base: ThemeColors, shades?: Shades | undefined) => ThemeColors;
|
41 |
|
42 | export { Shades, ThemeColors, createOnColor, createShadeVariants, generateColors, generateOnColors, getContrastVariant, getDarkVariant, getLightVariant, getShadeVariant, isLight, shade };
|
43 |
|