@fluentui/tokens 1.0.0-alpha.22 → 1.0.0-alpha.24
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.md +20 -2
- package/dist/index.d.cts +509 -0
- package/dist/index.d.ts +23 -0
- package/lib/alias/darkColor.js +18 -0
- package/lib/alias/darkColor.js.map +1 -1
- package/lib/alias/darkColorPalette.js.map +1 -1
- package/lib/alias/highContrastColor.js +18 -0
- package/lib/alias/highContrastColor.js.map +1 -1
- package/lib/alias/highContrastColorPalette.js.map +1 -1
- package/lib/alias/lightColor.js +18 -0
- package/lib/alias/lightColor.js.map +1 -1
- package/lib/alias/lightColorPalette.js.map +1 -1
- package/lib/alias/teamsDarkColor.js +18 -0
- package/lib/alias/teamsDarkColor.js.map +1 -1
- package/lib/global/borderRadius.js +5 -0
- package/lib/global/borderRadius.js.map +1 -1
- package/lib/global/colorPalette.js.map +1 -1
- package/lib/global/colors.js +2 -1
- package/lib/global/colors.js.map +1 -1
- package/lib/global/typographyStyles.js.map +1 -1
- package/lib/statusColorMapping.js.map +1 -1
- package/lib/themeToTokensObject.js.map +1 -1
- package/lib/tokens.js +23 -0
- package/lib/tokens.js.map +1 -1
- package/lib/types.js.map +1 -1
- package/lib-commonjs/alias/{darkColor.js → darkColor.cjs} +19 -1
- package/lib-commonjs/alias/darkColor.cjs.map +1 -0
- package/lib-commonjs/alias/{darkColorPalette.js → darkColorPalette.cjs} +3 -3
- package/lib-commonjs/alias/darkColorPalette.cjs.map +1 -0
- package/lib-commonjs/alias/{highContrastColor.js → highContrastColor.cjs} +19 -1
- package/lib-commonjs/alias/highContrastColor.cjs.map +1 -0
- package/lib-commonjs/alias/{highContrastColorPalette.js → highContrastColorPalette.cjs} +3 -3
- package/lib-commonjs/alias/highContrastColorPalette.cjs.map +1 -0
- package/lib-commonjs/alias/{lightColor.js → lightColor.cjs} +19 -1
- package/lib-commonjs/alias/lightColor.cjs.map +1 -0
- package/lib-commonjs/alias/{lightColorPalette.js → lightColorPalette.cjs} +3 -3
- package/lib-commonjs/alias/lightColorPalette.cjs.map +1 -0
- package/lib-commonjs/alias/{teamsDarkColor.js → teamsDarkColor.cjs} +19 -1
- package/lib-commonjs/alias/teamsDarkColor.cjs.map +1 -0
- package/lib-commonjs/alias/{teamsFontFamilies.js → teamsFontFamilies.cjs} +1 -1
- package/lib-commonjs/global/{borderRadius.js → borderRadius.cjs} +5 -0
- package/lib-commonjs/global/borderRadius.cjs.map +1 -0
- package/lib-commonjs/global/{colorPalette.js → colorPalette.cjs} +1 -1
- package/lib-commonjs/global/colorPalette.cjs.map +1 -0
- package/lib-commonjs/global/{colors.js → colors.cjs} +2 -1
- package/lib-commonjs/global/colors.cjs.map +1 -0
- package/lib-commonjs/global/{index.js → index.cjs} +8 -8
- package/lib-commonjs/global/{typographyStyles.js → typographyStyles.cjs} +1 -1
- package/lib-commonjs/global/typographyStyles.cjs.map +1 -0
- package/lib-commonjs/{index.js → index.cjs} +5 -5
- package/lib-commonjs/statusColorMapping.cjs.map +1 -0
- package/lib-commonjs/themeToTokensObject.cjs.map +1 -0
- package/lib-commonjs/themes/{index.js → index.cjs} +2 -2
- package/lib-commonjs/themes/teams/{darkTheme.js → darkTheme.cjs} +3 -3
- package/lib-commonjs/themes/teams/{highContrastTheme.js → highContrastTheme.cjs} +2 -2
- package/lib-commonjs/themes/teams/{index.js → index.cjs} +3 -3
- package/lib-commonjs/themes/teams/{lightTheme.js → lightTheme.cjs} +3 -3
- package/lib-commonjs/themes/web/{darkTheme.js → darkTheme.cjs} +2 -2
- package/lib-commonjs/themes/web/{index.js → index.cjs} +2 -2
- package/lib-commonjs/themes/web/{lightTheme.js → lightTheme.cjs} +2 -2
- package/lib-commonjs/{tokens.js → tokens.cjs} +23 -0
- package/lib-commonjs/tokens.cjs.map +1 -0
- package/lib-commonjs/utils/{createDarkTheme.js → createDarkTheme.cjs} +7 -7
- package/lib-commonjs/utils/{createHighContrastTheme.js → createHighContrastTheme.cjs} +7 -7
- package/lib-commonjs/utils/{createLightTheme.js → createLightTheme.cjs} +7 -7
- package/lib-commonjs/utils/{createTeamsDarkTheme.js → createTeamsDarkTheme.cjs} +7 -7
- package/lib-commonjs/utils/{index.js → index.cjs} +4 -4
- package/package.json +13 -11
- package/lib-commonjs/alias/darkColor.js.map +0 -1
- package/lib-commonjs/alias/darkColorPalette.js.map +0 -1
- package/lib-commonjs/alias/highContrastColor.js.map +0 -1
- package/lib-commonjs/alias/highContrastColorPalette.js.map +0 -1
- package/lib-commonjs/alias/lightColor.js.map +0 -1
- package/lib-commonjs/alias/lightColorPalette.js.map +0 -1
- package/lib-commonjs/alias/teamsDarkColor.js.map +0 -1
- package/lib-commonjs/global/borderRadius.js.map +0 -1
- package/lib-commonjs/global/colorPalette.js.map +0 -1
- package/lib-commonjs/global/colors.js.map +0 -1
- package/lib-commonjs/global/typographyStyles.js.map +0 -1
- package/lib-commonjs/statusColorMapping.js.map +0 -1
- package/lib-commonjs/themeToTokensObject.js.map +0 -1
- package/lib-commonjs/tokens.js.map +0 -1
- /package/lib-commonjs/alias/{teamsFontFamilies.js.map → teamsFontFamilies.cjs.map} +0 -0
- /package/lib-commonjs/global/{brandColors.js → brandColors.cjs} +0 -0
- /package/lib-commonjs/global/{brandColors.js.map → brandColors.cjs.map} +0 -0
- /package/lib-commonjs/global/{curves.js → curves.cjs} +0 -0
- /package/lib-commonjs/global/{curves.js.map → curves.cjs.map} +0 -0
- /package/lib-commonjs/global/{durations.js → durations.cjs} +0 -0
- /package/lib-commonjs/global/{durations.js.map → durations.cjs.map} +0 -0
- /package/lib-commonjs/global/{fonts.js → fonts.cjs} +0 -0
- /package/lib-commonjs/global/{fonts.js.map → fonts.cjs.map} +0 -0
- /package/lib-commonjs/global/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/global/{spacings.js → spacings.cjs} +0 -0
- /package/lib-commonjs/global/{spacings.js.map → spacings.cjs.map} +0 -0
- /package/lib-commonjs/global/{strokeWidths.js → strokeWidths.cjs} +0 -0
- /package/lib-commonjs/global/{strokeWidths.js.map → strokeWidths.cjs.map} +0 -0
- /package/lib-commonjs/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/{sharedColorNames.js → sharedColorNames.cjs} +0 -0
- /package/lib-commonjs/{sharedColorNames.js.map → sharedColorNames.cjs.map} +0 -0
- /package/lib-commonjs/{statusColorMapping.js → statusColorMapping.cjs} +0 -0
- /package/lib-commonjs/{themeToTokensObject.js → themeToTokensObject.cjs} +0 -0
- /package/lib-commonjs/themes/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/themes/teams/{darkTheme.js.map → darkTheme.cjs.map} +0 -0
- /package/lib-commonjs/themes/teams/{highContrastTheme.js.map → highContrastTheme.cjs.map} +0 -0
- /package/lib-commonjs/themes/teams/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/themes/teams/{lightTheme.js.map → lightTheme.cjs.map} +0 -0
- /package/lib-commonjs/themes/web/{darkTheme.js.map → darkTheme.cjs.map} +0 -0
- /package/lib-commonjs/themes/web/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/themes/web/{lightTheme.js.map → lightTheme.cjs.map} +0 -0
- /package/lib-commonjs/{types.js → types.cjs} +0 -0
- /package/lib-commonjs/{types.js.map → types.cjs.map} +0 -0
- /package/lib-commonjs/utils/{createDarkTheme.js.map → createDarkTheme.cjs.map} +0 -0
- /package/lib-commonjs/utils/{createHighContrastTheme.js.map → createHighContrastTheme.cjs.map} +0 -0
- /package/lib-commonjs/utils/{createLightTheme.js.map → createLightTheme.cjs.map} +0 -0
- /package/lib-commonjs/utils/{createTeamsDarkTheme.js.map → createTeamsDarkTheme.cjs.map} +0 -0
- /package/lib-commonjs/utils/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/utils/{shadows.js → shadows.cjs} +0 -0
- /package/lib-commonjs/utils/{shadows.js.map → shadows.cjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Change Log - @fluentui/tokens
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Tue, 11 Aug 2026 17:16:03 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [1.0.0-alpha.24](https://github.com/microsoft/fluentui/tree/@fluentui/tokens_v1.0.0-alpha.24)
|
|
8
|
+
|
|
9
|
+
Tue, 11 Aug 2026 17:16:03 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/tokens_v1.0.0-alpha.23..@fluentui/tokens_v1.0.0-alpha.24)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- Ship ESM-first (type:module): valid ESM under lib/, CommonJS under lib-commonjs/*.cjs, and drop the `node` export condition - bare-Node `import` resolves ESM, `require` resolves CJS; node-targeted bundlers tree-shake. ([PR #36327](https://github.com/microsoft/fluentui/pull/36327) by martinhochel@microsoft.com)
|
|
15
|
+
|
|
16
|
+
## [1.0.0-alpha.23](https://github.com/microsoft/fluentui/tree/@fluentui/tokens_v1.0.0-alpha.23)
|
|
17
|
+
|
|
18
|
+
Thu, 22 Jan 2026 17:06:30 GMT
|
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/tokens_v1.0.0-alpha.22..@fluentui/tokens_v1.0.0-alpha.23)
|
|
20
|
+
|
|
21
|
+
### Changes
|
|
22
|
+
|
|
23
|
+
- chore(tokens): Add CAP DR tokens ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by jukapsia@microsoft.com)
|
|
24
|
+
|
|
7
25
|
## [1.0.0-alpha.22](https://github.com/microsoft/fluentui/tree/@fluentui/tokens_v1.0.0-alpha.22)
|
|
8
26
|
|
|
9
|
-
Wed, 30 Jul 2025
|
|
27
|
+
Wed, 30 Jul 2025 13:10:56 GMT
|
|
10
28
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/tokens_v1.0.0-alpha.21..@fluentui/tokens_v1.0.0-alpha.22)
|
|
11
29
|
|
|
12
30
|
### Changes
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
export declare type BorderRadiusTokens = {
|
|
2
|
+
borderRadiusNone: string;
|
|
3
|
+
borderRadiusSmall: string;
|
|
4
|
+
borderRadiusMedium: string;
|
|
5
|
+
borderRadiusLarge: string;
|
|
6
|
+
borderRadiusXLarge: string;
|
|
7
|
+
borderRadius2XLarge: string;
|
|
8
|
+
borderRadius3XLarge: string;
|
|
9
|
+
borderRadius4XLarge: string;
|
|
10
|
+
borderRadius5XLarge: string;
|
|
11
|
+
borderRadius6XLarge: string;
|
|
12
|
+
borderRadiusCircular: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export declare type Brands = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 | 110 | 120 | 130 | 140 | 150 | 160;
|
|
16
|
+
|
|
17
|
+
export declare type BrandVariants = Record<Brands, string>;
|
|
18
|
+
|
|
19
|
+
export declare type ColorPaletteAnchor = 'colorPaletteAnchorBackground2' | 'colorPaletteAnchorForeground2' | 'colorPaletteAnchorBorderActive';
|
|
20
|
+
|
|
21
|
+
export declare type ColorPaletteBeige = 'colorPaletteBeigeBackground2' | 'colorPaletteBeigeForeground2' | 'colorPaletteBeigeBorderActive';
|
|
22
|
+
|
|
23
|
+
export declare type ColorPaletteBerry = 'colorPaletteBerryBackground1' | 'colorPaletteBerryBackground2' | 'colorPaletteBerryBackground3' | 'colorPaletteBerryForeground1' | 'colorPaletteBerryForeground2' | 'colorPaletteBerryForeground3' | 'colorPaletteBerryBorderActive' | 'colorPaletteBerryBorder1' | 'colorPaletteBerryBorder2';
|
|
24
|
+
|
|
25
|
+
export declare type ColorPaletteBlue = 'colorPaletteBlueBackground2' | 'colorPaletteBlueForeground2' | 'colorPaletteBlueBorderActive';
|
|
26
|
+
|
|
27
|
+
export declare type ColorPaletteBrass = 'colorPaletteBrassBackground2' | 'colorPaletteBrassForeground2' | 'colorPaletteBrassBorderActive';
|
|
28
|
+
|
|
29
|
+
export declare type ColorPaletteBrown = 'colorPaletteBrownBackground2' | 'colorPaletteBrownForeground2' | 'colorPaletteBrownBorderActive';
|
|
30
|
+
|
|
31
|
+
export declare type ColorPaletteCornflower = 'colorPaletteCornflowerBackground2' | 'colorPaletteCornflowerForeground2' | 'colorPaletteCornflowerBorderActive';
|
|
32
|
+
|
|
33
|
+
export declare type ColorPaletteCranberry = 'colorPaletteCranberryBackground2' | 'colorPaletteCranberryForeground2' | 'colorPaletteCranberryBorderActive';
|
|
34
|
+
|
|
35
|
+
export declare type ColorPaletteDarkGreen = 'colorPaletteDarkGreenBackground2' | 'colorPaletteDarkGreenForeground2' | 'colorPaletteDarkGreenBorderActive';
|
|
36
|
+
|
|
37
|
+
export declare type ColorPaletteDarkOrange = 'colorPaletteDarkOrangeBackground1' | 'colorPaletteDarkOrangeBackground2' | 'colorPaletteDarkOrangeBackground3' | 'colorPaletteDarkOrangeForeground1' | 'colorPaletteDarkOrangeForeground2' | 'colorPaletteDarkOrangeForeground3' | 'colorPaletteDarkOrangeBorderActive' | 'colorPaletteDarkOrangeBorder1' | 'colorPaletteDarkOrangeBorder2';
|
|
38
|
+
|
|
39
|
+
export declare type ColorPaletteDarkRed = 'colorPaletteDarkRedBackground2' | 'colorPaletteDarkRedForeground2' | 'colorPaletteDarkRedBorderActive';
|
|
40
|
+
|
|
41
|
+
export declare type ColorPaletteForest = 'colorPaletteForestBackground2' | 'colorPaletteForestForeground2' | 'colorPaletteForestBorderActive';
|
|
42
|
+
|
|
43
|
+
export declare type ColorPaletteGold = 'colorPaletteGoldBackground2' | 'colorPaletteGoldForeground2' | 'colorPaletteGoldBorderActive';
|
|
44
|
+
|
|
45
|
+
export declare type ColorPaletteGrape = 'colorPaletteGrapeBackground2' | 'colorPaletteGrapeForeground2' | 'colorPaletteGrapeBorderActive';
|
|
46
|
+
|
|
47
|
+
export declare type ColorPaletteGreen = 'colorPaletteGreenBackground1' | 'colorPaletteGreenBackground2' | 'colorPaletteGreenBackground3' | 'colorPaletteGreenForeground1' | 'colorPaletteGreenForeground2' | 'colorPaletteGreenForeground3' | 'colorPaletteGreenForegroundInverted' | 'colorPaletteGreenBorderActive' | 'colorPaletteGreenBorder1' | 'colorPaletteGreenBorder2';
|
|
48
|
+
|
|
49
|
+
export declare type ColorPaletteLavender = 'colorPaletteLavenderBackground2' | 'colorPaletteLavenderForeground2' | 'colorPaletteLavenderBorderActive';
|
|
50
|
+
|
|
51
|
+
export declare type ColorPaletteLightGreen = 'colorPaletteLightGreenBackground1' | 'colorPaletteLightGreenBackground2' | 'colorPaletteLightGreenBackground3' | 'colorPaletteLightGreenForeground1' | 'colorPaletteLightGreenForeground2' | 'colorPaletteLightGreenForeground3' | 'colorPaletteLightGreenBorderActive' | 'colorPaletteLightGreenBorder1' | 'colorPaletteLightGreenBorder2';
|
|
52
|
+
|
|
53
|
+
export declare type ColorPaletteLightTeal = 'colorPaletteLightTealBackground2' | 'colorPaletteLightTealForeground2' | 'colorPaletteLightTealBorderActive';
|
|
54
|
+
|
|
55
|
+
export declare type ColorPaletteLilac = 'colorPaletteLilacBackground2' | 'colorPaletteLilacForeground2' | 'colorPaletteLilacBorderActive';
|
|
56
|
+
|
|
57
|
+
export declare type ColorPaletteMagenta = 'colorPaletteMagentaBackground2' | 'colorPaletteMagentaForeground2' | 'colorPaletteMagentaBorderActive';
|
|
58
|
+
|
|
59
|
+
export declare type ColorPaletteMarigold = 'colorPaletteMarigoldBackground1' | 'colorPaletteMarigoldBackground2' | 'colorPaletteMarigoldBackground3' | 'colorPaletteMarigoldForeground1' | 'colorPaletteMarigoldForeground2' | 'colorPaletteMarigoldForeground3' | 'colorPaletteMarigoldBorderActive' | 'colorPaletteMarigoldBorder1' | 'colorPaletteMarigoldBorder2';
|
|
60
|
+
|
|
61
|
+
export declare type ColorPaletteMink = 'colorPaletteMinkBackground2' | 'colorPaletteMinkForeground2' | 'colorPaletteMinkBorderActive';
|
|
62
|
+
|
|
63
|
+
export declare type ColorPaletteNavy = 'colorPaletteNavyBackground2' | 'colorPaletteNavyForeground2' | 'colorPaletteNavyBorderActive';
|
|
64
|
+
|
|
65
|
+
export declare type ColorPalettePeach = 'colorPalettePeachBackground2' | 'colorPalettePeachForeground2' | 'colorPalettePeachBorderActive';
|
|
66
|
+
|
|
67
|
+
export declare type ColorPalettePink = 'colorPalettePinkBackground2' | 'colorPalettePinkForeground2' | 'colorPalettePinkBorderActive';
|
|
68
|
+
|
|
69
|
+
export declare type ColorPalettePlatinum = 'colorPalettePlatinumBackground2' | 'colorPalettePlatinumForeground2' | 'colorPalettePlatinumBorderActive';
|
|
70
|
+
|
|
71
|
+
export declare type ColorPalettePlum = 'colorPalettePlumBackground2' | 'colorPalettePlumForeground2' | 'colorPalettePlumBorderActive';
|
|
72
|
+
|
|
73
|
+
export declare type ColorPalettePumpkin = 'colorPalettePumpkinBackground2' | 'colorPalettePumpkinForeground2' | 'colorPalettePumpkinBorderActive';
|
|
74
|
+
|
|
75
|
+
export declare type ColorPalettePurple = 'colorPalettePurpleBackground2' | 'colorPalettePurpleForeground2' | 'colorPalettePurpleBorderActive';
|
|
76
|
+
|
|
77
|
+
export declare type ColorPaletteRed = 'colorPaletteRedBackground1' | 'colorPaletteRedBackground2' | 'colorPaletteRedBackground3' | 'colorPaletteRedForeground1' | 'colorPaletteRedForeground2' | 'colorPaletteRedForeground3' | 'colorPaletteRedForegroundInverted' | 'colorPaletteRedBorderActive' | 'colorPaletteRedBorder1' | 'colorPaletteRedBorder2';
|
|
78
|
+
|
|
79
|
+
export declare type ColorPaletteRoyalBlue = 'colorPaletteRoyalBlueBackground2' | 'colorPaletteRoyalBlueForeground2' | 'colorPaletteRoyalBlueBorderActive';
|
|
80
|
+
|
|
81
|
+
export declare type ColorPaletteSeafoam = 'colorPaletteSeafoamBackground2' | 'colorPaletteSeafoamForeground2' | 'colorPaletteSeafoamBorderActive';
|
|
82
|
+
|
|
83
|
+
export declare type ColorPaletteSteel = 'colorPaletteSteelBackground2' | 'colorPaletteSteelForeground2' | 'colorPaletteSteelBorderActive';
|
|
84
|
+
|
|
85
|
+
export declare type ColorPaletteTeal = 'colorPaletteTealBackground2' | 'colorPaletteTealForeground2' | 'colorPaletteTealBorderActive';
|
|
86
|
+
|
|
87
|
+
export declare type ColorPaletteTokens = StatusColorPaletteTokens & PersonaColorPaletteTokens;
|
|
88
|
+
|
|
89
|
+
export declare type ColorPaletteYellow = 'colorPaletteYellowBackground1' | 'colorPaletteYellowBackground2' | 'colorPaletteYellowBackground3' | 'colorPaletteYellowForeground1' | 'colorPaletteYellowForeground2' | 'colorPaletteYellowForeground3' | 'colorPaletteYellowForegroundInverted' | 'colorPaletteYellowBorderActive' | 'colorPaletteYellowBorder1' | 'colorPaletteYellowBorder2';
|
|
90
|
+
|
|
91
|
+
declare type ColorStatusDanger = 'colorStatusDangerBackground1' | 'colorStatusDangerBackground2' | 'colorStatusDangerBackground3' | 'colorStatusDangerBackground3Hover' | 'colorStatusDangerBackground3Pressed' | 'colorStatusDangerForeground1' | 'colorStatusDangerForeground2' | 'colorStatusDangerForeground3' | 'colorStatusDangerForegroundInverted' | 'colorStatusDangerBorderActive' | 'colorStatusDangerBorder1' | 'colorStatusDangerBorder2';
|
|
92
|
+
|
|
93
|
+
declare type ColorStatusSuccess = 'colorStatusSuccessBackground1' | 'colorStatusSuccessBackground2' | 'colorStatusSuccessBackground3' | 'colorStatusSuccessForeground1' | 'colorStatusSuccessForeground2' | 'colorStatusSuccessForeground3' | 'colorStatusSuccessForegroundInverted' | 'colorStatusSuccessBorderActive' | 'colorStatusSuccessBorder1' | 'colorStatusSuccessBorder2';
|
|
94
|
+
|
|
95
|
+
declare type ColorStatusTokens = Record<ColorStatusSuccess | ColorStatusWarning | ColorStatusDanger, string>;
|
|
96
|
+
|
|
97
|
+
declare type ColorStatusWarning = 'colorStatusWarningBackground1' | 'colorStatusWarningBackground2' | 'colorStatusWarningBackground3' | 'colorStatusWarningForeground1' | 'colorStatusWarningForeground2' | 'colorStatusWarningForeground3' | 'colorStatusWarningForegroundInverted' | 'colorStatusWarningBorderActive' | 'colorStatusWarningBorder1' | 'colorStatusWarningBorder2';
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Design tokens for alias colors
|
|
101
|
+
*/
|
|
102
|
+
export declare type ColorTokens = {
|
|
103
|
+
colorNeutralForeground1: string;
|
|
104
|
+
colorNeutralForeground1Hover: string;
|
|
105
|
+
colorNeutralForeground1Pressed: string;
|
|
106
|
+
colorNeutralForeground1Selected: string;
|
|
107
|
+
colorNeutralForeground2: string;
|
|
108
|
+
colorNeutralForeground2Hover: string;
|
|
109
|
+
colorNeutralForeground2Pressed: string;
|
|
110
|
+
colorNeutralForeground2Selected: string;
|
|
111
|
+
colorNeutralForeground2BrandHover: string;
|
|
112
|
+
colorNeutralForeground2BrandPressed: string;
|
|
113
|
+
colorNeutralForeground2BrandSelected: string;
|
|
114
|
+
colorNeutralForeground3: string;
|
|
115
|
+
colorNeutralForeground3Hover: string;
|
|
116
|
+
colorNeutralForeground3Pressed: string;
|
|
117
|
+
colorNeutralForeground3Selected: string;
|
|
118
|
+
colorNeutralForeground3BrandHover: string;
|
|
119
|
+
colorNeutralForeground3BrandPressed: string;
|
|
120
|
+
colorNeutralForeground3BrandSelected: string;
|
|
121
|
+
colorNeutralForeground4: string;
|
|
122
|
+
colorNeutralForeground5: string;
|
|
123
|
+
colorNeutralForeground5Hover: string;
|
|
124
|
+
colorNeutralForeground5Pressed: string;
|
|
125
|
+
colorNeutralForeground5Selected: string;
|
|
126
|
+
colorNeutralForegroundDisabled: string;
|
|
127
|
+
colorNeutralForegroundInvertedDisabled: string;
|
|
128
|
+
colorBrandForegroundLink: string;
|
|
129
|
+
colorBrandForegroundLinkHover: string;
|
|
130
|
+
colorBrandForegroundLinkPressed: string;
|
|
131
|
+
colorBrandForegroundLinkSelected: string;
|
|
132
|
+
colorNeutralForeground2Link: string;
|
|
133
|
+
colorNeutralForeground2LinkHover: string;
|
|
134
|
+
colorNeutralForeground2LinkPressed: string;
|
|
135
|
+
colorNeutralForeground2LinkSelected: string;
|
|
136
|
+
colorCompoundBrandForeground1: string;
|
|
137
|
+
colorCompoundBrandForeground1Hover: string;
|
|
138
|
+
colorCompoundBrandForeground1Pressed: string;
|
|
139
|
+
colorBrandForeground1: string;
|
|
140
|
+
colorBrandForeground2: string;
|
|
141
|
+
colorBrandForeground2Hover: string;
|
|
142
|
+
colorBrandForeground2Pressed: string;
|
|
143
|
+
colorNeutralForeground1Static: string;
|
|
144
|
+
colorNeutralForegroundInverted: string;
|
|
145
|
+
colorNeutralForegroundInvertedHover: string;
|
|
146
|
+
colorNeutralForegroundInvertedPressed: string;
|
|
147
|
+
colorNeutralForegroundInvertedSelected: string;
|
|
148
|
+
colorNeutralForegroundInverted2: string;
|
|
149
|
+
colorNeutralForegroundOnBrand: string;
|
|
150
|
+
colorNeutralForegroundStaticInverted: string;
|
|
151
|
+
colorNeutralForegroundInvertedLink: string;
|
|
152
|
+
colorNeutralForegroundInvertedLinkHover: string;
|
|
153
|
+
colorNeutralForegroundInvertedLinkPressed: string;
|
|
154
|
+
colorNeutralForegroundInvertedLinkSelected: string;
|
|
155
|
+
colorBrandForegroundInverted: string;
|
|
156
|
+
colorBrandForegroundInvertedHover: string;
|
|
157
|
+
colorBrandForegroundInvertedPressed: string;
|
|
158
|
+
colorBrandForegroundOnLight: string;
|
|
159
|
+
colorBrandForegroundOnLightHover: string;
|
|
160
|
+
colorBrandForegroundOnLightPressed: string;
|
|
161
|
+
colorBrandForegroundOnLightSelected: string;
|
|
162
|
+
colorNeutralBackground1: string;
|
|
163
|
+
colorNeutralBackground1Hover: string;
|
|
164
|
+
colorNeutralBackground1Pressed: string;
|
|
165
|
+
colorNeutralBackground1Selected: string;
|
|
166
|
+
colorNeutralBackground2: string;
|
|
167
|
+
colorNeutralBackground2Hover: string;
|
|
168
|
+
colorNeutralBackground2Pressed: string;
|
|
169
|
+
colorNeutralBackground2Selected: string;
|
|
170
|
+
colorNeutralBackground3: string;
|
|
171
|
+
colorNeutralBackground3Hover: string;
|
|
172
|
+
colorNeutralBackground3Pressed: string;
|
|
173
|
+
colorNeutralBackground3Selected: string;
|
|
174
|
+
colorNeutralBackground4: string;
|
|
175
|
+
colorNeutralBackground4Hover: string;
|
|
176
|
+
colorNeutralBackground4Pressed: string;
|
|
177
|
+
colorNeutralBackground4Selected: string;
|
|
178
|
+
colorNeutralBackground5: string;
|
|
179
|
+
colorNeutralBackground5Hover: string;
|
|
180
|
+
colorNeutralBackground5Pressed: string;
|
|
181
|
+
colorNeutralBackground5Selected: string;
|
|
182
|
+
colorNeutralBackground6: string;
|
|
183
|
+
colorNeutralBackground7: string;
|
|
184
|
+
colorNeutralBackground7Hover: string;
|
|
185
|
+
colorNeutralBackground7Pressed: string;
|
|
186
|
+
colorNeutralBackground7Selected: string;
|
|
187
|
+
colorNeutralBackground8: string;
|
|
188
|
+
colorNeutralBackgroundInverted: string;
|
|
189
|
+
colorNeutralBackgroundInvertedHover: string;
|
|
190
|
+
colorNeutralBackgroundInvertedPressed: string;
|
|
191
|
+
colorNeutralBackgroundInvertedSelected: string;
|
|
192
|
+
colorNeutralBackgroundStatic: string;
|
|
193
|
+
colorNeutralBackgroundAlpha: string;
|
|
194
|
+
colorNeutralBackgroundAlpha2: string;
|
|
195
|
+
colorSubtleBackground: string;
|
|
196
|
+
colorSubtleBackgroundHover: string;
|
|
197
|
+
colorSubtleBackgroundPressed: string;
|
|
198
|
+
colorSubtleBackgroundSelected: string;
|
|
199
|
+
colorSubtleBackgroundLightAlphaHover: string;
|
|
200
|
+
colorSubtleBackgroundLightAlphaPressed: string;
|
|
201
|
+
colorSubtleBackgroundLightAlphaSelected: string;
|
|
202
|
+
colorSubtleBackgroundInverted: string;
|
|
203
|
+
colorSubtleBackgroundInvertedHover: string;
|
|
204
|
+
colorSubtleBackgroundInvertedPressed: string;
|
|
205
|
+
colorSubtleBackgroundInvertedSelected: string;
|
|
206
|
+
colorTransparentBackground: string;
|
|
207
|
+
colorTransparentBackgroundHover: string;
|
|
208
|
+
colorTransparentBackgroundPressed: string;
|
|
209
|
+
colorTransparentBackgroundSelected: string;
|
|
210
|
+
colorNeutralBackgroundDisabled: string;
|
|
211
|
+
colorNeutralBackgroundDisabled2: string;
|
|
212
|
+
colorNeutralBackgroundInvertedDisabled: string;
|
|
213
|
+
colorNeutralStencil1: string;
|
|
214
|
+
colorNeutralStencil2: string;
|
|
215
|
+
colorNeutralStencil1Alpha: string;
|
|
216
|
+
colorNeutralStencil2Alpha: string;
|
|
217
|
+
colorBackgroundOverlay: string;
|
|
218
|
+
colorScrollbarOverlay: string;
|
|
219
|
+
colorBrandBackground: string;
|
|
220
|
+
colorBrandBackgroundHover: string;
|
|
221
|
+
colorBrandBackgroundPressed: string;
|
|
222
|
+
colorBrandBackgroundSelected: string;
|
|
223
|
+
colorCompoundBrandBackground: string;
|
|
224
|
+
colorCompoundBrandBackgroundHover: string;
|
|
225
|
+
colorCompoundBrandBackgroundPressed: string;
|
|
226
|
+
colorBrandBackgroundStatic: string;
|
|
227
|
+
colorBrandBackground2: string;
|
|
228
|
+
colorBrandBackground2Hover: string;
|
|
229
|
+
colorBrandBackground2Pressed: string;
|
|
230
|
+
colorBrandBackground3Static: string;
|
|
231
|
+
colorBrandBackground4Static: string;
|
|
232
|
+
colorBrandBackgroundInverted: string;
|
|
233
|
+
colorBrandBackgroundInvertedHover: string;
|
|
234
|
+
colorBrandBackgroundInvertedPressed: string;
|
|
235
|
+
colorBrandBackgroundInvertedSelected: string;
|
|
236
|
+
colorNeutralCardBackground: string;
|
|
237
|
+
colorNeutralCardBackgroundHover: string;
|
|
238
|
+
colorNeutralCardBackgroundPressed: string;
|
|
239
|
+
colorNeutralCardBackgroundSelected: string;
|
|
240
|
+
colorNeutralCardBackgroundDisabled: string;
|
|
241
|
+
colorNeutralStrokeAccessible: string;
|
|
242
|
+
colorNeutralStrokeAccessibleHover: string;
|
|
243
|
+
colorNeutralStrokeAccessiblePressed: string;
|
|
244
|
+
colorNeutralStrokeAccessibleSelected: string;
|
|
245
|
+
colorNeutralStroke1: string;
|
|
246
|
+
colorNeutralStroke1Hover: string;
|
|
247
|
+
colorNeutralStroke1Pressed: string;
|
|
248
|
+
colorNeutralStroke1Selected: string;
|
|
249
|
+
colorNeutralStroke2: string;
|
|
250
|
+
colorNeutralStroke3: string;
|
|
251
|
+
colorNeutralStroke4: string;
|
|
252
|
+
colorNeutralStroke4Hover: string;
|
|
253
|
+
colorNeutralStroke4Pressed: string;
|
|
254
|
+
colorNeutralStroke4Selected: string;
|
|
255
|
+
colorNeutralStrokeSubtle: string;
|
|
256
|
+
colorNeutralStrokeOnBrand: string;
|
|
257
|
+
colorNeutralStrokeOnBrand2: string;
|
|
258
|
+
colorNeutralStrokeOnBrand2Hover: string;
|
|
259
|
+
colorNeutralStrokeOnBrand2Pressed: string;
|
|
260
|
+
colorNeutralStrokeOnBrand2Selected: string;
|
|
261
|
+
colorBrandStroke1: string;
|
|
262
|
+
colorBrandStroke2: string;
|
|
263
|
+
colorBrandStroke2Hover: string;
|
|
264
|
+
colorBrandStroke2Pressed: string;
|
|
265
|
+
colorBrandStroke2Contrast: string;
|
|
266
|
+
colorCompoundBrandStroke: string;
|
|
267
|
+
colorCompoundBrandStrokeHover: string;
|
|
268
|
+
colorCompoundBrandStrokePressed: string;
|
|
269
|
+
colorNeutralStrokeDisabled: string;
|
|
270
|
+
colorNeutralStrokeDisabled2: string;
|
|
271
|
+
colorNeutralStrokeInvertedDisabled: string;
|
|
272
|
+
colorTransparentStroke: string;
|
|
273
|
+
colorTransparentStrokeInteractive: string;
|
|
274
|
+
colorTransparentStrokeDisabled: string;
|
|
275
|
+
colorNeutralStrokeAlpha: string;
|
|
276
|
+
colorNeutralStrokeAlpha2: string;
|
|
277
|
+
colorStrokeFocus1: string;
|
|
278
|
+
colorStrokeFocus2: string;
|
|
279
|
+
colorNeutralShadowAmbient: string;
|
|
280
|
+
colorNeutralShadowKey: string;
|
|
281
|
+
colorNeutralShadowAmbientLighter: string;
|
|
282
|
+
colorNeutralShadowKeyLighter: string;
|
|
283
|
+
colorNeutralShadowAmbientDarker: string;
|
|
284
|
+
colorNeutralShadowKeyDarker: string;
|
|
285
|
+
colorBrandShadowAmbient: string;
|
|
286
|
+
colorBrandShadowKey: string;
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
export declare const createDarkTheme: (brand: BrandVariants) => Theme;
|
|
290
|
+
|
|
291
|
+
export declare const createHighContrastTheme: () => Theme;
|
|
292
|
+
|
|
293
|
+
export declare const createLightTheme: (brand: BrandVariants) => Theme;
|
|
294
|
+
|
|
295
|
+
export declare const createTeamsDarkTheme: (brand: BrandVariants) => Theme;
|
|
296
|
+
|
|
297
|
+
export declare type CurveTokens = {
|
|
298
|
+
curveAccelerateMax: string;
|
|
299
|
+
curveAccelerateMid: string;
|
|
300
|
+
curveAccelerateMin: string;
|
|
301
|
+
curveDecelerateMax: string;
|
|
302
|
+
curveDecelerateMid: string;
|
|
303
|
+
curveDecelerateMin: string;
|
|
304
|
+
curveEasyEaseMax: string;
|
|
305
|
+
curveEasyEase: string;
|
|
306
|
+
curveLinear: string;
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
export declare type DurationTokens = {
|
|
310
|
+
durationUltraFast: string;
|
|
311
|
+
durationFaster: string;
|
|
312
|
+
durationFast: string;
|
|
313
|
+
durationNormal: string;
|
|
314
|
+
durationGentle: string;
|
|
315
|
+
durationSlow: string;
|
|
316
|
+
durationSlower: string;
|
|
317
|
+
durationUltraSlow: string;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
export declare type FontFamilyTokens = {
|
|
321
|
+
fontFamilyBase: string;
|
|
322
|
+
fontFamilyMonospace: string;
|
|
323
|
+
fontFamilyNumeric: string;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
export declare type FontSizeTokens = {
|
|
327
|
+
fontSizeBase100: string;
|
|
328
|
+
fontSizeBase200: string;
|
|
329
|
+
fontSizeBase300: string;
|
|
330
|
+
fontSizeBase400: string;
|
|
331
|
+
fontSizeBase500: string;
|
|
332
|
+
fontSizeBase600: string;
|
|
333
|
+
fontSizeHero700: string;
|
|
334
|
+
fontSizeHero800: string;
|
|
335
|
+
fontSizeHero900: string;
|
|
336
|
+
fontSizeHero1000: string;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
export declare type FontWeightTokens = {
|
|
340
|
+
fontWeightRegular: number;
|
|
341
|
+
fontWeightMedium: number;
|
|
342
|
+
fontWeightSemibold: number;
|
|
343
|
+
fontWeightBold: number;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
export declare type HorizontalSpacingTokens = {
|
|
347
|
+
spacingHorizontalNone: string;
|
|
348
|
+
spacingHorizontalXXS: string;
|
|
349
|
+
spacingHorizontalXS: string;
|
|
350
|
+
spacingHorizontalSNudge: string;
|
|
351
|
+
spacingHorizontalS: string;
|
|
352
|
+
spacingHorizontalMNudge: string;
|
|
353
|
+
spacingHorizontalM: string;
|
|
354
|
+
spacingHorizontalL: string;
|
|
355
|
+
spacingHorizontalXL: string;
|
|
356
|
+
spacingHorizontalXXL: string;
|
|
357
|
+
spacingHorizontalXXXL: string;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
export declare type LineHeightTokens = {
|
|
361
|
+
lineHeightBase100: string;
|
|
362
|
+
lineHeightBase200: string;
|
|
363
|
+
lineHeightBase300: string;
|
|
364
|
+
lineHeightBase400: string;
|
|
365
|
+
lineHeightBase500: string;
|
|
366
|
+
lineHeightBase600: string;
|
|
367
|
+
lineHeightHero700: string;
|
|
368
|
+
lineHeightHero800: string;
|
|
369
|
+
lineHeightHero900: string;
|
|
370
|
+
lineHeightHero1000: string;
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
export declare type PartialTheme = Partial<Theme>;
|
|
374
|
+
|
|
375
|
+
declare type PersonaColorPaletteTokens = Record<ColorPaletteDarkRed | ColorPaletteCranberry | ColorPalettePumpkin | ColorPalettePeach | ColorPaletteGold | ColorPaletteBrass | ColorPaletteBrown | ColorPaletteForest | ColorPaletteSeafoam | ColorPaletteDarkGreen | ColorPaletteLightTeal | ColorPaletteTeal | ColorPaletteSteel | ColorPaletteBlue | ColorPaletteRoyalBlue | ColorPaletteCornflower | ColorPaletteNavy | ColorPaletteLavender | ColorPalettePurple | ColorPaletteGrape | ColorPaletteLilac | ColorPalettePink | ColorPaletteMagenta | ColorPalettePlum | ColorPaletteBeige | ColorPaletteMink | ColorPalettePlatinum | ColorPaletteAnchor, string>;
|
|
376
|
+
|
|
377
|
+
export declare type ShadowBrandTokens = {
|
|
378
|
+
shadow2Brand: string;
|
|
379
|
+
shadow4Brand: string;
|
|
380
|
+
shadow8Brand: string;
|
|
381
|
+
shadow16Brand: string;
|
|
382
|
+
shadow28Brand: string;
|
|
383
|
+
shadow64Brand: string;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Design tokens for shadow levels
|
|
388
|
+
*/
|
|
389
|
+
export declare type ShadowTokens = {
|
|
390
|
+
shadow2: string;
|
|
391
|
+
shadow4: string;
|
|
392
|
+
shadow8: string;
|
|
393
|
+
shadow16: string;
|
|
394
|
+
shadow28: string;
|
|
395
|
+
shadow64: string;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
export declare type SpacingTokens = {
|
|
399
|
+
none: string;
|
|
400
|
+
xxs: string;
|
|
401
|
+
xs: string;
|
|
402
|
+
sNudge: string;
|
|
403
|
+
s: string;
|
|
404
|
+
mNudge: string;
|
|
405
|
+
m: string;
|
|
406
|
+
l: string;
|
|
407
|
+
xl: string;
|
|
408
|
+
xxl: string;
|
|
409
|
+
xxxl: string;
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
declare type StatusColorPaletteTokens = Record<ColorPaletteRed | ColorPaletteGreen | ColorPaletteDarkOrange | ColorPaletteYellow | ColorPaletteBerry | ColorPaletteMarigold | ColorPaletteLightGreen, string>;
|
|
413
|
+
|
|
414
|
+
export declare type StrokeWidthTokens = {
|
|
415
|
+
strokeWidthThin: string;
|
|
416
|
+
strokeWidthThick: string;
|
|
417
|
+
strokeWidthThicker: string;
|
|
418
|
+
strokeWidthThickest: string;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
export declare const teamsDarkTheme: Theme;
|
|
422
|
+
|
|
423
|
+
export declare const teamsDarkV21Theme: Theme;
|
|
424
|
+
|
|
425
|
+
export declare const teamsHighContrastTheme: Theme;
|
|
426
|
+
|
|
427
|
+
export declare const teamsLightTheme: Theme;
|
|
428
|
+
|
|
429
|
+
export declare const teamsLightV21Theme: Theme;
|
|
430
|
+
|
|
431
|
+
export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & HorizontalSpacingTokens & VerticalSpacingTokens & DurationTokens & CurveTokens & ShadowTokens & ShadowBrandTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorStatusTokens & ColorTokens & ZIndexTokens;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Programmatically generates a tokens to css variables mapping object from the keys in a theme.
|
|
435
|
+
* This helps with ease of use as a user of a custom theme does not have to manually construct this object, but it could
|
|
436
|
+
* affect tree-shaking since bundlers do not know the shape of the output.
|
|
437
|
+
*
|
|
438
|
+
* @param theme - Theme from which to get the keys to generate the tokens to css variables mapping object
|
|
439
|
+
* @returns Tokens to css variables mapping object corresponding to the passed theme
|
|
440
|
+
*/
|
|
441
|
+
export declare function themeToTokensObject<TTheme extends Theme>(theme: TTheme): Record<keyof TTheme, string>;
|
|
442
|
+
|
|
443
|
+
export declare const tokens: Record<keyof Theme, string>;
|
|
444
|
+
|
|
445
|
+
export declare type TypographyStyle = {
|
|
446
|
+
fontFamily: string;
|
|
447
|
+
fontSize: string;
|
|
448
|
+
fontWeight: string;
|
|
449
|
+
lineHeight: string;
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
export declare type TypographyStyles = {
|
|
453
|
+
body1: TypographyStyle;
|
|
454
|
+
body1Strong: TypographyStyle;
|
|
455
|
+
body1Stronger: TypographyStyle;
|
|
456
|
+
body2: TypographyStyle;
|
|
457
|
+
caption1: TypographyStyle;
|
|
458
|
+
caption1Strong: TypographyStyle;
|
|
459
|
+
caption1Stronger: TypographyStyle;
|
|
460
|
+
caption2: TypographyStyle;
|
|
461
|
+
caption2Strong: TypographyStyle;
|
|
462
|
+
subtitle1: TypographyStyle;
|
|
463
|
+
subtitle2: TypographyStyle;
|
|
464
|
+
subtitle2Stronger: TypographyStyle;
|
|
465
|
+
title1: TypographyStyle;
|
|
466
|
+
title2: TypographyStyle;
|
|
467
|
+
title3: TypographyStyle;
|
|
468
|
+
largeTitle: TypographyStyle;
|
|
469
|
+
display: TypographyStyle;
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Global typography styles (fontSize, fontWeight, and lineHeight)
|
|
474
|
+
*/
|
|
475
|
+
export declare const typographyStyles: TypographyStyles;
|
|
476
|
+
|
|
477
|
+
export declare type VerticalSpacingTokens = {
|
|
478
|
+
spacingVerticalNone: string;
|
|
479
|
+
spacingVerticalXXS: string;
|
|
480
|
+
spacingVerticalXS: string;
|
|
481
|
+
spacingVerticalSNudge: string;
|
|
482
|
+
spacingVerticalS: string;
|
|
483
|
+
spacingVerticalMNudge: string;
|
|
484
|
+
spacingVerticalM: string;
|
|
485
|
+
spacingVerticalL: string;
|
|
486
|
+
spacingVerticalXL: string;
|
|
487
|
+
spacingVerticalXXL: string;
|
|
488
|
+
spacingVerticalXXXL: string;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
export declare const webDarkTheme: Theme;
|
|
492
|
+
|
|
493
|
+
export declare const webLightTheme: Theme;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Design tokens for z-index groups and levels
|
|
497
|
+
*/
|
|
498
|
+
export declare type ZIndexTokens = {
|
|
499
|
+
zIndexBackground?: string;
|
|
500
|
+
zIndexContent?: string;
|
|
501
|
+
zIndexOverlay?: string;
|
|
502
|
+
zIndexPopup?: string;
|
|
503
|
+
zIndexMessages?: string;
|
|
504
|
+
zIndexFloating?: string;
|
|
505
|
+
zIndexPriority?: string;
|
|
506
|
+
zIndexDebug?: string;
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
export { }
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ export declare type BorderRadiusTokens = {
|
|
|
4
4
|
borderRadiusMedium: string;
|
|
5
5
|
borderRadiusLarge: string;
|
|
6
6
|
borderRadiusXLarge: string;
|
|
7
|
+
borderRadius2XLarge: string;
|
|
8
|
+
borderRadius3XLarge: string;
|
|
9
|
+
borderRadius4XLarge: string;
|
|
10
|
+
borderRadius5XLarge: string;
|
|
11
|
+
borderRadius6XLarge: string;
|
|
7
12
|
borderRadiusCircular: string;
|
|
8
13
|
};
|
|
9
14
|
|
|
@@ -114,6 +119,10 @@ export declare type ColorTokens = {
|
|
|
114
119
|
colorNeutralForeground3BrandPressed: string;
|
|
115
120
|
colorNeutralForeground3BrandSelected: string;
|
|
116
121
|
colorNeutralForeground4: string;
|
|
122
|
+
colorNeutralForeground5: string;
|
|
123
|
+
colorNeutralForeground5Hover: string;
|
|
124
|
+
colorNeutralForeground5Pressed: string;
|
|
125
|
+
colorNeutralForeground5Selected: string;
|
|
117
126
|
colorNeutralForegroundDisabled: string;
|
|
118
127
|
colorNeutralForegroundInvertedDisabled: string;
|
|
119
128
|
colorBrandForegroundLink: string;
|
|
@@ -171,7 +180,15 @@ export declare type ColorTokens = {
|
|
|
171
180
|
colorNeutralBackground5Pressed: string;
|
|
172
181
|
colorNeutralBackground5Selected: string;
|
|
173
182
|
colorNeutralBackground6: string;
|
|
183
|
+
colorNeutralBackground7: string;
|
|
184
|
+
colorNeutralBackground7Hover: string;
|
|
185
|
+
colorNeutralBackground7Pressed: string;
|
|
186
|
+
colorNeutralBackground7Selected: string;
|
|
187
|
+
colorNeutralBackground8: string;
|
|
174
188
|
colorNeutralBackgroundInverted: string;
|
|
189
|
+
colorNeutralBackgroundInvertedHover: string;
|
|
190
|
+
colorNeutralBackgroundInvertedPressed: string;
|
|
191
|
+
colorNeutralBackgroundInvertedSelected: string;
|
|
175
192
|
colorNeutralBackgroundStatic: string;
|
|
176
193
|
colorNeutralBackgroundAlpha: string;
|
|
177
194
|
colorNeutralBackgroundAlpha2: string;
|
|
@@ -191,6 +208,7 @@ export declare type ColorTokens = {
|
|
|
191
208
|
colorTransparentBackgroundPressed: string;
|
|
192
209
|
colorTransparentBackgroundSelected: string;
|
|
193
210
|
colorNeutralBackgroundDisabled: string;
|
|
211
|
+
colorNeutralBackgroundDisabled2: string;
|
|
194
212
|
colorNeutralBackgroundInvertedDisabled: string;
|
|
195
213
|
colorNeutralStencil1: string;
|
|
196
214
|
colorNeutralStencil2: string;
|
|
@@ -230,6 +248,10 @@ export declare type ColorTokens = {
|
|
|
230
248
|
colorNeutralStroke1Selected: string;
|
|
231
249
|
colorNeutralStroke2: string;
|
|
232
250
|
colorNeutralStroke3: string;
|
|
251
|
+
colorNeutralStroke4: string;
|
|
252
|
+
colorNeutralStroke4Hover: string;
|
|
253
|
+
colorNeutralStroke4Pressed: string;
|
|
254
|
+
colorNeutralStroke4Selected: string;
|
|
233
255
|
colorNeutralStrokeSubtle: string;
|
|
234
256
|
colorNeutralStrokeOnBrand: string;
|
|
235
257
|
colorNeutralStrokeOnBrand2: string;
|
|
@@ -245,6 +267,7 @@ export declare type ColorTokens = {
|
|
|
245
267
|
colorCompoundBrandStrokeHover: string;
|
|
246
268
|
colorCompoundBrandStrokePressed: string;
|
|
247
269
|
colorNeutralStrokeDisabled: string;
|
|
270
|
+
colorNeutralStrokeDisabled2: string;
|
|
248
271
|
colorNeutralStrokeInvertedDisabled: string;
|
|
249
272
|
colorTransparentStroke: string;
|
|
250
273
|
colorTransparentStrokeInteractive: string;
|
package/lib/alias/darkColor.js
CHANGED
|
@@ -19,6 +19,10 @@ export const generateColorTokens = (brand)=>({
|
|
|
19
19
|
colorNeutralForeground3BrandPressed: brand[90],
|
|
20
20
|
colorNeutralForeground3BrandSelected: brand[100],
|
|
21
21
|
colorNeutralForeground4: grey[60],
|
|
22
|
+
colorNeutralForeground5: grey[68],
|
|
23
|
+
colorNeutralForeground5Hover: white,
|
|
24
|
+
colorNeutralForeground5Pressed: white,
|
|
25
|
+
colorNeutralForeground5Selected: white,
|
|
22
26
|
colorNeutralForegroundDisabled: grey[36],
|
|
23
27
|
colorNeutralForegroundInvertedDisabled: whiteAlpha[40],
|
|
24
28
|
colorBrandForegroundLink: brand[100],
|
|
@@ -76,7 +80,15 @@ export const generateColorTokens = (brand)=>({
|
|
|
76
80
|
colorNeutralBackground5Pressed: grey[2],
|
|
77
81
|
colorNeutralBackground5Selected: grey[6],
|
|
78
82
|
colorNeutralBackground6: grey[20],
|
|
83
|
+
colorNeutralBackground7: '#00000000',
|
|
84
|
+
colorNeutralBackground7Hover: grey[10],
|
|
85
|
+
colorNeutralBackground7Pressed: grey[4],
|
|
86
|
+
colorNeutralBackground7Selected: '#00000000',
|
|
87
|
+
colorNeutralBackground8: grey[16],
|
|
79
88
|
colorNeutralBackgroundInverted: white,
|
|
89
|
+
colorNeutralBackgroundInvertedHover: grey[96],
|
|
90
|
+
colorNeutralBackgroundInvertedPressed: grey[88],
|
|
91
|
+
colorNeutralBackgroundInvertedSelected: grey[92],
|
|
80
92
|
colorNeutralBackgroundStatic: grey[24],
|
|
81
93
|
colorNeutralBackgroundAlpha: grey10Alpha[50],
|
|
82
94
|
colorNeutralBackgroundAlpha2: grey12Alpha[70],
|
|
@@ -96,6 +108,7 @@ export const generateColorTokens = (brand)=>({
|
|
|
96
108
|
colorTransparentBackgroundPressed: 'transparent',
|
|
97
109
|
colorTransparentBackgroundSelected: 'transparent',
|
|
98
110
|
colorNeutralBackgroundDisabled: grey[8],
|
|
111
|
+
colorNeutralBackgroundDisabled2: grey[16],
|
|
99
112
|
colorNeutralBackgroundInvertedDisabled: whiteAlpha[10],
|
|
100
113
|
colorNeutralStencil1: grey[34],
|
|
101
114
|
colorNeutralStencil2: grey[20],
|
|
@@ -135,6 +148,10 @@ export const generateColorTokens = (brand)=>({
|
|
|
135
148
|
colorNeutralStroke1Selected: grey[44],
|
|
136
149
|
colorNeutralStroke2: grey[32],
|
|
137
150
|
colorNeutralStroke3: grey[24],
|
|
151
|
+
colorNeutralStroke4: grey[24],
|
|
152
|
+
colorNeutralStroke4Hover: grey[18],
|
|
153
|
+
colorNeutralStroke4Pressed: grey[14],
|
|
154
|
+
colorNeutralStroke4Selected: grey[24],
|
|
138
155
|
colorNeutralStrokeSubtle: grey[4],
|
|
139
156
|
colorNeutralStrokeOnBrand: grey[16],
|
|
140
157
|
colorNeutralStrokeOnBrand2: white,
|
|
@@ -150,6 +167,7 @@ export const generateColorTokens = (brand)=>({
|
|
|
150
167
|
colorCompoundBrandStrokeHover: brand[110],
|
|
151
168
|
colorCompoundBrandStrokePressed: brand[90],
|
|
152
169
|
colorNeutralStrokeDisabled: grey[26],
|
|
170
|
+
colorNeutralStrokeDisabled2: grey[24],
|
|
153
171
|
colorNeutralStrokeInvertedDisabled: whiteAlpha[40],
|
|
154
172
|
colorTransparentStroke: 'transparent',
|
|
155
173
|
colorTransparentStrokeInteractive: 'transparent',
|