@fluentui/react-theme 9.0.0-alpha.24 → 9.0.0-alpha.26
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 +24 -1
- package/CHANGELOG.md +11 -2
- package/dist/react-theme.d.ts +163 -353
- package/lib/alias/dark.d.ts +3 -3
- package/lib/alias/dark.js +113 -119
- package/lib/alias/dark.js.map +1 -1
- package/lib/alias/highContrast.d.ts +3 -3
- package/lib/alias/highContrast.js +113 -119
- package/lib/alias/highContrast.js.map +1 -1
- package/lib/alias/light.d.ts +3 -3
- package/lib/alias/light.js +113 -119
- package/lib/alias/light.js.map +1 -1
- package/lib/alias/teamsDark.d.ts +3 -3
- package/lib/alias/teamsDark.js +113 -119
- package/lib/alias/teamsDark.js.map +1 -1
- package/lib/global/borderRadius.d.ts +2 -2
- package/lib/global/borderRadius.js +6 -6
- package/lib/global/borderRadius.js.map +1 -1
- package/lib/global/brandColors.d.ts +1 -2
- package/lib/global/brandColors.js +0 -4
- package/lib/global/brandColors.js.map +1 -1
- package/lib/global/fonts.d.ts +5 -6
- package/lib/global/fonts.js +26 -40
- package/lib/global/fonts.js.map +1 -1
- package/lib/global/index.d.ts +0 -1
- package/lib/global/index.js +0 -1
- package/lib/global/index.js.map +1 -1
- package/lib/global/strokeWidths.d.ts +2 -2
- package/lib/global/strokeWidths.js +4 -4
- package/lib/global/strokeWidths.js.map +1 -1
- package/lib/index.d.ts +1 -2
- package/lib/index.js +0 -2
- package/lib/index.js.map +1 -1
- package/lib/themes/teams/highContrastTheme.js +1 -2
- package/lib/themes/teams/highContrastTheme.js.map +1 -1
- package/lib/themes/web/highContrastTheme.js +1 -2
- package/lib/themes/web/highContrastTheme.js.map +1 -1
- package/lib/types.d.ts +153 -203
- package/lib/utils/createDarkTheme.js +5 -15
- package/lib/utils/createDarkTheme.js.map +1 -1
- package/lib/utils/createHighContrastTheme.d.ts +2 -2
- package/lib/utils/createHighContrastTheme.js +6 -16
- package/lib/utils/createHighContrastTheme.js.map +1 -1
- package/lib/utils/createLightTheme.js +5 -15
- package/lib/utils/createLightTheme.js.map +1 -1
- package/lib/utils/createTeamsDarkTheme.js +5 -15
- package/lib/utils/createTeamsDarkTheme.js.map +1 -1
- package/lib/utils/mergeThemes.d.ts +0 -6
- package/lib/utils/mergeThemes.js +3 -60
- package/lib/utils/mergeThemes.js.map +1 -1
- package/lib/utils/shadows.d.ts +2 -2
- package/lib/utils/shadows.js +1 -1
- package/lib/utils/shadows.js.map +1 -1
- package/lib/utils/themeToCSSVariables.d.ts +1 -1
- package/lib/utils/themeToCSSVariables.js +5 -22
- package/lib/utils/themeToCSSVariables.js.map +1 -1
- package/lib-commonjs/alias/dark.d.ts +3 -3
- package/lib-commonjs/alias/dark.js +116 -123
- package/lib-commonjs/alias/dark.js.map +1 -1
- package/lib-commonjs/alias/highContrast.d.ts +3 -3
- package/lib-commonjs/alias/highContrast.js +116 -123
- package/lib-commonjs/alias/highContrast.js.map +1 -1
- package/lib-commonjs/alias/light.d.ts +3 -3
- package/lib-commonjs/alias/light.js +116 -123
- package/lib-commonjs/alias/light.js.map +1 -1
- package/lib-commonjs/alias/teamsDark.d.ts +3 -3
- package/lib-commonjs/alias/teamsDark.js +116 -123
- package/lib-commonjs/alias/teamsDark.js.map +1 -1
- package/lib-commonjs/global/borderRadius.d.ts +2 -2
- package/lib-commonjs/global/borderRadius.js +6 -6
- package/lib-commonjs/global/borderRadius.js.map +1 -1
- package/lib-commonjs/global/brandColors.d.ts +1 -2
- package/lib-commonjs/global/brandColors.js +1 -5
- package/lib-commonjs/global/brandColors.js.map +1 -1
- package/lib-commonjs/global/fonts.d.ts +5 -6
- package/lib-commonjs/global/fonts.js +27 -41
- package/lib-commonjs/global/fonts.js.map +1 -1
- package/lib-commonjs/global/index.d.ts +0 -1
- package/lib-commonjs/global/index.js +0 -2
- package/lib-commonjs/global/index.js.map +1 -1
- package/lib-commonjs/global/strokeWidths.d.ts +2 -2
- package/lib-commonjs/global/strokeWidths.js +4 -4
- package/lib-commonjs/global/strokeWidths.js.map +1 -1
- package/lib-commonjs/index.d.ts +1 -2
- package/lib-commonjs/index.js +0 -4
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/themes/teams/highContrastTheme.js +1 -3
- package/lib-commonjs/themes/teams/highContrastTheme.js.map +1 -1
- package/lib-commonjs/themes/web/highContrastTheme.js +1 -3
- package/lib-commonjs/themes/web/highContrastTheme.js.map +1 -1
- package/lib-commonjs/types.d.ts +153 -203
- package/lib-commonjs/utils/createDarkTheme.js +4 -15
- package/lib-commonjs/utils/createDarkTheme.js.map +1 -1
- package/lib-commonjs/utils/createHighContrastTheme.d.ts +2 -2
- package/lib-commonjs/utils/createHighContrastTheme.js +5 -16
- package/lib-commonjs/utils/createHighContrastTheme.js.map +1 -1
- package/lib-commonjs/utils/createLightTheme.js +4 -15
- package/lib-commonjs/utils/createLightTheme.js.map +1 -1
- package/lib-commonjs/utils/createTeamsDarkTheme.js +4 -15
- package/lib-commonjs/utils/createTeamsDarkTheme.js.map +1 -1
- package/lib-commonjs/utils/mergeThemes.d.ts +0 -6
- package/lib-commonjs/utils/mergeThemes.js +4 -61
- package/lib-commonjs/utils/mergeThemes.js.map +1 -1
- package/lib-commonjs/utils/shadows.d.ts +2 -2
- package/lib-commonjs/utils/shadows.js +3 -3
- package/lib-commonjs/utils/shadows.js.map +1 -1
- package/lib-commonjs/utils/themeToCSSVariables.d.ts +1 -1
- package/lib-commonjs/utils/themeToCSSVariables.js +5 -22
- package/lib-commonjs/utils/themeToCSSVariables.js.map +1 -1
- package/package.json +1 -1
- package/lib/global/utils.d.ts +0 -2
- package/lib/global/utils.js +0 -37
- package/lib/global/utils.js.map +0 -1
- package/lib-commonjs/global/utils.d.ts +0 -2
- package/lib-commonjs/global/utils.js +0 -51
- package/lib-commonjs/global/utils.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,30 @@
|
|
2
2
|
"name": "@fluentui/react-theme",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Fri, 01 Oct 2021 14:11:48 GMT",
|
6
|
+
"tag": "@fluentui/react-theme_v9.0.0-alpha.26",
|
7
|
+
"version": "9.0.0-alpha.26",
|
8
|
+
"comments": {
|
9
|
+
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "lingfangao@hotmail.com",
|
12
|
+
"package": "@fluentui/react-theme",
|
13
|
+
"comment": "Bump v9 prerelease versions to rerelease",
|
14
|
+
"commit": "4fa0856ad0353b787b8ae59229e6f64ef0719824"
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"none": [
|
18
|
+
{
|
19
|
+
"author": "miroslav.stastny@microsoft.com",
|
20
|
+
"package": "@fluentui/react-theme",
|
21
|
+
"comment": "docs(react-theme): fix shadows story",
|
22
|
+
"commit": "4fa0856ad0353b787b8ae59229e6f64ef0719824"
|
23
|
+
}
|
24
|
+
]
|
25
|
+
}
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"date": "Wed, 29 Sep 2021 08:06:11 GMT",
|
6
29
|
"tag": "@fluentui/react-theme_v9.0.0-alpha.24",
|
7
30
|
"version": "9.0.0-alpha.24",
|
8
31
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
# Change Log - @fluentui/react-theme
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Fri, 01 Oct 2021 14:11:48 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.0-alpha.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme_v9.0.0-alpha.26)
|
8
|
+
|
9
|
+
Fri, 01 Oct 2021 14:11:48 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme_v9.0.0-alpha.24..@fluentui/react-theme_v9.0.0-alpha.26)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Bump v9 prerelease versions to rerelease ([PR #20069](https://github.com/microsoft/fluentui/pull/20069) by lingfangao@hotmail.com)
|
15
|
+
|
7
16
|
## [9.0.0-alpha.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme_v9.0.0-alpha.24)
|
8
17
|
|
9
|
-
Wed, 29 Sep 2021 08:
|
18
|
+
Wed, 29 Sep 2021 08:06:11 GMT
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme_v9.0.0-alpha.23..@fluentui/react-theme_v9.0.0-alpha.24)
|
11
20
|
|
12
21
|
### Changes
|
package/dist/react-theme.d.ts
CHANGED
@@ -1,43 +1,136 @@
|
|
1
|
-
export declare type
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
export declare type BorderRadiusTokens = {
|
2
|
+
borderRadiusNone: string;
|
3
|
+
borderRadiusSmall: string;
|
4
|
+
borderRadiusMedium: string;
|
5
|
+
borderRadiusLarge: string;
|
6
|
+
borderRadiusXLarge: string;
|
7
|
+
borderRadiusCircular: string;
|
8
8
|
};
|
9
9
|
|
10
|
-
export declare
|
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;
|
10
|
+
export declare type BrandVariants = ColorVariants & {
|
11
|
+
shade60: string;
|
21
12
|
};
|
22
13
|
|
23
|
-
|
14
|
+
declare type ColorPaletteT<Color extends string> = `colorPalette${Color}Background1` | `colorPalette${Color}Background2` | `colorPalette${Color}Background3` | `colorPalette${Color}Foreground1` | `colorPalette${Color}Foreground2` | `colorPalette${Color}Foreground3` | `colorPalette${Color}BorderActive` | `colorPalette${Color}Border2`;
|
24
15
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
brandBackgroundSelected: string;
|
30
|
-
brandBackgroundStatic: string;
|
31
|
-
};
|
16
|
+
/**
|
17
|
+
* Design tokens available for shared colors
|
18
|
+
*/
|
19
|
+
export declare type ColorPaletteTokens = Record<ColorPaletteT<GlobalSharedColorsT>, string>;
|
32
20
|
|
33
|
-
|
34
|
-
|
21
|
+
/**
|
22
|
+
* Design tokens for alias colors
|
23
|
+
*/
|
24
|
+
export declare type ColorTokens = {
|
25
|
+
colorNeutralForeground1: string;
|
26
|
+
colorNeutralForeground2: string;
|
27
|
+
colorNeutralForeground2Hover: string;
|
28
|
+
colorNeutralForeground2Pressed: string;
|
29
|
+
colorNeutralForeground2Selected: string;
|
30
|
+
colorNeutralForeground2BrandHover: string;
|
31
|
+
colorNeutralForeground2BrandPressed: string;
|
32
|
+
colorNeutralForeground2BrandSelected: string;
|
33
|
+
colorNeutralForeground3: string;
|
34
|
+
colorNeutralForeground3Hover: string;
|
35
|
+
colorNeutralForeground3Pressed: string;
|
36
|
+
colorNeutralForeground3Selected: string;
|
37
|
+
colorNeutralForeground3BrandHover: string;
|
38
|
+
colorNeutralForeground3BrandPressed: string;
|
39
|
+
colorNeutralForeground3BrandSelected: string;
|
40
|
+
colorNeutralForeground4: string;
|
41
|
+
colorNeutralForegroundDisabled: string;
|
42
|
+
colorBrandForegroundLink: string;
|
43
|
+
colorBrandForegroundLinkHover: string;
|
44
|
+
colorBrandForegroundLinkPressed: string;
|
45
|
+
colorBrandForegroundLinkSelected: string;
|
46
|
+
colorCompoundBrandForeground1: string;
|
47
|
+
colorCompoundBrandForeground1Hover: string;
|
48
|
+
colorCompoundBrandForeground1Pressed: string;
|
49
|
+
colorBrandForeground1: string;
|
50
|
+
colorBrandForeground2: string;
|
51
|
+
colorNeutralForegroundInverted: string;
|
52
|
+
colorNeutralForegroundOnBrand: string;
|
53
|
+
colorNeutralForegroundInvertedLink: string;
|
54
|
+
colorNeutralForegroundInvertedLinkHover: string;
|
55
|
+
colorNeutralForegroundInvertedLinkPressed: string;
|
56
|
+
colorNeutralForegroundInvertedLinkSelected: string;
|
57
|
+
colorNeutralBackground1: string;
|
58
|
+
colorNeutralBackground1Hover: string;
|
59
|
+
colorNeutralBackground1Pressed: string;
|
60
|
+
colorNeutralBackground1Selected: string;
|
61
|
+
colorNeutralBackground2: string;
|
62
|
+
colorNeutralBackground2Hover: string;
|
63
|
+
colorNeutralBackground2Pressed: string;
|
64
|
+
colorNeutralBackground2Selected: string;
|
65
|
+
colorNeutralBackground3: string;
|
66
|
+
colorNeutralBackground3Hover: string;
|
67
|
+
colorNeutralBackground3Pressed: string;
|
68
|
+
colorNeutralBackground3Selected: string;
|
69
|
+
colorNeutralBackground4: string;
|
70
|
+
colorNeutralBackground4Hover: string;
|
71
|
+
colorNeutralBackground4Pressed: string;
|
72
|
+
colorNeutralBackground4Selected: string;
|
73
|
+
colorNeutralBackground5: string;
|
74
|
+
colorNeutralBackground5Hover: string;
|
75
|
+
colorNeutralBackground5Pressed: string;
|
76
|
+
colorNeutralBackground5Selected: string;
|
77
|
+
colorNeutralBackground6: string;
|
78
|
+
colorNeutralBackgroundInverted: string;
|
79
|
+
colorSubtleBackground: string;
|
80
|
+
colorSubtleBackgroundHover: string;
|
81
|
+
colorSubtleBackgroundPressed: string;
|
82
|
+
colorSubtleBackgroundSelected: string;
|
83
|
+
colorTransparentBackground: string;
|
84
|
+
colorTransparentBackgroundHover: string;
|
85
|
+
colorTransparentBackgroundPressed: string;
|
86
|
+
colorTransparentBackgroundSelected: string;
|
87
|
+
colorNeutralBackgroundDisabled: string;
|
88
|
+
colorNeutralStencil1: string;
|
89
|
+
colorNeutralStencil2: string;
|
90
|
+
colorBrandBackground: string;
|
91
|
+
colorBrandBackgroundHover: string;
|
92
|
+
colorBrandBackgroundPressed: string;
|
93
|
+
colorBrandBackgroundSelected: string;
|
94
|
+
colorCompoundBrandBackground: string;
|
95
|
+
colorCompoundBrandBackgroundHover: string;
|
96
|
+
colorCompoundBrandBackgroundPressed: string;
|
97
|
+
colorBrandBackgroundStatic: string;
|
98
|
+
colorBrandBackground2: string;
|
99
|
+
colorNeutralStrokeAccessible: string;
|
100
|
+
colorNeutralStrokeAccessibleHover: string;
|
101
|
+
colorNeutralStrokeAccessiblePressed: string;
|
102
|
+
colorNeutralStrokeAccessibleSelected: string;
|
103
|
+
colorNeutralStroke1: string;
|
104
|
+
colorNeutralStroke1Hover: string;
|
105
|
+
colorNeutralStroke1Pressed: string;
|
106
|
+
colorNeutralStroke1Selected: string;
|
107
|
+
colorNeutralStroke2: string;
|
108
|
+
colorNeutralStroke3: string;
|
109
|
+
colorBrandStroke1: string;
|
110
|
+
colorBrandStroke2: string;
|
111
|
+
colorCompoundBrandStroke: string;
|
112
|
+
colorCompoundBrandStrokeHover: string;
|
113
|
+
colorCompoundBrandStrokePressed: string;
|
114
|
+
colorNeutralStrokeDisabled: string;
|
115
|
+
colorTransparentStroke: string;
|
116
|
+
colorTransparentStrokeInteractive: string;
|
117
|
+
colorTransparentStrokeDisabled: string;
|
118
|
+
colorStrokeFocus1: string;
|
119
|
+
colorStrokeFocus2: string;
|
120
|
+
colorNeutralShadowAmbient: string;
|
121
|
+
colorNeutralShadowKey: string;
|
122
|
+
colorNeutralShadowAmbientLighter: string;
|
123
|
+
colorNeutralShadowKeyLighter: string;
|
124
|
+
colorNeutralShadowAmbientDarker: string;
|
125
|
+
colorNeutralShadowKeyDarker: string;
|
126
|
+
colorBrandShadowAmbient: string;
|
127
|
+
colorBrandShadowKey: string;
|
35
128
|
};
|
36
129
|
|
37
130
|
/**
|
38
131
|
* Possible color variant values
|
39
132
|
*/
|
40
|
-
|
133
|
+
declare type ColorVariants = {
|
41
134
|
shade50: string;
|
42
135
|
shade40: string;
|
43
136
|
shade30: string;
|
@@ -54,267 +147,60 @@ export declare type ColorVariants = {
|
|
54
147
|
|
55
148
|
export declare const createDarkTheme: (brand: BrandVariants) => Theme;
|
56
149
|
|
57
|
-
export declare const
|
58
|
-
|
59
|
-
export declare const createHighContrastTheme: (brand: BrandVariants) => Theme;
|
150
|
+
export declare const createHighContrastTheme: () => Theme;
|
60
151
|
|
61
152
|
export declare const createLightTheme: (brand: BrandVariants) => Theme;
|
62
153
|
|
63
154
|
export declare const createTeamsDarkTheme: (brand: BrandVariants) => Theme;
|
64
155
|
|
65
|
-
export declare type
|
66
|
-
|
67
|
-
|
68
|
-
|
156
|
+
export declare type FontFamilyTokens = {
|
157
|
+
fontFamilyBase: string;
|
158
|
+
fontFamilyMonospace: string;
|
159
|
+
fontFamilyNumeric: string;
|
69
160
|
};
|
70
161
|
|
71
|
-
export declare
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
hero: {
|
83
|
-
700: string;
|
84
|
-
800: string;
|
85
|
-
900: string;
|
86
|
-
1000: string;
|
87
|
-
};
|
162
|
+
export declare type FontSizeTokens = {
|
163
|
+
fontSizeBase100: string;
|
164
|
+
fontSizeBase200: string;
|
165
|
+
fontSizeBase300: string;
|
166
|
+
fontSizeBase400: string;
|
167
|
+
fontSizeBase500: string;
|
168
|
+
fontSizeBase600: string;
|
169
|
+
fontSizeHero700: string;
|
170
|
+
fontSizeHero800: string;
|
171
|
+
fontSizeHero900: string;
|
172
|
+
fontSizeHero1000: string;
|
88
173
|
};
|
89
174
|
|
90
|
-
export declare
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
medium: number;
|
95
|
-
semibold: number;
|
175
|
+
export declare type FontWeightTokens = {
|
176
|
+
fontWeightRegular: number;
|
177
|
+
fontWeightMedium: number;
|
178
|
+
fontWeightSemibold: number;
|
96
179
|
};
|
97
180
|
|
98
|
-
|
99
|
-
|
100
|
-
export declare type GhostColorTokens = {
|
101
|
-
ghostBackground: string;
|
102
|
-
ghostBackgroundHover: string;
|
103
|
-
ghostBackgroundPressed: string;
|
104
|
-
ghostBackgroundSelected: string;
|
105
|
-
};
|
181
|
+
declare type GlobalSharedColorsT = 'DarkRed' | 'Burgundy' | 'Cranberry' | 'Red' | 'DarkOrange' | 'Bronze' | 'Pumpkin' | 'Orange' | 'Peach' | 'Marigold' | 'Yellow' | 'Gold' | 'Brass' | 'Brown' | 'DarkBrown' | 'Lime' | 'Forest' | 'Seafoam' | 'LightGreen' | 'Green' | 'DarkGreen' | 'LightTeal' | 'Teal' | 'DarkTeal' | 'Cyan' | 'Steel' | 'LightBlue' | 'Blue' | 'RoyalBlue' | 'DarkBlue' | 'Cornflower' | 'Navy' | 'Lavender' | 'Purple' | 'DarkPurple' | 'Orchid' | 'Grape' | 'Berry' | 'Lilac' | 'Pink' | 'HotPink' | 'Magenta' | 'Plum' | 'Beige' | 'Mink' | 'Silver' | 'Platinum' | 'Anchor' | 'Charcoal';
|
106
182
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
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;
|
183
|
+
export declare type LineHeightTokens = {
|
184
|
+
lineHeightBase100: string;
|
185
|
+
lineHeightBase200: string;
|
186
|
+
lineHeightBase300: string;
|
187
|
+
lineHeightBase400: string;
|
188
|
+
lineHeightBase500: string;
|
189
|
+
lineHeightBase600: string;
|
190
|
+
lineHeightHero700: string;
|
191
|
+
lineHeightHero800: string;
|
192
|
+
lineHeightHero900: string;
|
193
|
+
lineHeightHero1000: string;
|
160
194
|
};
|
161
195
|
|
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
196
|
export declare function mergeThemes(a: Theme | undefined, b: PartialTheme | Theme | undefined): Theme;
|
187
197
|
|
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
|
-
};
|
198
|
+
export declare type PartialTheme = Partial<Theme>;
|
313
199
|
|
314
200
|
/**
|
315
201
|
* Design tokens for shadow levels
|
316
202
|
*/
|
317
|
-
export declare type
|
203
|
+
export declare type ShadowTokens = {
|
318
204
|
shadow2: string;
|
319
205
|
shadow4: string;
|
320
206
|
shadow8: string;
|
@@ -323,94 +209,22 @@ export declare type ShadowLevelTokens = {
|
|
323
209
|
shadow64: string;
|
324
210
|
};
|
325
211
|
|
326
|
-
export declare
|
327
|
-
|
328
|
-
|
329
|
-
|
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;
|
212
|
+
export declare type StrokeWidthTokens = {
|
213
|
+
strokeWidthThin: string;
|
214
|
+
strokeWidthThick: string;
|
215
|
+
strokeWidthThicker: string;
|
216
|
+
strokeWidthThickest: string;
|
347
217
|
};
|
348
218
|
|
349
|
-
export declare const strokeWidths: StrokeWidths;
|
350
|
-
|
351
219
|
export declare const teamsDarkTheme: Theme;
|
352
220
|
|
353
221
|
export declare const teamsHighContrastTheme: Theme;
|
354
222
|
|
355
223
|
export declare const teamsLightTheme: Theme;
|
356
224
|
|
357
|
-
export declare type
|
358
|
-
|
359
|
-
export declare type TextAlignments = {
|
360
|
-
start: TextAlignment;
|
361
|
-
center: TextAlignment;
|
362
|
-
end: TextAlignment;
|
363
|
-
justify: TextAlignment;
|
364
|
-
};
|
225
|
+
export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & ShadowTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens;
|
365
226
|
|
366
|
-
export declare
|
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
|
-
};
|
227
|
+
export declare function themeToCSSVariables(theme: Theme): Record<string, string | number>;
|
414
228
|
|
415
229
|
export declare const webDarkTheme: Theme;
|
416
230
|
|
@@ -418,8 +232,4 @@ export declare const webHighContrastTheme: Theme;
|
|
418
232
|
|
419
233
|
export declare const webLightTheme: Theme;
|
420
234
|
|
421
|
-
export declare const white = "#ffffff";
|
422
|
-
|
423
|
-
export declare const whiteAlpha: Record<AlphaColors, string>;
|
424
|
-
|
425
235
|
export { }
|
package/lib/alias/dark.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import type {
|
2
|
-
export declare const
|
3
|
-
export declare const
|
1
|
+
import type { BrandVariants, ColorTokens, ColorPaletteTokens } from '../types';
|
2
|
+
export declare const generateColorTokens: (brand: BrandVariants) => ColorTokens;
|
3
|
+
export declare const colorPaletteTokens: ColorPaletteTokens;
|