@fluentui-react-native/default-theme 0.16.10 → 0.16.11
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 +28 -1
- package/CHANGELOG.md +12 -2
- package/lib/defaultColors.d.ts.map +1 -1
- package/lib/defaultColors.js +43 -21
- package/lib/defaultColors.js.map +1 -1
- package/lib/defaultColors.macos.d.ts +12 -0
- package/lib/defaultColors.macos.d.ts.map +1 -0
- package/lib/defaultColors.macos.js +266 -0
- package/lib/defaultColors.macos.js.map +1 -0
- package/lib/defaultColors.win32.d.ts +12 -0
- package/lib/defaultColors.win32.d.ts.map +1 -0
- package/lib/defaultColors.win32.js +266 -0
- package/lib/defaultColors.win32.js.map +1 -0
- package/lib/defaultTheme.js +7 -7
- package/lib/defaultTheme.js.map +1 -1
- package/lib-commonjs/defaultColors.d.ts.map +1 -1
- package/lib-commonjs/defaultColors.js +43 -21
- package/lib-commonjs/defaultColors.js.map +1 -1
- package/lib-commonjs/defaultColors.macos.d.ts +12 -0
- package/lib-commonjs/defaultColors.macos.d.ts.map +1 -0
- package/lib-commonjs/defaultColors.macos.js +273 -0
- package/lib-commonjs/defaultColors.macos.js.map +1 -0
- package/lib-commonjs/defaultColors.win32.d.ts +12 -0
- package/lib-commonjs/defaultColors.win32.d.ts.map +1 -0
- package/lib-commonjs/defaultColors.win32.js +273 -0
- package/lib-commonjs/defaultColors.win32.js.map +1 -0
- package/lib-commonjs/defaultTheme.js +7 -7
- package/lib-commonjs/defaultTheme.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/__snapshots__/default-theme.test.ts.snap +129 -129
- package/src/defaultColors.macos.ts +510 -0
- package/src/defaultColors.ts +46 -21
- package/src/defaultColors.win32.ts +510 -0
- package/src/defaultTheme.ts +7 -7
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
import { Palette, FabricWebPalette, ThemeColorDefinition } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
3
|
+
import { createColorAliasTokens } from './createAliasTokens';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generate a palette from a set of fabric web colors, like those output from the theme designer.
|
|
7
|
+
*
|
|
8
|
+
* @param palette - fabric web palette definition. This allows initializing our color values in the same
|
|
9
|
+
* manner the fabric web does it
|
|
10
|
+
*/
|
|
11
|
+
export function paletteFromFabricColors(p: FabricWebPalette, isInverted?: boolean): Palette {
|
|
12
|
+
return {
|
|
13
|
+
background: p.white,
|
|
14
|
+
bodyStandoutBackground: p.neutralLighterAlt,
|
|
15
|
+
bodyFrameBackground: p.white,
|
|
16
|
+
bodyFrameDivider: p.neutralLight,
|
|
17
|
+
bodyText: p.neutralPrimary,
|
|
18
|
+
bodyTextChecked: p.black,
|
|
19
|
+
subText: p.neutralSecondary,
|
|
20
|
+
bodyDivider: p.neutralLight,
|
|
21
|
+
|
|
22
|
+
disabledBackground: isInverted ? p.neutralQuaternaryAlt : p.neutralLighter,
|
|
23
|
+
disabledText: p.neutralTertiary,
|
|
24
|
+
disabledBodyText: p.neutralTertiary,
|
|
25
|
+
disabledSubtext: p.neutralQuaternary,
|
|
26
|
+
disabledBodySubtext: p.neutralTertiaryAlt,
|
|
27
|
+
|
|
28
|
+
focusBorder: p.neutralSecondary,
|
|
29
|
+
variantBorder: p.neutralLight,
|
|
30
|
+
variantBorderHovered: p.neutralTertiary,
|
|
31
|
+
defaultStateBackground: p.neutralLighterAlt,
|
|
32
|
+
|
|
33
|
+
errorText: !isInverted ? p.redDark : '#ff5f5f',
|
|
34
|
+
warningText: !isInverted ? globalTokens.color.grey20 : globalTokens.color.white,
|
|
35
|
+
errorBackground: !isInverted ? 'rgba(245, 135, 145, .2)' : 'rgba(232, 17, 35, .5)',
|
|
36
|
+
blockingBackground: !isInverted ? 'rgba(250, 65, 0, .2)' : 'rgba(234, 67, 0, .5)',
|
|
37
|
+
warningBackground: !isInverted ? 'rgba(255, 200, 10, .2)' : 'rgba(255, 251, 0, .6)',
|
|
38
|
+
warningHighlight: !isInverted ? '#ffb900' : '#fff100',
|
|
39
|
+
successBackground: !isInverted ? 'rgba(95, 210, 85, .2)' : 'rgba(186, 216, 10, .4)',
|
|
40
|
+
|
|
41
|
+
inputBorder: p.neutralTertiary,
|
|
42
|
+
inputBorderHovered: p.neutralPrimary,
|
|
43
|
+
inputBackground: p.white,
|
|
44
|
+
inputBackgroundChecked: p.themePrimary,
|
|
45
|
+
inputBackgroundCheckedHovered: p.themeDarkAlt,
|
|
46
|
+
inputForegroundChecked: p.white,
|
|
47
|
+
inputFocusBorderAlt: p.themePrimary,
|
|
48
|
+
smallInputBorder: p.neutralSecondary,
|
|
49
|
+
inputText: p.neutralPrimary,
|
|
50
|
+
inputTextHovered: p.neutralDark,
|
|
51
|
+
inputPlaceholderText: p.neutralSecondary,
|
|
52
|
+
|
|
53
|
+
buttonBackground: p.neutralLighter,
|
|
54
|
+
buttonBackgroundChecked: p.neutralTertiaryAlt,
|
|
55
|
+
buttonBackgroundHovered: p.neutralLight,
|
|
56
|
+
buttonBackgroundCheckedHovered: p.neutralLight,
|
|
57
|
+
buttonBackgroundPressed: p.neutralLight,
|
|
58
|
+
buttonBackgroundDisabled: p.neutralLighter,
|
|
59
|
+
buttonBorder: p.neutralSecondaryAlt,
|
|
60
|
+
buttonText: isInverted ? p.black : p.neutralPrimary,
|
|
61
|
+
buttonTextHovered: isInverted ? p.neutralPrimary : p.neutralDark,
|
|
62
|
+
buttonTextChecked: p.neutralDark,
|
|
63
|
+
buttonTextCheckedHovered: p.black,
|
|
64
|
+
buttonTextPressed: p.neutralDark,
|
|
65
|
+
buttonTextDisabled: p.neutralTertiary,
|
|
66
|
+
buttonBorderDisabled: p.neutralLighter,
|
|
67
|
+
buttonBorderFocused: p.neutralSecondaryAlt,
|
|
68
|
+
|
|
69
|
+
primaryButtonBackground: p.themePrimary,
|
|
70
|
+
primaryButtonBackgroundHovered: p.themeDarkAlt,
|
|
71
|
+
primaryButtonBackgroundPressed: p.themeDark,
|
|
72
|
+
primaryButtonBackgroundDisabled: p.neutralLighter,
|
|
73
|
+
primaryButtonBorder: 'transparent',
|
|
74
|
+
primaryButtonBorderFocused: 'transparent',
|
|
75
|
+
primaryButtonText: p.white,
|
|
76
|
+
primaryButtonTextHovered: p.white,
|
|
77
|
+
primaryButtonTextPressed: p.white,
|
|
78
|
+
primaryButtonTextDisabled: p.neutralQuaternary,
|
|
79
|
+
|
|
80
|
+
accentButtonBackground: p.accent,
|
|
81
|
+
accentButtonText: p.white,
|
|
82
|
+
|
|
83
|
+
menuBackground: isInverted ? p.neutralLighter : p.white,
|
|
84
|
+
menuDivider: isInverted ? p.neutralTertiaryAlt : p.neutralTertiaryAlt,
|
|
85
|
+
menuIcon: isInverted ? p.themeDarkAlt : p.themePrimary,
|
|
86
|
+
menuHeader: isInverted ? p.black : p.themePrimary,
|
|
87
|
+
menuItemBackgroundHovered: isInverted ? p.neutralQuaternaryAlt : p.neutralLighter,
|
|
88
|
+
menuItemBackgroundPressed: isInverted ? p.neutralQuaternary : p.neutralLight,
|
|
89
|
+
menuItemText: p.neutralPrimary,
|
|
90
|
+
menuItemTextHovered: p.neutralDark,
|
|
91
|
+
|
|
92
|
+
listBackground: p.white,
|
|
93
|
+
listText: p.neutralPrimary,
|
|
94
|
+
listItemBackgroundHovered: p.neutralLighter,
|
|
95
|
+
listItemBackgroundChecked: p.neutralLight,
|
|
96
|
+
listItemBackgroundCheckedHovered: p.neutralQuaternaryAlt,
|
|
97
|
+
|
|
98
|
+
listHeaderBackgroundHovered: p.neutralLighter,
|
|
99
|
+
listHeaderBackgroundPressed: p.neutralLight,
|
|
100
|
+
|
|
101
|
+
actionLink: p.neutralPrimary,
|
|
102
|
+
actionLinkHovered: p.neutralDark,
|
|
103
|
+
link: p.themePrimary,
|
|
104
|
+
linkHovered: p.themeDarker,
|
|
105
|
+
linkPressed: p.themeDark,
|
|
106
|
+
|
|
107
|
+
// Control Color Tokens
|
|
108
|
+
defaultBackground: p.neutralLighter,
|
|
109
|
+
defaultBorder: p.neutralSecondaryAlt,
|
|
110
|
+
defaultContent: isInverted ? p.black : p.neutralPrimary,
|
|
111
|
+
defaultIcon: isInverted ? p.black : p.neutralPrimary,
|
|
112
|
+
|
|
113
|
+
defaultHoveredBackground: p.neutralLight,
|
|
114
|
+
defaultHoveredBorder: p.neutralSecondaryAlt,
|
|
115
|
+
defaultHoveredContent: isInverted ? p.neutralPrimary : p.neutralDark,
|
|
116
|
+
defaultHoveredIcon: isInverted ? p.neutralPrimary : p.neutralDark,
|
|
117
|
+
|
|
118
|
+
defaultFocusedBackground: p.neutralLight,
|
|
119
|
+
defaultFocusedBorder: p.neutralSecondaryAlt,
|
|
120
|
+
defaultFocusedContent: isInverted ? p.neutralPrimary : p.neutralDark,
|
|
121
|
+
defaultFocusedIcon: isInverted ? p.neutralPrimary : p.neutralDark,
|
|
122
|
+
|
|
123
|
+
defaultPressedBackground: p.neutralLight,
|
|
124
|
+
defaultPressedBorder: p.neutralSecondaryAlt,
|
|
125
|
+
defaultPressedContent: p.neutralDark,
|
|
126
|
+
defaultPressedIcon: p.neutralDark,
|
|
127
|
+
|
|
128
|
+
defaultDisabledBackground: p.neutralLighter,
|
|
129
|
+
defaultDisabledBorder: p.neutralLighter,
|
|
130
|
+
defaultDisabledContent: p.neutralTertiary,
|
|
131
|
+
defaultDisabledIcon: p.neutralTertiary,
|
|
132
|
+
|
|
133
|
+
ghostBackground: p.white,
|
|
134
|
+
ghostBorder: p.white,
|
|
135
|
+
ghostContent: p.neutralPrimary,
|
|
136
|
+
ghostIcon: p.neutralPrimary,
|
|
137
|
+
|
|
138
|
+
ghostHoveredBackground: p.neutralLighter,
|
|
139
|
+
ghostHoveredBorder: p.neutralLighter,
|
|
140
|
+
ghostHoveredContent: p.neutralDark,
|
|
141
|
+
ghostHoveredIcon: p.neutralDark,
|
|
142
|
+
|
|
143
|
+
ghostFocusedBackground: p.neutralLighter,
|
|
144
|
+
ghostFocusedBorder: p.neutralSecondaryAlt,
|
|
145
|
+
ghostFocusedContent: p.neutralDark,
|
|
146
|
+
ghostFocusedIcon: p.neutralDark,
|
|
147
|
+
|
|
148
|
+
ghostPressedBackground: p.neutralLight,
|
|
149
|
+
ghostPressedBorder: p.neutralLight,
|
|
150
|
+
ghostPressedContent: p.neutralDark,
|
|
151
|
+
ghostPressedIcon: p.neutralDark,
|
|
152
|
+
|
|
153
|
+
ghostDisabledBackground: p.white,
|
|
154
|
+
ghostDisabledBorder: p.white,
|
|
155
|
+
ghostDisabledContent: p.neutralTertiary,
|
|
156
|
+
ghostDisabledIcon: p.neutralTertiary,
|
|
157
|
+
|
|
158
|
+
brandedBackground: p.themePrimary,
|
|
159
|
+
brandedBorder: p.themeDark,
|
|
160
|
+
brandedContent: p.white,
|
|
161
|
+
brandedIcon: p.white,
|
|
162
|
+
|
|
163
|
+
brandedHoveredBackground: p.themeDarkAlt,
|
|
164
|
+
brandedHoveredBorder: p.themeDarker,
|
|
165
|
+
brandedHoveredContent: p.white,
|
|
166
|
+
brandedHoveredIcon: p.white,
|
|
167
|
+
|
|
168
|
+
brandedFocusedBackground: p.themeDarkAlt,
|
|
169
|
+
brandedFocusedBorder: p.themeDarker,
|
|
170
|
+
brandedFocusedContent: p.white,
|
|
171
|
+
brandedFocusedIcon: p.white,
|
|
172
|
+
|
|
173
|
+
brandedPressedBackground: p.themeDark,
|
|
174
|
+
brandedPressedBorder: p.themeDarker,
|
|
175
|
+
brandedPressedContent: p.white,
|
|
176
|
+
brandedPressedIcon: p.white,
|
|
177
|
+
|
|
178
|
+
brandedDisabledBackground: p.neutralLighter,
|
|
179
|
+
brandedDisabledBorder: p.neutralLighter,
|
|
180
|
+
brandedDisabledContent: p.neutralQuaternary,
|
|
181
|
+
brandedDisabledIcon: p.neutralQuaternary,
|
|
182
|
+
|
|
183
|
+
defaultCheckedBackground: p.neutralTertiaryAlt,
|
|
184
|
+
defaultCheckedContent: p.neutralDark,
|
|
185
|
+
defaultCheckedHoveredBackground: p.neutralLight,
|
|
186
|
+
defaultCheckedHoveredContent: isInverted ? p.neutralPrimary : p.neutralDark,
|
|
187
|
+
|
|
188
|
+
brandedCheckedBackground: p.neutralTertiaryAlt,
|
|
189
|
+
brandedCheckedContent: p.neutralDark,
|
|
190
|
+
brandedCheckedHoveredBackground: p.neutralLight,
|
|
191
|
+
brandedCheckedHoveredContent: isInverted ? p.neutralPrimary : p.neutralDark,
|
|
192
|
+
|
|
193
|
+
ghostCheckedBackground: p.neutralLight,
|
|
194
|
+
ghostCheckedContent: p.black,
|
|
195
|
+
ghostCheckedHoveredBackground: p.neutralLighter,
|
|
196
|
+
ghostCheckedHoveredContent: p.neutralDark,
|
|
197
|
+
ghostCheckedHoveredBorder: p.neutralDark,
|
|
198
|
+
|
|
199
|
+
ghostSecondaryContent: p.neutralSecondary,
|
|
200
|
+
ghostFocusedSecondaryContent: p.neutralSecondary,
|
|
201
|
+
ghostHoveredSecondaryContent: p.neutralSecondary,
|
|
202
|
+
ghostPressedSecondaryContent: p.neutralSecondary,
|
|
203
|
+
|
|
204
|
+
brandedSecondaryContent: p.neutralLighterAlt,
|
|
205
|
+
brandedFocusedSecondaryContent: p.neutralLighterAlt,
|
|
206
|
+
brandedHoveredSecondaryContent: p.neutralLighterAlt,
|
|
207
|
+
brandedPressedSecondaryContent: p.neutralLighterAlt,
|
|
208
|
+
|
|
209
|
+
defaultDisabledSecondaryContent: p.neutralTertiary,
|
|
210
|
+
defaultHoveredSecondaryContent: p.neutralTertiary,
|
|
211
|
+
defaultPressedSecondaryContent: p.neutralTertiary,
|
|
212
|
+
|
|
213
|
+
checkmarkColor: p.white,
|
|
214
|
+
checkboxBackground: p.themePrimary,
|
|
215
|
+
checkboxBackgroundDisabled: p.neutralLighter,
|
|
216
|
+
checkboxBorderColor: p.neutralSecondaryAlt,
|
|
217
|
+
|
|
218
|
+
personaActivityRing: p.white,
|
|
219
|
+
personaActivityGlow: p.themePrimary,
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export function getStockWebPalette(): ThemeColorDefinition {
|
|
224
|
+
return {
|
|
225
|
+
...paletteFromFabricColors({
|
|
226
|
+
black: globalTokens.color.black,
|
|
227
|
+
neutralDark: '#201f1e',
|
|
228
|
+
neutralPrimary: '#323130',
|
|
229
|
+
neutralPrimaryAlt: '#3b3a39',
|
|
230
|
+
neutralSecondary: '#605e5c',
|
|
231
|
+
neutralSecondaryAlt: '#8a8886',
|
|
232
|
+
neutralTertiary: '#a19f9d',
|
|
233
|
+
neutralTertiaryAlt: '#c8c6c4',
|
|
234
|
+
neutralQuaternary: '#d2d0ce',
|
|
235
|
+
neutralQuaternaryAlt: '#e1dfdd',
|
|
236
|
+
neutralLight: '#edebe9',
|
|
237
|
+
neutralLighter: '#f3f2f1',
|
|
238
|
+
neutralLighterAlt: '#faf9f8',
|
|
239
|
+
white: globalTokens.color.white,
|
|
240
|
+
// Shared Colors
|
|
241
|
+
red: globalTokens.color.red.primary,
|
|
242
|
+
redDark: globalTokens.color.burgundy.primary,
|
|
243
|
+
|
|
244
|
+
themeDarker: globalTokens.color.brand.shade40,
|
|
245
|
+
themeDark: globalTokens.color.brand.shade20,
|
|
246
|
+
themeDarkAlt: globalTokens.color.brand.shade10,
|
|
247
|
+
themePrimary: globalTokens.color.brand.primary,
|
|
248
|
+
themeSecondary: '#2b88d8',
|
|
249
|
+
themeTertiary: '#71afe5',
|
|
250
|
+
themeLight: globalTokens.color.brand.tint40,
|
|
251
|
+
themeLighter: globalTokens.color.brand.tint50,
|
|
252
|
+
themeLighterAlt: globalTokens.color.brand.tint60,
|
|
253
|
+
accent: globalTokens.color.brand.primary,
|
|
254
|
+
blackTranslucent40: 'rgba(0,0,0,.4)',
|
|
255
|
+
}),
|
|
256
|
+
...createColorAliasTokens('light'),
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export function getStockWebDarkPalette(): ThemeColorDefinition {
|
|
261
|
+
return {
|
|
262
|
+
...paletteFromFabricColors(
|
|
263
|
+
{
|
|
264
|
+
// colors taken from fluentui DarkCustomizations.ts
|
|
265
|
+
themeDarker: '#82c7ff',
|
|
266
|
+
themeDark: globalTokens.color.brand.tint30,
|
|
267
|
+
themeDarkAlt: globalTokens.color.brand.tint20,
|
|
268
|
+
themePrimary: globalTokens.color.brand.tint10,
|
|
269
|
+
themeSecondary: globalTokens.color.brand.primary,
|
|
270
|
+
themeTertiary: '#235a85',
|
|
271
|
+
themeLight: globalTokens.color.brand.shade30,
|
|
272
|
+
themeLighter: globalTokens.color.brand.shade50,
|
|
273
|
+
themeLighterAlt: globalTokens.color.brand.shade60,
|
|
274
|
+
black: globalTokens.color.white,
|
|
275
|
+
neutralDark: '#faf9f8',
|
|
276
|
+
neutralPrimary: '#f3f2f1',
|
|
277
|
+
neutralPrimaryAlt: '#c8c6c4',
|
|
278
|
+
neutralSecondary: '#a19f9d',
|
|
279
|
+
neutralSecondaryAlt: '#979693',
|
|
280
|
+
neutralTertiary: '#797775',
|
|
281
|
+
neutralTertiaryAlt: '#484644',
|
|
282
|
+
neutralQuaternary: '#3b3a39',
|
|
283
|
+
neutralQuaternaryAlt: '#323130',
|
|
284
|
+
neutralLight: '#292827',
|
|
285
|
+
neutralLighter: '#252423',
|
|
286
|
+
neutralLighterAlt: '#201f1e',
|
|
287
|
+
white: '#1b1a19',
|
|
288
|
+
red: globalTokens.color.red.primary,
|
|
289
|
+
accent: globalTokens.color.brand.primary,
|
|
290
|
+
redDark: '#f1707b',
|
|
291
|
+
blackTranslucent40: 'rgba(0,0,0,.4)',
|
|
292
|
+
},
|
|
293
|
+
true,
|
|
294
|
+
),
|
|
295
|
+
...createColorAliasTokens('dark'),
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export function getStockWebHCPalette(): ThemeColorDefinition {
|
|
300
|
+
return {
|
|
301
|
+
background: '#000000',
|
|
302
|
+
bodyStandoutBackground: '#000000',
|
|
303
|
+
bodyFrameBackground: '#000000',
|
|
304
|
+
bodyFrameDivider: '#000000',
|
|
305
|
+
bodyText: '#ffffff',
|
|
306
|
+
bodyTextChecked: '#000000',
|
|
307
|
+
subText: '#ffffff',
|
|
308
|
+
bodyDivider: '#ffffff',
|
|
309
|
+
|
|
310
|
+
disabledBackground: '#000000',
|
|
311
|
+
disabledText: '#3ff23f',
|
|
312
|
+
disabledBodyText: '#3ff23f',
|
|
313
|
+
disabledSubtext: '#3ff23f',
|
|
314
|
+
disabledBodySubtext: '#3ff23f',
|
|
315
|
+
|
|
316
|
+
focusBorder: '#ffffff',
|
|
317
|
+
variantBorder: '#ffffff',
|
|
318
|
+
variantBorderHovered: '#ffffff',
|
|
319
|
+
defaultStateBackground: '#000000',
|
|
320
|
+
|
|
321
|
+
errorText: '#ffffff',
|
|
322
|
+
warningText: '#ffffff',
|
|
323
|
+
errorBackground: '#000000',
|
|
324
|
+
blockingBackground: '#000000',
|
|
325
|
+
warningBackground: '#000000',
|
|
326
|
+
warningHighlight: '#ffffff',
|
|
327
|
+
successBackground: '#000000',
|
|
328
|
+
|
|
329
|
+
inputBorder: '#ffffff',
|
|
330
|
+
inputBorderHovered: '#1aebff',
|
|
331
|
+
inputBackground: '#000000',
|
|
332
|
+
inputBackgroundChecked: '#1aebff',
|
|
333
|
+
inputBackgroundCheckedHovered: '#1aebff',
|
|
334
|
+
inputForegroundChecked: '#000000',
|
|
335
|
+
inputFocusBorderAlt: '#ffffff',
|
|
336
|
+
smallInputBorder: '#ffffff',
|
|
337
|
+
inputText: '#ffffff',
|
|
338
|
+
inputTextHovered: '#000000',
|
|
339
|
+
inputPlaceholderText: '#ffffff',
|
|
340
|
+
|
|
341
|
+
buttonBackground: '#000000',
|
|
342
|
+
buttonBackgroundChecked: '#1aebff',
|
|
343
|
+
buttonBackgroundHovered: '#1aebff',
|
|
344
|
+
buttonBackgroundCheckedHovered: '#1aebff',
|
|
345
|
+
buttonBackgroundPressed: '#1aebff',
|
|
346
|
+
buttonBackgroundDisabled: '#000000',
|
|
347
|
+
buttonBorder: '#ffffff',
|
|
348
|
+
buttonText: '#ffffff',
|
|
349
|
+
buttonTextHovered: '#000000',
|
|
350
|
+
buttonTextChecked: '#000000',
|
|
351
|
+
buttonTextCheckedHovered: '#000000',
|
|
352
|
+
buttonTextPressed: '#000000',
|
|
353
|
+
buttonTextDisabled: '#3ff23f',
|
|
354
|
+
buttonBorderDisabled: '#3ff23f',
|
|
355
|
+
buttonBorderFocused: '#ffffff',
|
|
356
|
+
|
|
357
|
+
primaryButtonBackground: '#000000',
|
|
358
|
+
primaryButtonBackgroundHovered: '#1aebff',
|
|
359
|
+
primaryButtonBackgroundPressed: '#1aebff',
|
|
360
|
+
primaryButtonBackgroundDisabled: '#000000',
|
|
361
|
+
primaryButtonBorder: '#ffffff',
|
|
362
|
+
primaryButtonBorderFocused: '#ffffff',
|
|
363
|
+
primaryButtonText: '#ffffff',
|
|
364
|
+
primaryButtonTextHovered: '#000000',
|
|
365
|
+
primaryButtonTextPressed: '#000000',
|
|
366
|
+
primaryButtonTextDisabled: '#3ff23f',
|
|
367
|
+
|
|
368
|
+
accentButtonBackground: '#000000',
|
|
369
|
+
accentButtonText: '#ffffff',
|
|
370
|
+
|
|
371
|
+
menuBackground: '#000000',
|
|
372
|
+
menuDivider: '#ffffff',
|
|
373
|
+
menuIcon: '#ffffff',
|
|
374
|
+
menuHeader: '#ffffff',
|
|
375
|
+
menuItemBackgroundHovered: '#1aebff',
|
|
376
|
+
menuItemBackgroundPressed: '#1aebff',
|
|
377
|
+
menuItemText: '#ffffff',
|
|
378
|
+
menuItemTextHovered: '#000000',
|
|
379
|
+
|
|
380
|
+
listBackground: '#000000',
|
|
381
|
+
listText: '#ffffff',
|
|
382
|
+
listItemBackgroundHovered: '#1aebff',
|
|
383
|
+
listItemBackgroundChecked: '#1aebff',
|
|
384
|
+
listItemBackgroundCheckedHovered: '#1aebff',
|
|
385
|
+
|
|
386
|
+
listHeaderBackgroundHovered: '#1aebff',
|
|
387
|
+
listHeaderBackgroundPressed: '#1aebff',
|
|
388
|
+
|
|
389
|
+
actionLink: '#ffff00',
|
|
390
|
+
actionLinkHovered: '#ffffff',
|
|
391
|
+
link: '#ffff00',
|
|
392
|
+
linkHovered: '#ffffff',
|
|
393
|
+
linkPressed: '#ffffff',
|
|
394
|
+
|
|
395
|
+
// Control Color Tokens
|
|
396
|
+
defaultBackground: '#000000',
|
|
397
|
+
defaultBorder: '#ffffff',
|
|
398
|
+
defaultContent: '#ffffff',
|
|
399
|
+
defaultIcon: '#ffffff',
|
|
400
|
+
|
|
401
|
+
defaultHoveredBackground: '#1aebff',
|
|
402
|
+
defaultHoveredBorder: '#1aebff',
|
|
403
|
+
defaultHoveredContent: '#000000',
|
|
404
|
+
defaultHoveredIcon: '#000000',
|
|
405
|
+
|
|
406
|
+
defaultFocusedBackground: '#000000',
|
|
407
|
+
defaultFocusedBorder: '#ffffff',
|
|
408
|
+
defaultFocusedContent: '#ffffff',
|
|
409
|
+
defaultFocusedIcon: '#ffffff',
|
|
410
|
+
|
|
411
|
+
defaultPressedBackground: '#1aebff',
|
|
412
|
+
defaultPressedBorder: '#1aebff',
|
|
413
|
+
defaultPressedContent: '#000000',
|
|
414
|
+
defaultPressedIcon: '#000000',
|
|
415
|
+
|
|
416
|
+
defaultDisabledBackground: '#000000',
|
|
417
|
+
defaultDisabledBorder: '#3ff23f',
|
|
418
|
+
defaultDisabledContent: '#3ff23f',
|
|
419
|
+
defaultDisabledIcon: '#3ff23f',
|
|
420
|
+
|
|
421
|
+
ghostBackground: '#000000',
|
|
422
|
+
ghostBorder: '#000000',
|
|
423
|
+
ghostContent: '#ffffff',
|
|
424
|
+
ghostIcon: '#ffffff',
|
|
425
|
+
|
|
426
|
+
ghostHoveredBackground: '#1aebff',
|
|
427
|
+
ghostHoveredBorder: '#1aebff',
|
|
428
|
+
ghostHoveredContent: '#000000',
|
|
429
|
+
ghostHoveredIcon: '#000000',
|
|
430
|
+
|
|
431
|
+
ghostFocusedBackground: '#000000',
|
|
432
|
+
ghostFocusedBorder: '#ffffff',
|
|
433
|
+
ghostFocusedContent: '#ffffff',
|
|
434
|
+
ghostFocusedIcon: '#ffffff',
|
|
435
|
+
|
|
436
|
+
ghostPressedBackground: '#1aebff',
|
|
437
|
+
ghostPressedBorder: '#1aebff',
|
|
438
|
+
ghostPressedContent: '#000000',
|
|
439
|
+
ghostPressedIcon: '#000000',
|
|
440
|
+
|
|
441
|
+
ghostDisabledBackground: '#000000',
|
|
442
|
+
ghostDisabledBorder: '#000000',
|
|
443
|
+
ghostDisabledContent: '#3ff23f',
|
|
444
|
+
ghostDisabledIcon: '#3ff23f',
|
|
445
|
+
|
|
446
|
+
brandedBackground: '#000000',
|
|
447
|
+
brandedBorder: '#ffffff',
|
|
448
|
+
brandedContent: '#ffffff',
|
|
449
|
+
brandedIcon: '#ffffff',
|
|
450
|
+
|
|
451
|
+
brandedHoveredBackground: '#1aebff',
|
|
452
|
+
brandedHoveredBorder: '#1aebff',
|
|
453
|
+
brandedHoveredContent: '#000000',
|
|
454
|
+
brandedHoveredIcon: '#000000',
|
|
455
|
+
|
|
456
|
+
brandedFocusedBackground: '#000000',
|
|
457
|
+
brandedFocusedBorder: '#ffffff',
|
|
458
|
+
brandedFocusedContent: '#ffffff',
|
|
459
|
+
brandedFocusedIcon: '#ffffff',
|
|
460
|
+
|
|
461
|
+
brandedPressedBackground: '#1aebff',
|
|
462
|
+
brandedPressedBorder: '#1aebff',
|
|
463
|
+
brandedPressedContent: '#000000',
|
|
464
|
+
brandedPressedIcon: '#000000',
|
|
465
|
+
|
|
466
|
+
brandedDisabledBackground: '#000000',
|
|
467
|
+
brandedDisabledBorder: '#3ff23f',
|
|
468
|
+
brandedDisabledContent: '#3ff23f',
|
|
469
|
+
brandedDisabledIcon: '#3ff23f',
|
|
470
|
+
|
|
471
|
+
defaultCheckedBackground: '#1aebff',
|
|
472
|
+
defaultCheckedContent: '#000000',
|
|
473
|
+
defaultCheckedHoveredBackground: '#1aebff',
|
|
474
|
+
defaultCheckedHoveredContent: '#000000',
|
|
475
|
+
|
|
476
|
+
brandedCheckedBackground: '#1aebff',
|
|
477
|
+
brandedCheckedContent: '#000000',
|
|
478
|
+
brandedCheckedHoveredBackground: '#1aebff',
|
|
479
|
+
brandedCheckedHoveredContent: '#000000',
|
|
480
|
+
|
|
481
|
+
ghostCheckedBackground: '#1aebff',
|
|
482
|
+
ghostCheckedContent: '#000000',
|
|
483
|
+
ghostCheckedHoveredBackground: '#1aebff',
|
|
484
|
+
ghostCheckedHoveredContent: '#000000',
|
|
485
|
+
ghostCheckedHoveredBorder: '#000000',
|
|
486
|
+
|
|
487
|
+
ghostSecondaryContent: '#ffffff',
|
|
488
|
+
ghostFocusedSecondaryContent: '#ffffff',
|
|
489
|
+
ghostHoveredSecondaryContent: '#000000',
|
|
490
|
+
ghostPressedSecondaryContent: '#000000',
|
|
491
|
+
|
|
492
|
+
brandedSecondaryContent: '#ffffff',
|
|
493
|
+
brandedFocusedSecondaryContent: '#ffffff',
|
|
494
|
+
brandedHoveredSecondaryContent: '#000000',
|
|
495
|
+
brandedPressedSecondaryContent: '#000000',
|
|
496
|
+
|
|
497
|
+
defaultDisabledSecondaryContent: '#ffffff',
|
|
498
|
+
defaultHoveredSecondaryContent: '#000000',
|
|
499
|
+
defaultPressedSecondaryContent: '#000000',
|
|
500
|
+
|
|
501
|
+
checkmarkColor: '#ffffff',
|
|
502
|
+
checkboxBackground: '#000000',
|
|
503
|
+
checkboxBackgroundDisabled: '#000000',
|
|
504
|
+
checkboxBorderColor: '#ffffff',
|
|
505
|
+
|
|
506
|
+
personaActivityRing: '#ffffff',
|
|
507
|
+
personaActivityGlow: 'transparent', // glow probably doesn't make sense on HC
|
|
508
|
+
...createColorAliasTokens('highContrast'),
|
|
509
|
+
};
|
|
510
|
+
}
|
package/src/defaultTheme.ts
CHANGED
|
@@ -7,13 +7,13 @@ import { createShadowAliasTokens } from './createAliasTokens';
|
|
|
7
7
|
function _defaultTypography(): Typography {
|
|
8
8
|
const defaultsDict = {
|
|
9
9
|
sizes: {
|
|
10
|
-
caption: globalTokens.font.
|
|
11
|
-
secondary: globalTokens.font.
|
|
12
|
-
body: globalTokens.font.
|
|
13
|
-
subheader: globalTokens.font.
|
|
14
|
-
header: globalTokens.font.
|
|
15
|
-
hero: globalTokens.font.
|
|
16
|
-
heroLarge: globalTokens.font.
|
|
10
|
+
caption: globalTokens.font.size100 as FontSize,
|
|
11
|
+
secondary: globalTokens.font.size200 as FontSize,
|
|
12
|
+
body: globalTokens.font.size300 as FontSize,
|
|
13
|
+
subheader: globalTokens.font.size400 as FontSize,
|
|
14
|
+
header: globalTokens.font.size500 as FontSize,
|
|
15
|
+
hero: globalTokens.font.size700 as FontSize,
|
|
16
|
+
heroLarge: globalTokens.font.size900 as FontSize,
|
|
17
17
|
} as FontSizes,
|
|
18
18
|
weights: {
|
|
19
19
|
regular: globalTokens.font.weight.regular as FontWeightValue,
|