UNPKG

2.85 kBTypeScriptView Raw
1/**
2 * We're avoding importing these colors from @atlaskit/theme since we
3 * do not want to have react as a dependency of this package.
4 * TODO: Refactor this once tokenization by Core team is ready
5 * https://product-fabric.atlassian.net/browse/CS-908
6 */
7export declare const R50 = "#FFEBE6";
8export declare const R75 = "#FFBDAD";
9export declare const R100 = "#FF8F73";
10export declare const R300 = "#FF5630";
11export declare const R400 = "#DE350B";
12export declare const R500 = "#BF2600";
13export declare const Y50 = "#FFFAE6";
14export declare const Y75 = "#FFF0B3";
15export declare const Y200 = "#FFC400";
16export declare const Y400 = "#FF991F";
17export declare const Y500 = "#FF8B00";
18export declare const G50 = "#E3FCEF";
19export declare const G75 = "#ABF5D1";
20export declare const G200 = "#57D9A3";
21export declare const G300 = "#36B37E";
22export declare const G400 = "#00875A";
23export declare const G500 = "#006644";
24export declare const B50 = "#DEEBFF";
25export declare const B75 = "#B3D4FF";
26export declare const B100 = "#4C9AFF";
27export declare const B400 = "#0052CC";
28export declare const B500 = "#0747A6";
29export declare const N0 = "#FFFFFF";
30export declare const N20 = "#F4F5F7";
31export declare const N30 = "#EBECF0";
32export declare const N40 = "#DFE1E6";
33export declare const N50 = "#C1C7D0";
34export declare const N60 = "#B3BAC5";
35export declare const N80 = "#97A0AF";
36export declare const N90 = "#8993A4";
37export declare const N200 = "#6B778C";
38export declare const N300 = "#5E6C84";
39export declare const N300A = "#091E4224";
40export declare const N500 = "#42526E";
41export declare const N600 = "#758195";
42export declare const N800 = "#172B4D";
43export declare const N1000 = "#172B4D";
44export declare const P50 = "#EAE6FF";
45export declare const P75 = "#C0B6F2";
46export declare const P100 = "#998DD9";
47export declare const P300 = "#6554C0";
48export declare const P400 = "#5243AA";
49export declare const P500 = "#403294";
50export declare const T50 = "#E6FCFF";
51export declare const T75 = "#B3F5FF";
52export declare const T100 = "#79E2F2";
53export declare const T300 = "#00B8D9";
54export declare const T500 = "#008DA6";
55/**
56 * @return String with HEX-coded color.
57 */
58export declare function normalizeHexColor(color: string | null, defaultColor?: string): string | null;
59/**
60 * Converts hex color format to rgb.
61 * Works well with full hex color format and shortcut as well.
62 *
63 * @param hex - hex color string (#xxx, or #xxxxxx)
64 */
65export declare function hexToRgb(color: string): string | null;
66/**
67 * Converts hex color format to rgba.
68 *
69 * @param hex - hex color string (#xxx, or #xxxxxx)
70 */
71export declare function hexToRgba(rawColor: string, alpha: number): string | null;
72export declare function rgbToHex(value: string): string | null;
73export declare function isRgb(color: string): boolean;
74export declare function isHex(color: string): boolean;