@fluentui/react-theme 9.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +786 -0
- package/CHANGELOG.md +317 -0
- package/LICENSE +15 -0
- package/README.md +5 -0
- package/dist/react-theme.d.ts +425 -0
- package/lib/alias/dark.d.ts +3 -0
- package/lib/alias/dark.js +123 -0
- package/lib/alias/dark.js.map +1 -0
- package/lib/alias/highContrast.d.ts +3 -0
- package/lib/alias/highContrast.js +123 -0
- package/lib/alias/highContrast.js.map +1 -0
- package/lib/alias/light.d.ts +3 -0
- package/lib/alias/light.js +123 -0
- package/lib/alias/light.js.map +1 -0
- package/lib/alias/teamsDark.d.ts +3 -0
- package/lib/alias/teamsDark.js +123 -0
- package/lib/alias/teamsDark.js.map +1 -0
- package/lib/global/borderRadius.d.ts +2 -0
- package/lib/global/borderRadius.js +9 -0
- package/lib/global/borderRadius.js.map +1 -0
- package/lib/global/brandColors.d.ts +4 -0
- package/lib/global/brandColors.js +37 -0
- package/lib/global/brandColors.js.map +1 -0
- package/lib/global/colors.d.ts +15 -0
- package/lib/global/colors.js +825 -0
- package/lib/global/colors.js.map +1 -0
- package/lib/global/fonts.d.ts +6 -0
- package/lib/global/fonts.js +51 -0
- package/lib/global/fonts.js.map +1 -0
- package/lib/global/index.d.ts +5 -0
- package/lib/global/index.js +6 -0
- package/lib/global/index.js.map +1 -0
- package/lib/global/strokeWidths.d.ts +2 -0
- package/lib/global/strokeWidths.js +7 -0
- package/lib/global/strokeWidths.js.map +1 -0
- package/lib/global/utils.d.ts +2 -0
- package/lib/global/utils.js +37 -0
- package/lib/global/utils.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -0
- package/lib/themes/index.d.ts +2 -0
- package/lib/themes/index.js +3 -0
- package/lib/themes/index.js.map +1 -0
- package/lib/themes/teams/darkTheme.d.ts +2 -0
- package/lib/themes/teams/darkTheme.js +4 -0
- package/lib/themes/teams/darkTheme.js.map +1 -0
- package/lib/themes/teams/highContrastTheme.d.ts +2 -0
- package/lib/themes/teams/highContrastTheme.js +4 -0
- package/lib/themes/teams/highContrastTheme.js.map +1 -0
- package/lib/themes/teams/index.d.ts +3 -0
- package/lib/themes/teams/index.js +4 -0
- package/lib/themes/teams/index.js.map +1 -0
- package/lib/themes/teams/lightTheme.d.ts +2 -0
- package/lib/themes/teams/lightTheme.js +4 -0
- package/lib/themes/teams/lightTheme.js.map +1 -0
- package/lib/themes/web/darkTheme.d.ts +2 -0
- package/lib/themes/web/darkTheme.js +4 -0
- package/lib/themes/web/darkTheme.js.map +1 -0
- package/lib/themes/web/highContrastTheme.d.ts +2 -0
- package/lib/themes/web/highContrastTheme.js +4 -0
- package/lib/themes/web/highContrastTheme.js.map +1 -0
- package/lib/themes/web/index.d.ts +3 -0
- package/lib/themes/web/index.js +4 -0
- package/lib/themes/web/index.js.map +1 -0
- package/lib/themes/web/lightTheme.d.ts +2 -0
- package/lib/themes/web/lightTheme.js +4 -0
- package/lib/themes/web/lightTheme.js.map +1 -0
- package/lib/tsdoc-metadata.json +11 -0
- package/lib/types.d.ts +333 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/createDarkTheme.d.ts +2 -0
- package/lib/utils/createDarkTheme.js +17 -0
- package/lib/utils/createDarkTheme.js.map +1 -0
- package/lib/utils/createHighContrastTheme.d.ts +2 -0
- package/lib/utils/createHighContrastTheme.js +17 -0
- package/lib/utils/createHighContrastTheme.js.map +1 -0
- package/lib/utils/createLightTheme.d.ts +2 -0
- package/lib/utils/createLightTheme.js +17 -0
- package/lib/utils/createLightTheme.js.map +1 -0
- package/lib/utils/createTeamsDarkTheme.d.ts +2 -0
- package/lib/utils/createTeamsDarkTheme.js +17 -0
- package/lib/utils/createTeamsDarkTheme.js.map +1 -0
- package/lib/utils/index.d.ts +6 -0
- package/lib/utils/index.js +7 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/mergeThemes.d.ts +8 -0
- package/lib/utils/mergeThemes.js +71 -0
- package/lib/utils/mergeThemes.js.map +1 -0
- package/lib/utils/shadows.d.ts +2 -0
- package/lib/utils/shadows.js +11 -0
- package/lib/utils/shadows.js.map +1 -0
- package/lib/utils/themeToCSSVariables.d.ts +2 -0
- package/lib/utils/themeToCSSVariables.js +29 -0
- package/lib/utils/themeToCSSVariables.js.map +1 -0
- package/lib-amd/alias/dark.d.ts +3 -0
- package/lib-amd/alias/dark.js +129 -0
- package/lib-amd/alias/dark.js.map +1 -0
- package/lib-amd/alias/highContrast.d.ts +3 -0
- package/lib-amd/alias/highContrast.js +129 -0
- package/lib-amd/alias/highContrast.js.map +1 -0
- package/lib-amd/alias/light.d.ts +3 -0
- package/lib-amd/alias/light.js +129 -0
- package/lib-amd/alias/light.js.map +1 -0
- package/lib-amd/alias/teamsDark.d.ts +3 -0
- package/lib-amd/alias/teamsDark.js +129 -0
- package/lib-amd/alias/teamsDark.js.map +1 -0
- package/lib-amd/global/borderRadius.d.ts +2 -0
- package/lib-amd/global/borderRadius.js +14 -0
- package/lib-amd/global/borderRadius.js.map +1 -0
- package/lib-amd/global/brandColors.d.ts +4 -0
- package/lib-amd/global/brandColors.js +42 -0
- package/lib-amd/global/brandColors.js.map +1 -0
- package/lib-amd/global/colors.d.ts +15 -0
- package/lib-amd/global/colors.js +830 -0
- package/lib-amd/global/colors.js.map +1 -0
- package/lib-amd/global/fonts.d.ts +6 -0
- package/lib-amd/global/fonts.js +58 -0
- package/lib-amd/global/fonts.js.map +1 -0
- package/lib-amd/global/index.d.ts +5 -0
- package/lib-amd/global/index.js +10 -0
- package/lib-amd/global/index.js.map +1 -0
- package/lib-amd/global/strokeWidths.d.ts +2 -0
- package/lib-amd/global/strokeWidths.js +12 -0
- package/lib-amd/global/strokeWidths.js.map +1 -0
- package/lib-amd/global/utils.d.ts +2 -0
- package/lib-amd/global/utils.js +35 -0
- package/lib-amd/global/utils.js.map +1 -0
- package/lib-amd/index.d.ts +4 -0
- package/lib-amd/index.js +9 -0
- package/lib-amd/index.js.map +1 -0
- package/lib-amd/themes/index.d.ts +2 -0
- package/lib-amd/themes/index.js +7 -0
- package/lib-amd/themes/index.js.map +1 -0
- package/lib-amd/themes/teams/darkTheme.d.ts +2 -0
- package/lib-amd/themes/teams/darkTheme.js +7 -0
- package/lib-amd/themes/teams/darkTheme.js.map +1 -0
- package/lib-amd/themes/teams/highContrastTheme.d.ts +2 -0
- package/lib-amd/themes/teams/highContrastTheme.js +7 -0
- package/lib-amd/themes/teams/highContrastTheme.js.map +1 -0
- package/lib-amd/themes/teams/index.d.ts +3 -0
- package/lib-amd/themes/teams/index.js +8 -0
- package/lib-amd/themes/teams/index.js.map +1 -0
- package/lib-amd/themes/teams/lightTheme.d.ts +2 -0
- package/lib-amd/themes/teams/lightTheme.js +7 -0
- package/lib-amd/themes/teams/lightTheme.js.map +1 -0
- package/lib-amd/themes/web/darkTheme.d.ts +2 -0
- package/lib-amd/themes/web/darkTheme.js +7 -0
- package/lib-amd/themes/web/darkTheme.js.map +1 -0
- package/lib-amd/themes/web/highContrastTheme.d.ts +2 -0
- package/lib-amd/themes/web/highContrastTheme.js +7 -0
- package/lib-amd/themes/web/highContrastTheme.js.map +1 -0
- package/lib-amd/themes/web/index.d.ts +3 -0
- package/lib-amd/themes/web/index.js +8 -0
- package/lib-amd/themes/web/index.js.map +1 -0
- package/lib-amd/themes/web/lightTheme.d.ts +2 -0
- package/lib-amd/themes/web/lightTheme.js +7 -0
- package/lib-amd/themes/web/lightTheme.js.map +1 -0
- package/lib-amd/types.d.ts +333 -0
- package/lib-amd/types.js +5 -0
- package/lib-amd/types.js.map +1 -0
- package/lib-amd/utils/createDarkTheme.d.ts +2 -0
- package/lib-amd/utils/createDarkTheme.js +17 -0
- package/lib-amd/utils/createDarkTheme.js.map +1 -0
- package/lib-amd/utils/createHighContrastTheme.d.ts +2 -0
- package/lib-amd/utils/createHighContrastTheme.js +17 -0
- package/lib-amd/utils/createHighContrastTheme.js.map +1 -0
- package/lib-amd/utils/createLightTheme.d.ts +2 -0
- package/lib-amd/utils/createLightTheme.js +17 -0
- package/lib-amd/utils/createLightTheme.js.map +1 -0
- package/lib-amd/utils/createTeamsDarkTheme.d.ts +2 -0
- package/lib-amd/utils/createTeamsDarkTheme.js +17 -0
- package/lib-amd/utils/createTeamsDarkTheme.js.map +1 -0
- package/lib-amd/utils/index.d.ts +6 -0
- package/lib-amd/utils/index.js +12 -0
- package/lib-amd/utils/index.js.map +1 -0
- package/lib-amd/utils/mergeThemes.d.ts +8 -0
- package/lib-amd/utils/mergeThemes.js +66 -0
- package/lib-amd/utils/mergeThemes.js.map +1 -0
- package/lib-amd/utils/shadows.d.ts +2 -0
- package/lib-amd/utils/shadows.js +17 -0
- package/lib-amd/utils/shadows.js.map +1 -0
- package/lib-amd/utils/themeToCSSVariables.d.ts +2 -0
- package/lib-amd/utils/themeToCSSVariables.js +28 -0
- package/lib-amd/utils/themeToCSSVariables.js.map +1 -0
- package/lib-commonjs/alias/dark.d.ts +3 -0
- package/lib-commonjs/alias/dark.js +132 -0
- package/lib-commonjs/alias/dark.js.map +1 -0
- package/lib-commonjs/alias/highContrast.d.ts +3 -0
- package/lib-commonjs/alias/highContrast.js +132 -0
- package/lib-commonjs/alias/highContrast.js.map +1 -0
- package/lib-commonjs/alias/light.d.ts +3 -0
- package/lib-commonjs/alias/light.js +132 -0
- package/lib-commonjs/alias/light.js.map +1 -0
- package/lib-commonjs/alias/teamsDark.d.ts +3 -0
- package/lib-commonjs/alias/teamsDark.js +132 -0
- package/lib-commonjs/alias/teamsDark.js.map +1 -0
- package/lib-commonjs/global/borderRadius.d.ts +2 -0
- package/lib-commonjs/global/borderRadius.js +15 -0
- package/lib-commonjs/global/borderRadius.js.map +1 -0
- package/lib-commonjs/global/brandColors.d.ts +4 -0
- package/lib-commonjs/global/brandColors.js +43 -0
- package/lib-commonjs/global/brandColors.js.map +1 -0
- package/lib-commonjs/global/colors.d.ts +15 -0
- package/lib-commonjs/global/colors.js +831 -0
- package/lib-commonjs/global/colors.js.map +1 -0
- package/lib-commonjs/global/fonts.d.ts +6 -0
- package/lib-commonjs/global/fonts.js +57 -0
- package/lib-commonjs/global/fonts.js.map +1 -0
- package/lib-commonjs/global/index.d.ts +5 -0
- package/lib-commonjs/global/index.js +18 -0
- package/lib-commonjs/global/index.js.map +1 -0
- package/lib-commonjs/global/strokeWidths.d.ts +2 -0
- package/lib-commonjs/global/strokeWidths.js +13 -0
- package/lib-commonjs/global/strokeWidths.js.map +1 -0
- package/lib-commonjs/global/utils.d.ts +2 -0
- package/lib-commonjs/global/utils.js +51 -0
- package/lib-commonjs/global/utils.js.map +1 -0
- package/lib-commonjs/index.d.ts +4 -0
- package/lib-commonjs/index.js +16 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/themes/index.d.ts +2 -0
- package/lib-commonjs/themes/index.js +12 -0
- package/lib-commonjs/themes/index.js.map +1 -0
- package/lib-commonjs/themes/teams/darkTheme.d.ts +2 -0
- package/lib-commonjs/themes/teams/darkTheme.js +13 -0
- package/lib-commonjs/themes/teams/darkTheme.js.map +1 -0
- package/lib-commonjs/themes/teams/highContrastTheme.d.ts +2 -0
- package/lib-commonjs/themes/teams/highContrastTheme.js +13 -0
- package/lib-commonjs/themes/teams/highContrastTheme.js.map +1 -0
- package/lib-commonjs/themes/teams/index.d.ts +3 -0
- package/lib-commonjs/themes/teams/index.js +14 -0
- package/lib-commonjs/themes/teams/index.js.map +1 -0
- package/lib-commonjs/themes/teams/lightTheme.d.ts +2 -0
- package/lib-commonjs/themes/teams/lightTheme.js +13 -0
- package/lib-commonjs/themes/teams/lightTheme.js.map +1 -0
- package/lib-commonjs/themes/web/darkTheme.d.ts +2 -0
- package/lib-commonjs/themes/web/darkTheme.js +13 -0
- package/lib-commonjs/themes/web/darkTheme.js.map +1 -0
- package/lib-commonjs/themes/web/highContrastTheme.d.ts +2 -0
- package/lib-commonjs/themes/web/highContrastTheme.js +13 -0
- package/lib-commonjs/themes/web/highContrastTheme.js.map +1 -0
- package/lib-commonjs/themes/web/index.d.ts +3 -0
- package/lib-commonjs/themes/web/index.js +14 -0
- package/lib-commonjs/themes/web/index.js.map +1 -0
- package/lib-commonjs/themes/web/lightTheme.d.ts +2 -0
- package/lib-commonjs/themes/web/lightTheme.js +13 -0
- package/lib-commonjs/themes/web/lightTheme.js.map +1 -0
- package/lib-commonjs/types.d.ts +333 -0
- package/lib-commonjs/types.js +6 -0
- package/lib-commonjs/types.js.map +1 -0
- package/lib-commonjs/utils/createDarkTheme.d.ts +2 -0
- package/lib-commonjs/utils/createDarkTheme.js +30 -0
- package/lib-commonjs/utils/createDarkTheme.js.map +1 -0
- package/lib-commonjs/utils/createHighContrastTheme.d.ts +2 -0
- package/lib-commonjs/utils/createHighContrastTheme.js +30 -0
- package/lib-commonjs/utils/createHighContrastTheme.js.map +1 -0
- package/lib-commonjs/utils/createLightTheme.d.ts +2 -0
- package/lib-commonjs/utils/createLightTheme.js +30 -0
- package/lib-commonjs/utils/createLightTheme.js.map +1 -0
- package/lib-commonjs/utils/createTeamsDarkTheme.d.ts +2 -0
- package/lib-commonjs/utils/createTeamsDarkTheme.js +30 -0
- package/lib-commonjs/utils/createTeamsDarkTheme.js.map +1 -0
- package/lib-commonjs/utils/index.d.ts +6 -0
- package/lib-commonjs/utils/index.js +28 -0
- package/lib-commonjs/utils/index.js.map +1 -0
- package/lib-commonjs/utils/mergeThemes.d.ts +8 -0
- package/lib-commonjs/utils/mergeThemes.js +81 -0
- package/lib-commonjs/utils/mergeThemes.js.map +1 -0
- package/lib-commonjs/utils/shadows.d.ts +2 -0
- package/lib-commonjs/utils/shadows.js +20 -0
- package/lib-commonjs/utils/shadows.js.map +1 -0
- package/lib-commonjs/utils/themeToCSSVariables.d.ts +2 -0
- package/lib-commonjs/utils/themeToCSSVariables.js +38 -0
- package/lib-commonjs/utils/themeToCSSVariables.js.map +1 -0
- package/package.json +52 -0
@@ -0,0 +1,425 @@
|
|
1
|
+
export declare type AlphaColors = 5 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
|
2
|
+
|
3
|
+
export declare type BackgroundColorTokens = {
|
4
|
+
background: string;
|
5
|
+
backgroundHover: string;
|
6
|
+
backgroundPressed: string;
|
7
|
+
backgroundSelected: string;
|
8
|
+
};
|
9
|
+
|
10
|
+
export declare const black = "#000000";
|
11
|
+
|
12
|
+
export declare const blackAlpha: Record<AlphaColors, string>;
|
13
|
+
|
14
|
+
export declare type BorderRadius = {
|
15
|
+
none: string;
|
16
|
+
small: string;
|
17
|
+
medium: string;
|
18
|
+
large: string;
|
19
|
+
xLarge: string;
|
20
|
+
circular: string;
|
21
|
+
};
|
22
|
+
|
23
|
+
export declare const borderRadius: BorderRadius;
|
24
|
+
|
25
|
+
export declare type BrandColorTokens = {
|
26
|
+
brandBackground: string;
|
27
|
+
brandBackgroundHover: string;
|
28
|
+
brandBackgroundPressed: string;
|
29
|
+
brandBackgroundSelected: string;
|
30
|
+
brandBackgroundStatic: string;
|
31
|
+
};
|
32
|
+
|
33
|
+
export declare type BrandVariants = ColorVariants & {
|
34
|
+
shade60: string;
|
35
|
+
};
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Possible color variant values
|
39
|
+
*/
|
40
|
+
export declare type ColorVariants = {
|
41
|
+
shade50: string;
|
42
|
+
shade40: string;
|
43
|
+
shade30: string;
|
44
|
+
shade20: string;
|
45
|
+
shade10: string;
|
46
|
+
primary: string;
|
47
|
+
tint10: string;
|
48
|
+
tint20: string;
|
49
|
+
tint30: string;
|
50
|
+
tint40: string;
|
51
|
+
tint50: string;
|
52
|
+
tint60: string;
|
53
|
+
};
|
54
|
+
|
55
|
+
export declare const createDarkTheme: (brand: BrandVariants) => Theme;
|
56
|
+
|
57
|
+
export declare const createGlobalTheme: (brand: BrandVariants) => Theme['global'];
|
58
|
+
|
59
|
+
export declare const createHighContrastTheme: (brand: BrandVariants) => Theme;
|
60
|
+
|
61
|
+
export declare const createLightTheme: (brand: BrandVariants) => Theme;
|
62
|
+
|
63
|
+
export declare const createTeamsDarkTheme: (brand: BrandVariants) => Theme;
|
64
|
+
|
65
|
+
export declare type FontFamilies = {
|
66
|
+
base: string;
|
67
|
+
monospace: string;
|
68
|
+
numeric: string;
|
69
|
+
};
|
70
|
+
|
71
|
+
export declare const fontFamilies: FontFamilies;
|
72
|
+
|
73
|
+
export declare type FontSizes = {
|
74
|
+
base: {
|
75
|
+
100: string;
|
76
|
+
200: string;
|
77
|
+
300: string;
|
78
|
+
400: string;
|
79
|
+
500: string;
|
80
|
+
600: string;
|
81
|
+
};
|
82
|
+
hero: {
|
83
|
+
700: string;
|
84
|
+
800: string;
|
85
|
+
900: string;
|
86
|
+
1000: string;
|
87
|
+
};
|
88
|
+
};
|
89
|
+
|
90
|
+
export declare const fontSizes: FontSizes;
|
91
|
+
|
92
|
+
export declare type FontWeights = {
|
93
|
+
regular: number;
|
94
|
+
medium: number;
|
95
|
+
semibold: number;
|
96
|
+
};
|
97
|
+
|
98
|
+
export declare const fontWeights: FontWeights;
|
99
|
+
|
100
|
+
export declare type GhostColorTokens = {
|
101
|
+
ghostBackground: string;
|
102
|
+
ghostBackgroundHover: string;
|
103
|
+
ghostBackgroundPressed: string;
|
104
|
+
ghostBackgroundSelected: string;
|
105
|
+
};
|
106
|
+
|
107
|
+
/**
|
108
|
+
* All the global shared colors and their shade/tint variants
|
109
|
+
*/
|
110
|
+
export declare type GlobalSharedColors = {
|
111
|
+
darkRed: ColorVariants;
|
112
|
+
burgundy: ColorVariants;
|
113
|
+
cranberry: ColorVariants;
|
114
|
+
red: ColorVariants;
|
115
|
+
darkOrange: ColorVariants;
|
116
|
+
bronze: ColorVariants;
|
117
|
+
pumpkin: ColorVariants;
|
118
|
+
orange: ColorVariants;
|
119
|
+
peach: ColorVariants;
|
120
|
+
marigold: ColorVariants;
|
121
|
+
yellow: ColorVariants;
|
122
|
+
gold: ColorVariants;
|
123
|
+
brass: ColorVariants;
|
124
|
+
brown: ColorVariants;
|
125
|
+
darkBrown: ColorVariants;
|
126
|
+
lime: ColorVariants;
|
127
|
+
forest: ColorVariants;
|
128
|
+
seafoam: ColorVariants;
|
129
|
+
lightGreen: ColorVariants;
|
130
|
+
green: ColorVariants;
|
131
|
+
darkGreen: ColorVariants;
|
132
|
+
lightTeal: ColorVariants;
|
133
|
+
teal: ColorVariants;
|
134
|
+
darkTeal: ColorVariants;
|
135
|
+
cyan: ColorVariants;
|
136
|
+
steel: ColorVariants;
|
137
|
+
lightBlue: ColorVariants;
|
138
|
+
blue: ColorVariants;
|
139
|
+
royalBlue: ColorVariants;
|
140
|
+
darkBlue: ColorVariants;
|
141
|
+
cornflower: ColorVariants;
|
142
|
+
navy: ColorVariants;
|
143
|
+
lavender: ColorVariants;
|
144
|
+
purple: ColorVariants;
|
145
|
+
darkPurple: ColorVariants;
|
146
|
+
orchid: ColorVariants;
|
147
|
+
grape: ColorVariants;
|
148
|
+
berry: ColorVariants;
|
149
|
+
lilac: ColorVariants;
|
150
|
+
pink: ColorVariants;
|
151
|
+
hotPink: ColorVariants;
|
152
|
+
magenta: ColorVariants;
|
153
|
+
plum: ColorVariants;
|
154
|
+
beige: ColorVariants;
|
155
|
+
mink: ColorVariants;
|
156
|
+
silver: ColorVariants;
|
157
|
+
platinum: ColorVariants;
|
158
|
+
anchor: ColorVariants;
|
159
|
+
charcoal: ColorVariants;
|
160
|
+
};
|
161
|
+
|
162
|
+
export declare const grey: Record<Greys, string>;
|
163
|
+
|
164
|
+
export declare type Greys = 0 | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 46 | 48 | 50 | 52 | 54 | 56 | 58 | 60 | 62 | 64 | 66 | 68 | 70 | 72 | 74 | 76 | 78 | 80 | 82 | 84 | 86 | 88 | 90 | 92 | 94 | 96 | 98 | 100;
|
165
|
+
|
166
|
+
export declare const hcButtonFace = "#ffffff";
|
167
|
+
|
168
|
+
export declare const hcButtonText = "#000000";
|
169
|
+
|
170
|
+
export declare const hcCanvas = "#000000";
|
171
|
+
|
172
|
+
export declare const hcCanvasText = "#ffffff";
|
173
|
+
|
174
|
+
export declare const hcDisabled = "#3ff23f";
|
175
|
+
|
176
|
+
export declare const hcHighlight = "#1aebff";
|
177
|
+
|
178
|
+
export declare const hcHighlightText = "#000000";
|
179
|
+
|
180
|
+
export declare const hcHyperlink = "#ffff00";
|
181
|
+
|
182
|
+
export declare type LineHeights = FontSizes;
|
183
|
+
|
184
|
+
export declare const lineHeights: LineHeights;
|
185
|
+
|
186
|
+
export declare function mergeThemes(a: Theme | undefined, b: PartialTheme | Theme | undefined): Theme;
|
187
|
+
|
188
|
+
/**
|
189
|
+
* Design tokens for neutral colors
|
190
|
+
*/
|
191
|
+
export declare type NeutralColorTokens = {
|
192
|
+
neutralForeground1: string;
|
193
|
+
neutralForeground2: string;
|
194
|
+
neutralForeground2Hover: string;
|
195
|
+
neutralForeground2Pressed: string;
|
196
|
+
neutralForeground2Selected: string;
|
197
|
+
neutralForeground2BrandHover: string;
|
198
|
+
neutralForeground2BrandPressed: string;
|
199
|
+
neutralForeground2BrandSelected: string;
|
200
|
+
neutralForeground3: string;
|
201
|
+
neutralForeground3Hover: string;
|
202
|
+
neutralForeground3Pressed: string;
|
203
|
+
neutralForeground3Selected: string;
|
204
|
+
neutralForeground3BrandHover: string;
|
205
|
+
neutralForeground3BrandPressed: string;
|
206
|
+
neutralForeground3BrandSelected: string;
|
207
|
+
neutralForeground4: string;
|
208
|
+
neutralForegroundDisabled: string;
|
209
|
+
brandForegroundLink: string;
|
210
|
+
brandForegroundLinkHover: string;
|
211
|
+
brandForegroundLinkPressed: string;
|
212
|
+
brandForegroundLinkSelected: string;
|
213
|
+
compoundBrandForeground1: string;
|
214
|
+
compoundBrandForeground1Hover: string;
|
215
|
+
compoundBrandForeground1Pressed: string;
|
216
|
+
brandForeground1: string;
|
217
|
+
brandForeground2: string;
|
218
|
+
neutralForegroundInverted: string;
|
219
|
+
neutralForegroundOnBrand: string;
|
220
|
+
neutralForegroundInvertedLink: string;
|
221
|
+
neutralForegroundInvertedLinkHover: string;
|
222
|
+
neutralForegroundInvertedLinkPressed: string;
|
223
|
+
neutralForegroundInvertedLinkSelected: string;
|
224
|
+
neutralBackground1: string;
|
225
|
+
neutralBackground1Hover: string;
|
226
|
+
neutralBackground1Pressed: string;
|
227
|
+
neutralBackground1Selected: string;
|
228
|
+
neutralBackground2: string;
|
229
|
+
neutralBackground2Hover: string;
|
230
|
+
neutralBackground2Pressed: string;
|
231
|
+
neutralBackground2Selected: string;
|
232
|
+
neutralBackground3: string;
|
233
|
+
neutralBackground3Hover: string;
|
234
|
+
neutralBackground3Pressed: string;
|
235
|
+
neutralBackground3Selected: string;
|
236
|
+
neutralBackground4: string;
|
237
|
+
neutralBackground4Hover: string;
|
238
|
+
neutralBackground4Pressed: string;
|
239
|
+
neutralBackground4Selected: string;
|
240
|
+
neutralBackground5: string;
|
241
|
+
neutralBackground5Hover: string;
|
242
|
+
neutralBackground5Pressed: string;
|
243
|
+
neutralBackground5Selected: string;
|
244
|
+
neutralBackground6: string;
|
245
|
+
neutralBackgroundInverted: string;
|
246
|
+
subtleBackground: string;
|
247
|
+
subtleBackgroundHover: string;
|
248
|
+
subtleBackgroundPressed: string;
|
249
|
+
subtleBackgroundSelected: string;
|
250
|
+
transparentBackground: string;
|
251
|
+
transparentBackgroundHover: string;
|
252
|
+
transparentBackgroundPressed: string;
|
253
|
+
transparentBackgroundSelected: string;
|
254
|
+
neutralBackgroundDisabled: string;
|
255
|
+
neutralStencil1: string;
|
256
|
+
neutralStencil2: string;
|
257
|
+
brandBackground: string;
|
258
|
+
brandBackgroundHover: string;
|
259
|
+
brandBackgroundPressed: string;
|
260
|
+
brandBackgroundSelected: string;
|
261
|
+
compoundBrandBackground: string;
|
262
|
+
compoundBrandBackgroundHover: string;
|
263
|
+
compoundBrandBackgroundPressed: string;
|
264
|
+
brandBackgroundStatic: string;
|
265
|
+
brandBackground2: string;
|
266
|
+
neutralStrokeAccessible: string;
|
267
|
+
neutralStrokeAccessibleHover: string;
|
268
|
+
neutralStrokeAccessiblePressed: string;
|
269
|
+
neutralStrokeAccessibleSelected: string;
|
270
|
+
neutralStroke1: string;
|
271
|
+
neutralStroke1Hover: string;
|
272
|
+
neutralStroke1Pressed: string;
|
273
|
+
neutralStroke1Selected: string;
|
274
|
+
neutralStroke2: string;
|
275
|
+
neutralStroke3: string;
|
276
|
+
brandStroke1: string;
|
277
|
+
brandStroke2: string;
|
278
|
+
compoundBrandStroke: string;
|
279
|
+
compoundBrandStrokeHover: string;
|
280
|
+
compoundBrandStrokePressed: string;
|
281
|
+
neutralStrokeDisabled: string;
|
282
|
+
transparentStroke: string;
|
283
|
+
transparentStrokeInteractive: string;
|
284
|
+
transparentStrokeDisabled: string;
|
285
|
+
strokeFocus1: string;
|
286
|
+
strokeFocus2: string;
|
287
|
+
neutralShadowAmbient: string;
|
288
|
+
neutralShadowKey: string;
|
289
|
+
neutralShadowAmbientLighter: string;
|
290
|
+
neutralShadowKeyLighter: string;
|
291
|
+
neutralShadowAmbientDarker: string;
|
292
|
+
neutralShadowKeyDarker: string;
|
293
|
+
brandShadowAmbient: string;
|
294
|
+
brandShadowKey: string;
|
295
|
+
};
|
296
|
+
|
297
|
+
export declare type PartialTheme = RecursivePartial<Theme>;
|
298
|
+
|
299
|
+
/**
|
300
|
+
* Brand color variants by product
|
301
|
+
*/
|
302
|
+
export declare type ProductBrandColors = {
|
303
|
+
teams: BrandVariants;
|
304
|
+
web: BrandVariants;
|
305
|
+
};
|
306
|
+
|
307
|
+
/**
|
308
|
+
* Recursive partial type.
|
309
|
+
*/
|
310
|
+
declare type RecursivePartial<T> = {
|
311
|
+
[P in keyof T]?: T[P] extends Array<infer I> ? Array<RecursivePartial<I>> : RecursivePartial<T[P]>;
|
312
|
+
};
|
313
|
+
|
314
|
+
/**
|
315
|
+
* Design tokens for shadow levels
|
316
|
+
*/
|
317
|
+
export declare type ShadowLevelTokens = {
|
318
|
+
shadow2: string;
|
319
|
+
shadow4: string;
|
320
|
+
shadow8: string;
|
321
|
+
shadow16: string;
|
322
|
+
shadow28: string;
|
323
|
+
shadow64: string;
|
324
|
+
};
|
325
|
+
|
326
|
+
export declare const sharedColors: GlobalSharedColors;
|
327
|
+
|
328
|
+
/**
|
329
|
+
* Design tokens available for shared colors
|
330
|
+
*/
|
331
|
+
export declare type SharedColorTokens = {
|
332
|
+
background1: string;
|
333
|
+
background2: string;
|
334
|
+
background3: string;
|
335
|
+
foreground1: string;
|
336
|
+
foreground2: string;
|
337
|
+
foreground3: string;
|
338
|
+
borderActive: string;
|
339
|
+
border2: string;
|
340
|
+
};
|
341
|
+
|
342
|
+
export declare type StrokeWidths = {
|
343
|
+
thin: string;
|
344
|
+
thick: string;
|
345
|
+
thicker: string;
|
346
|
+
thickest: string;
|
347
|
+
};
|
348
|
+
|
349
|
+
export declare const strokeWidths: StrokeWidths;
|
350
|
+
|
351
|
+
export declare const teamsDarkTheme: Theme;
|
352
|
+
|
353
|
+
export declare const teamsHighContrastTheme: Theme;
|
354
|
+
|
355
|
+
export declare const teamsLightTheme: Theme;
|
356
|
+
|
357
|
+
export declare type TextAlignment = 'inherit' | 'initial' | 'revert' | 'unset' | 'center' | 'end' | 'start' | 'justify' | 'left' | 'match-parent' | 'right';
|
358
|
+
|
359
|
+
export declare type TextAlignments = {
|
360
|
+
start: TextAlignment;
|
361
|
+
center: TextAlignment;
|
362
|
+
end: TextAlignment;
|
363
|
+
justify: TextAlignment;
|
364
|
+
};
|
365
|
+
|
366
|
+
export declare const textAlignments: TextAlignments;
|
367
|
+
|
368
|
+
export declare type Theme = {
|
369
|
+
global: {
|
370
|
+
color: {
|
371
|
+
black: string;
|
372
|
+
white: string;
|
373
|
+
hcHyperlink: string;
|
374
|
+
hcHighlight: string;
|
375
|
+
hcDisabled: string;
|
376
|
+
hcCanvas: string;
|
377
|
+
hcCanvasText: string;
|
378
|
+
hcHighlightText: string;
|
379
|
+
hcButtonText: string;
|
380
|
+
hcButtonFace: string;
|
381
|
+
};
|
382
|
+
palette: GlobalSharedColors & {
|
383
|
+
brand: BrandVariants;
|
384
|
+
grey: Record<Greys, string>;
|
385
|
+
whiteAlpha: Record<AlphaColors, string>;
|
386
|
+
blackAlpha: Record<AlphaColors, string>;
|
387
|
+
};
|
388
|
+
type: {
|
389
|
+
fontSizes: FontSizes;
|
390
|
+
fontWeights: FontWeights;
|
391
|
+
fontFamilies: FontFamilies;
|
392
|
+
lineHeights: LineHeights;
|
393
|
+
alignment: TextAlignments;
|
394
|
+
};
|
395
|
+
borderRadius: BorderRadius;
|
396
|
+
strokeWidth: StrokeWidths;
|
397
|
+
};
|
398
|
+
alias: {
|
399
|
+
color: Record<keyof GlobalSharedColors, SharedColorTokens> & {
|
400
|
+
neutral: NeutralColorTokens;
|
401
|
+
};
|
402
|
+
shadow: ShadowLevelTokens;
|
403
|
+
};
|
404
|
+
};
|
405
|
+
|
406
|
+
export declare function themeToCSSVariables(theme: Theme): Record<string, string>;
|
407
|
+
|
408
|
+
export declare type TransparentColorTokens = {
|
409
|
+
transparentBackground: string;
|
410
|
+
transparentBackgroundHover: string;
|
411
|
+
transparentBackgroundPressed: string;
|
412
|
+
transparentBackgroundSelected: string;
|
413
|
+
};
|
414
|
+
|
415
|
+
export declare const webDarkTheme: Theme;
|
416
|
+
|
417
|
+
export declare const webHighContrastTheme: Theme;
|
418
|
+
|
419
|
+
export declare const webLightTheme: Theme;
|
420
|
+
|
421
|
+
export declare const white = "#ffffff";
|
422
|
+
|
423
|
+
export declare const whiteAlpha: Record<AlphaColors, string>;
|
424
|
+
|
425
|
+
export { }
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type { GlobalSharedColors, NeutralColorTokens, SharedColorTokens } from '../types';
|
2
|
+
export declare const neutralColorTokens: NeutralColorTokens;
|
3
|
+
export declare const generateSharedColorTokens: (globalSharedTokens: GlobalSharedColors) => Record<keyof GlobalSharedColors, SharedColorTokens>;
|
@@ -0,0 +1,123 @@
|
|
1
|
+
export var neutralColorTokens = {
|
2
|
+
neutralForeground1: 'var(--global-color-white)',
|
3
|
+
neutralForeground2: 'var(--global-palette-grey-84)',
|
4
|
+
neutralForeground2Hover: 'var(--global-color-white)',
|
5
|
+
neutralForeground2Pressed: 'var(--global-color-white)',
|
6
|
+
neutralForeground2Selected: 'var(--global-color-white)',
|
7
|
+
neutralForeground2BrandHover: 'var(--global-palette-brand-tint20)',
|
8
|
+
neutralForeground2BrandPressed: 'var(--global-palette-brand-tint10)',
|
9
|
+
neutralForeground2BrandSelected: 'var(--global-palette-brand-tint20)',
|
10
|
+
neutralForeground3: 'var(--global-palette-grey-68)',
|
11
|
+
neutralForeground3Hover: 'var(--global-palette-grey-84)',
|
12
|
+
neutralForeground3Pressed: 'var(--global-palette-grey-84)',
|
13
|
+
neutralForeground3Selected: 'var(--global-palette-grey-84)',
|
14
|
+
neutralForeground3BrandHover: 'var(--global-palette-brand-tint20)',
|
15
|
+
neutralForeground3BrandPressed: 'var(--global-palette-brand-tint10)',
|
16
|
+
neutralForeground3BrandSelected: 'var(--global-palette-brand-tint20)',
|
17
|
+
neutralForeground4: 'var(--global-palette-grey-60)',
|
18
|
+
neutralForegroundDisabled: 'var(--global-palette-grey-36)',
|
19
|
+
brandForegroundLink: 'var(--global-palette-brand-tint10)',
|
20
|
+
brandForegroundLinkHover: 'var(--global-palette-brand-tint30)',
|
21
|
+
brandForegroundLinkPressed: 'var(--global-palette-brand-tint20)',
|
22
|
+
brandForegroundLinkSelected: 'var(--global-palette-brand-tint10)',
|
23
|
+
compoundBrandForeground1: 'var(--global-palette-brand-tint10)',
|
24
|
+
compoundBrandForeground1Hover: 'var(--global-palette-brand-tint20)',
|
25
|
+
compoundBrandForeground1Pressed: 'var(--global-palette-brand-primary)',
|
26
|
+
brandForeground1: 'var(--global-palette-brand-tint20)',
|
27
|
+
brandForeground2: 'var(--global-palette-brand-tint30)',
|
28
|
+
neutralForegroundInverted: 'var(--global-palette-grey-14)',
|
29
|
+
neutralForegroundOnBrand: 'var(--global-color-white)',
|
30
|
+
neutralForegroundInvertedLink: 'var(--global-color-white)',
|
31
|
+
neutralForegroundInvertedLinkHover: 'var(--global-color-white)',
|
32
|
+
neutralForegroundInvertedLinkPressed: 'var(--global-color-white)',
|
33
|
+
neutralForegroundInvertedLinkSelected: 'var(--global-color-white)',
|
34
|
+
neutralBackground1: 'var(--global-palette-grey-16)',
|
35
|
+
neutralBackground1Hover: 'var(--global-palette-grey-24)',
|
36
|
+
neutralBackground1Pressed: 'var(--global-palette-grey-12)',
|
37
|
+
neutralBackground1Selected: 'var(--global-palette-grey-22)',
|
38
|
+
neutralBackground2: 'var(--global-palette-grey-12)',
|
39
|
+
neutralBackground2Hover: 'var(--global-palette-grey-20)',
|
40
|
+
neutralBackground2Pressed: 'var(--global-palette-grey-8)',
|
41
|
+
neutralBackground2Selected: 'var(--global-palette-grey-18)',
|
42
|
+
neutralBackground3: 'var(--global-palette-grey-8)',
|
43
|
+
neutralBackground3Hover: 'var(--global-palette-grey-16)',
|
44
|
+
neutralBackground3Pressed: 'var(--global-palette-grey-4)',
|
45
|
+
neutralBackground3Selected: 'var(--global-palette-grey-14)',
|
46
|
+
neutralBackground4: 'var(--global-palette-grey-4)',
|
47
|
+
neutralBackground4Hover: 'var(--global-palette-grey-12)',
|
48
|
+
neutralBackground4Pressed: 'var(--global-color-black)',
|
49
|
+
neutralBackground4Selected: 'var(--global-palette-grey-10)',
|
50
|
+
neutralBackground5: 'var(--global-color-black)',
|
51
|
+
neutralBackground5Hover: 'var(--global-palette-grey-8)',
|
52
|
+
neutralBackground5Pressed: 'var(--global-palette-grey-2)',
|
53
|
+
neutralBackground5Selected: 'var(--global-palette-grey-6)',
|
54
|
+
neutralBackground6: 'var(--global-palette-grey-20)',
|
55
|
+
neutralBackgroundInverted: 'var(--global-color-white)',
|
56
|
+
subtleBackground: 'transparent',
|
57
|
+
subtleBackgroundHover: 'var(--global-palette-grey-22)',
|
58
|
+
subtleBackgroundPressed: 'var(--global-palette-grey-18)',
|
59
|
+
subtleBackgroundSelected: 'var(--global-palette-grey-20)',
|
60
|
+
transparentBackground: 'transparent',
|
61
|
+
transparentBackgroundHover: 'transparent',
|
62
|
+
transparentBackgroundPressed: 'transparent',
|
63
|
+
transparentBackgroundSelected: 'transparent',
|
64
|
+
neutralBackgroundDisabled: 'var(--global-palette-grey-8)',
|
65
|
+
neutralStencil1: 'var(--global-palette-grey-20)',
|
66
|
+
neutralStencil2: 'var(--global-palette-grey-34)',
|
67
|
+
brandBackground: 'var(--global-palette-brand-shade10)',
|
68
|
+
brandBackgroundHover: 'var(--global-palette-brand-primary)',
|
69
|
+
brandBackgroundPressed: 'var(--global-palette-brand-shade40)',
|
70
|
+
brandBackgroundSelected: 'var(--global-palette-brand-shade20)',
|
71
|
+
compoundBrandBackground: 'var(--global-palette-brand-tint10)',
|
72
|
+
compoundBrandBackgroundHover: 'var(--global-palette-brand-tint20)',
|
73
|
+
compoundBrandBackgroundPressed: 'var(--global-palette-brand-primary)',
|
74
|
+
brandBackgroundStatic: 'var(--global-palette-brand-primary)',
|
75
|
+
brandBackground2: 'var(--global-palette-brand-shade40)',
|
76
|
+
neutralStrokeAccessible: 'var(--global-palette-grey-68)',
|
77
|
+
neutralStrokeAccessibleHover: 'var(--global-palette-grey-74)',
|
78
|
+
neutralStrokeAccessiblePressed: 'var(--global-palette-grey-70)',
|
79
|
+
neutralStrokeAccessibleSelected: 'var(--global-palette-brand-tint20)',
|
80
|
+
neutralStroke1: 'var(--global-palette-grey-40)',
|
81
|
+
neutralStroke1Hover: 'var(--global-palette-grey-46)',
|
82
|
+
neutralStroke1Pressed: 'var(--global-palette-grey-42)',
|
83
|
+
neutralStroke1Selected: 'var(--global-palette-grey-44)',
|
84
|
+
neutralStroke2: 'var(--global-palette-grey-32)',
|
85
|
+
neutralStroke3: 'var(--global-palette-grey-24)',
|
86
|
+
brandStroke1: 'var(--global-palette-brand-tint10)',
|
87
|
+
brandStroke2: 'var(--global-palette-brand-shade30)',
|
88
|
+
compoundBrandStroke: 'var(--global-palette-brand-tint10)',
|
89
|
+
compoundBrandStrokeHover: 'var(--global-palette-brand-tint20)',
|
90
|
+
compoundBrandStrokePressed: 'var(--global-palette-brand-primary)',
|
91
|
+
neutralStrokeDisabled: 'var(--global-palette-grey-26)',
|
92
|
+
transparentStroke: 'transparent',
|
93
|
+
transparentStrokeInteractive: 'transparent',
|
94
|
+
transparentStrokeDisabled: 'transparent',
|
95
|
+
strokeFocus1: 'var(--global-color-black)',
|
96
|
+
strokeFocus2: 'var(--global-color-white)',
|
97
|
+
neutralShadowAmbient: 'rgba(0,0,0,0.24)',
|
98
|
+
neutralShadowKey: 'rgba(0,0,0,0.28)',
|
99
|
+
neutralShadowAmbientLighter: 'rgba(0,0,0,0.12)',
|
100
|
+
neutralShadowKeyLighter: 'rgba(0,0,0,0.14)',
|
101
|
+
neutralShadowAmbientDarker: 'rgba(0,0,0,0.40)',
|
102
|
+
neutralShadowKeyDarker: 'rgba(0,0,0,0.48)',
|
103
|
+
brandShadowAmbient: 'rgba(0,0,0,0.30)',
|
104
|
+
brandShadowKey: 'rgba(0,0,0,0.25)'
|
105
|
+
};
|
106
|
+
export var generateSharedColorTokens = function (globalSharedTokens) {
|
107
|
+
return Object.keys(globalSharedTokens).filter(function (sharedColor) {
|
108
|
+
return sharedColor !== 'brand' && sharedColor !== 'grey';
|
109
|
+
}).reduce(function (acc, sharedColor) {
|
110
|
+
acc[sharedColor] = {
|
111
|
+
background1: "var(--global-palette-" + sharedColor + "-shade40)",
|
112
|
+
background2: "var(--global-palette-" + sharedColor + "-shade30)",
|
113
|
+
background3: "var(--global-palette-" + sharedColor + "-primary)",
|
114
|
+
foreground1: "var(--global-palette-" + sharedColor + "-tint30)",
|
115
|
+
foreground2: "var(--global-palette-" + sharedColor + "-tint40)",
|
116
|
+
foreground3: "var(--global-palette-" + sharedColor + "-tint20)",
|
117
|
+
borderActive: "var(--global-palette-" + sharedColor + "-tint30)",
|
118
|
+
border2: "var(--global-palette-" + sharedColor + "-tint20)"
|
119
|
+
};
|
120
|
+
return acc;
|
121
|
+
}, {});
|
122
|
+
};
|
123
|
+
//# sourceMappingURL=dark.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["alias/dark.ts"],"names":[],"mappings":"AAEA,OAAO,IAAM,kBAAkB,GAAuB;AACpD,EAAA,kBAAkB,EAAE,2BADgC;AAEpD,EAAA,kBAAkB,EAAE,+BAFgC;AAGpD,EAAA,uBAAuB,EAAE,2BAH2B;AAIpD,EAAA,yBAAyB,EAAE,2BAJyB;AAKpD,EAAA,0BAA0B,EAAE,2BALwB;AAMpD,EAAA,4BAA4B,EAAE,oCANsB;AAOpD,EAAA,8BAA8B,EAAE,oCAPoB;AAQpD,EAAA,+BAA+B,EAAE,oCARmB;AASpD,EAAA,kBAAkB,EAAE,+BATgC;AAUpD,EAAA,uBAAuB,EAAE,+BAV2B;AAWpD,EAAA,yBAAyB,EAAE,+BAXyB;AAYpD,EAAA,0BAA0B,EAAE,+BAZwB;AAapD,EAAA,4BAA4B,EAAE,oCAbsB;AAcpD,EAAA,8BAA8B,EAAE,oCAdoB;AAepD,EAAA,+BAA+B,EAAE,oCAfmB;AAgBpD,EAAA,kBAAkB,EAAE,+BAhBgC;AAiBpD,EAAA,yBAAyB,EAAE,+BAjByB;AAkBpD,EAAA,mBAAmB,EAAE,oCAlB+B;AAmBpD,EAAA,wBAAwB,EAAE,oCAnB0B;AAoBpD,EAAA,0BAA0B,EAAE,oCApBwB;AAqBpD,EAAA,2BAA2B,EAAE,oCArBuB;AAsBpD,EAAA,wBAAwB,EAAE,oCAtB0B;AAuBpD,EAAA,6BAA6B,EAAE,oCAvBqB;AAwBpD,EAAA,+BAA+B,EAAE,qCAxBmB;AAyBpD,EAAA,gBAAgB,EAAE,oCAzBkC;AA0BpD,EAAA,gBAAgB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D,GAdI,EAcF,EAdE,CAAP;AAeD,CAlBM","sourcesContent":["import type { GlobalSharedColors, NeutralColorTokens, SharedColorTokens } from '../types';\n\nexport const neutralColorTokens: NeutralColorTokens = {\n neutralForeground1: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralForeground2: 'var(--global-palette-grey-84)', // #d6d6d6 Global.Color.Grey.84\n neutralForeground2Hover: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralForeground2Pressed: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralForeground2Selected: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralForeground2BrandHover: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n neutralForeground2BrandPressed: 'var(--global-palette-brand-tint10)', // #2899f5 Global.Color.Brand.Tint.10\n neutralForeground2BrandSelected: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n neutralForeground3: 'var(--global-palette-grey-68)', // #adadad Global.Color.Grey.68\n neutralForeground3Hover: 'var(--global-palette-grey-84)', // #d6d6d6 Global.Color.Grey.84\n neutralForeground3Pressed: 'var(--global-palette-grey-84)', // #d6d6d6 Global.Color.Grey.84\n neutralForeground3Selected: 'var(--global-palette-grey-84)', // #d6d6d6 Global.Color.Grey.84\n neutralForeground3BrandHover: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n neutralForeground3BrandPressed: 'var(--global-palette-brand-tint10)', // #2899f5 Global.Color.Brand.Tint.10\n neutralForeground3BrandSelected: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n neutralForeground4: 'var(--global-palette-grey-60)', // #999999 Global.Color.Grey.60\n neutralForegroundDisabled: 'var(--global-palette-grey-36)', // #5c5c5c Global.Color.Grey.36\n brandForegroundLink: 'var(--global-palette-brand-tint10)', // #2899f5 Global.Color.Brand.Tint.10\n brandForegroundLinkHover: 'var(--global-palette-brand-tint30)', // #6cb8f6 Global.Color.Brand.Tint.30\n brandForegroundLinkPressed: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n brandForegroundLinkSelected: 'var(--global-palette-brand-tint10)', // #2899f5 Global.Color.Brand.Tint.10\n compoundBrandForeground1: 'var(--global-palette-brand-tint10)', // #2899f5 Global.Color.Brand.Tint.10\n compoundBrandForeground1Hover: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n compoundBrandForeground1Pressed: 'var(--global-palette-brand-primary)', // #106ebe Global.Color.Brand.Primary\n brandForeground1: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n brandForeground2: 'var(--global-palette-brand-tint30)', // #6cb8f6 Global.Color.Brand.Tint.30\n neutralForegroundInverted: 'var(--global-palette-grey-14)', // #242424 Global.Color.Grey.14\n neutralForegroundOnBrand: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralForegroundInvertedLink: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralForegroundInvertedLinkHover: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralForegroundInvertedLinkPressed: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralForegroundInvertedLinkSelected: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralBackground1: 'var(--global-palette-grey-16)', // #292929 Global.Color.Grey.16\n neutralBackground1Hover: 'var(--global-palette-grey-24)', // #3d3d3d Global.Color.Grey.24\n neutralBackground1Pressed: 'var(--global-palette-grey-12)', // #1f1f1f Global.Color.Grey.12\n neutralBackground1Selected: 'var(--global-palette-grey-22)', // #383838 Global.Color.Grey.22\n neutralBackground2: 'var(--global-palette-grey-12)', // #1f1f1f Global.Color.Grey.12\n neutralBackground2Hover: 'var(--global-palette-grey-20)', // #333333 Global.Color.Grey.20\n neutralBackground2Pressed: 'var(--global-palette-grey-8)', // #141414 Global.Color.Grey.8\n neutralBackground2Selected: 'var(--global-palette-grey-18)', // #2e2e2e Global.Color.Grey.18\n neutralBackground3: 'var(--global-palette-grey-8)', // #141414 Global.Color.Grey.8\n neutralBackground3Hover: 'var(--global-palette-grey-16)', // #292929 Global.Color.Grey.16\n neutralBackground3Pressed: 'var(--global-palette-grey-4)', // #0a0a0a Global.Color.Grey.4\n neutralBackground3Selected: 'var(--global-palette-grey-14)', // #242424 Global.Color.Grey.14\n neutralBackground4: 'var(--global-palette-grey-4)', // #0a0a0a Global.Color.Grey.4\n neutralBackground4Hover: 'var(--global-palette-grey-12)', // #1f1f1f Global.Color.Grey.12\n neutralBackground4Pressed: 'var(--global-color-black)', // #000000 Global.Color.Black\n neutralBackground4Selected: 'var(--global-palette-grey-10)', // #1a1a1a Global.Color.Grey.10\n neutralBackground5: 'var(--global-color-black)', // #000000 Global.Color.Black\n neutralBackground5Hover: 'var(--global-palette-grey-8)', // #141414 Global.Color.Grey.8\n neutralBackground5Pressed: 'var(--global-palette-grey-2)', // #050505 Global.Color.Grey.2\n neutralBackground5Selected: 'var(--global-palette-grey-6)', // #0f0f0f Global.Color.Grey.6\n neutralBackground6: 'var(--global-palette-grey-20)', // #333333 Global.Color.Grey.20\n neutralBackgroundInverted: 'var(--global-color-white)', // #ffffff Global.Color.White\n subtleBackground: 'transparent', // transparent undefined\n subtleBackgroundHover: 'var(--global-palette-grey-22)', // #383838 Global.Color.Grey.22\n subtleBackgroundPressed: 'var(--global-palette-grey-18)', // #2e2e2e Global.Color.Grey.18\n subtleBackgroundSelected: 'var(--global-palette-grey-20)', // #333333 Global.Color.Grey.20\n transparentBackground: 'transparent', // transparent undefined\n transparentBackgroundHover: 'transparent', // transparent undefined\n transparentBackgroundPressed: 'transparent', // transparent undefined\n transparentBackgroundSelected: 'transparent', // transparent undefined\n neutralBackgroundDisabled: 'var(--global-palette-grey-8)', // #141414 Global.Color.Grey.8\n neutralStencil1: 'var(--global-palette-grey-20)', // #333333 Global.Color.Grey.20\n neutralStencil2: 'var(--global-palette-grey-34)', // #575757 Global.Color.Grey.34\n brandBackground: 'var(--global-palette-brand-shade10)', // #106ebe Global.Color.Brand.Shade.10\n brandBackgroundHover: 'var(--global-palette-brand-primary)', // #106ebe Global.Color.Brand.Primary\n brandBackgroundPressed: 'var(--global-palette-brand-shade40)', // #004578 Global.Color.Brand.Shade.40\n brandBackgroundSelected: 'var(--global-palette-brand-shade20)', // #005a9e Global.Color.Brand.Shade.20\n compoundBrandBackground: 'var(--global-palette-brand-tint10)', // #2899f5 Global.Color.Brand.Tint.10\n compoundBrandBackgroundHover: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n compoundBrandBackgroundPressed: 'var(--global-palette-brand-primary)', // #106ebe Global.Color.Brand.Primary\n brandBackgroundStatic: 'var(--global-palette-brand-primary)', // #106ebe Global.Color.Brand.Primary\n brandBackground2: 'var(--global-palette-brand-shade40)', // #004578 Global.Color.Brand.Shade.40\n neutralStrokeAccessible: 'var(--global-palette-grey-68)', // #adadad Global.Color.Grey.68\n neutralStrokeAccessibleHover: 'var(--global-palette-grey-74)', // #bdbdbd Global.Color.Grey.74\n neutralStrokeAccessiblePressed: 'var(--global-palette-grey-70)', // #b3b3b3 Global.Color.Grey.70\n neutralStrokeAccessibleSelected: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n neutralStroke1: 'var(--global-palette-grey-40)', // #666666 Global.Color.Grey.40\n neutralStroke1Hover: 'var(--global-palette-grey-46)', // #757575 Global.Color.Grey.46\n neutralStroke1Pressed: 'var(--global-palette-grey-42)', // #6b6b6b Global.Color.Grey.42\n neutralStroke1Selected: 'var(--global-palette-grey-44)', // #707070 Global.Color.Grey.44\n neutralStroke2: 'var(--global-palette-grey-32)', // #525252 Global.Color.Grey.32\n neutralStroke3: 'var(--global-palette-grey-24)', // #3d3d3d Global.Color.Grey.24\n brandStroke1: 'var(--global-palette-brand-tint10)', // #2899f5 Global.Color.Brand.Tint.10\n brandStroke2: 'var(--global-palette-brand-shade30)', // #004c87 Global.Color.Brand.Shade.30\n compoundBrandStroke: 'var(--global-palette-brand-tint10)', // #2899f5 Global.Color.Brand.Tint.10\n compoundBrandStrokeHover: 'var(--global-palette-brand-tint20)', // #3aa0f3 Global.Color.Brand.Tint.20\n compoundBrandStrokePressed: 'var(--global-palette-brand-primary)', // #106ebe Global.Color.Brand.Primary\n neutralStrokeDisabled: 'var(--global-palette-grey-26)', // #424242 Global.Color.Grey.26\n transparentStroke: 'transparent', // transparent undefined\n transparentStrokeInteractive: 'transparent', // transparent undefined\n transparentStrokeDisabled: 'transparent', // transparent undefined\n strokeFocus1: 'var(--global-color-black)', // #000000 Global.Color.Black\n strokeFocus2: 'var(--global-color-white)', // #ffffff Global.Color.White\n neutralShadowAmbient: 'rgba(0,0,0,0.24)', // rgba(0,0,0,0.24) undefined\n neutralShadowKey: 'rgba(0,0,0,0.28)', // rgba(0,0,0,0.28) undefined\n neutralShadowAmbientLighter: 'rgba(0,0,0,0.12)', // rgba(0,0,0,0.12) undefined\n neutralShadowKeyLighter: 'rgba(0,0,0,0.14)', // rgba(0,0,0,0.14) undefined\n neutralShadowAmbientDarker: 'rgba(0,0,0,0.40)', // rgba(0,0,0,0.40) undefined\n neutralShadowKeyDarker: 'rgba(0,0,0,0.48)', // rgba(0,0,0,0.48) undefined\n brandShadowAmbient: 'rgba(0,0,0,0.30)', // rgba(0,0,0,0.30) undefined\n brandShadowKey: 'rgba(0,0,0,0.25)', // rgba(0,0,0,0.25) undefined\n};\n\nexport const generateSharedColorTokens: (\n globalSharedTokens: GlobalSharedColors,\n) => Record<keyof GlobalSharedColors, SharedColorTokens> = globalSharedTokens => {\n return Object.keys(globalSharedTokens)\n .filter(sharedColor => sharedColor !== 'brand' && sharedColor !== 'grey')\n .reduce((acc, sharedColor) => {\n acc[sharedColor as keyof GlobalSharedColors] = {\n background1: `var(--global-palette-${sharedColor}-shade40)`,\n background2: `var(--global-palette-${sharedColor}-shade30)`,\n background3: `var(--global-palette-${sharedColor}-primary)`,\n foreground1: `var(--global-palette-${sharedColor}-tint30)`,\n foreground2: `var(--global-palette-${sharedColor}-tint40)`,\n foreground3: `var(--global-palette-${sharedColor}-tint20)`,\n borderActive: `var(--global-palette-${sharedColor}-tint30)`,\n border2: `var(--global-palette-${sharedColor}-tint20)`,\n };\n return acc;\n }, {} as Record<keyof GlobalSharedColors, SharedColorTokens>);\n};\n"],"sourceRoot":"../src/"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type { GlobalSharedColors, NeutralColorTokens, SharedColorTokens } from '../types';
|
2
|
+
export declare const neutralColorTokens: NeutralColorTokens;
|
3
|
+
export declare const generateSharedColorTokens: (globalSharedTokens: GlobalSharedColors) => Record<keyof GlobalSharedColors, SharedColorTokens>;
|