@fluentui/tokens 1.0.0-alpha.5 → 1.0.0-alpha.7

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.
Files changed (156) hide show
  1. package/CHANGELOG.json +88 -1
  2. package/CHANGELOG.md +22 -2
  3. package/dist/index.d.ts +18 -1
  4. package/lib/alias/darkColor.js +162 -154
  5. package/lib/alias/darkColor.js.map +1 -1
  6. package/lib/alias/darkColorPalette.js +49 -26
  7. package/lib/alias/darkColorPalette.js.map +1 -1
  8. package/lib/alias/highContrastColor.js +162 -154
  9. package/lib/alias/highContrastColor.js.map +1 -1
  10. package/lib/alias/highContrastColorPalette.js +42 -25
  11. package/lib/alias/highContrastColorPalette.js.map +1 -1
  12. package/lib/alias/lightColor.js +162 -154
  13. package/lib/alias/lightColor.js.map +1 -1
  14. package/lib/alias/lightColorPalette.js +47 -26
  15. package/lib/alias/lightColorPalette.js.map +1 -1
  16. package/lib/alias/teamsDarkColor.js +162 -154
  17. package/lib/alias/teamsDarkColor.js.map +1 -1
  18. package/lib/global/borderRadius.js +6 -7
  19. package/lib/global/borderRadius.js.map +1 -1
  20. package/lib/global/brandColors.js +48 -49
  21. package/lib/global/brandColors.js.map +1 -1
  22. package/lib/global/colorPalette.js +41 -37
  23. package/lib/global/colorPalette.js.map +1 -1
  24. package/lib/global/colors.js +689 -690
  25. package/lib/global/colors.js.map +1 -1
  26. package/lib/global/curves.js +9 -10
  27. package/lib/global/curves.js.map +1 -1
  28. package/lib/global/durations.js +7 -8
  29. package/lib/global/durations.js.map +1 -1
  30. package/lib/global/fonts.js +29 -32
  31. package/lib/global/fonts.js.map +1 -1
  32. package/lib/global/index.js +0 -1
  33. package/lib/global/index.js.map +1 -1
  34. package/lib/global/spacings.js +33 -34
  35. package/lib/global/spacings.js.map +1 -1
  36. package/lib/global/strokeWidths.js +4 -5
  37. package/lib/global/strokeWidths.js.map +1 -1
  38. package/lib/global/typographyStyles.js +103 -105
  39. package/lib/global/typographyStyles.js.map +1 -1
  40. package/lib/index.js +0 -1
  41. package/lib/index.js.map +1 -1
  42. package/lib/sharedColorNames.js +60 -6
  43. package/lib/sharedColorNames.js.map +1 -1
  44. package/lib/statusColorMapping.js +5 -0
  45. package/lib/statusColorMapping.js.map +1 -0
  46. package/lib/themeToTokensObject.js +7 -8
  47. package/lib/themeToTokensObject.js.map +1 -1
  48. package/lib/themes/index.js +0 -1
  49. package/lib/themes/index.js.map +1 -1
  50. package/lib/themes/teams/darkTheme.js +1 -2
  51. package/lib/themes/teams/darkTheme.js.map +1 -1
  52. package/lib/themes/teams/highContrastTheme.js +1 -2
  53. package/lib/themes/teams/highContrastTheme.js.map +1 -1
  54. package/lib/themes/teams/index.js +0 -1
  55. package/lib/themes/teams/index.js.map +1 -1
  56. package/lib/themes/teams/lightTheme.js +1 -2
  57. package/lib/themes/teams/lightTheme.js.map +1 -1
  58. package/lib/themes/web/darkTheme.js +1 -2
  59. package/lib/themes/web/darkTheme.js.map +1 -1
  60. package/lib/themes/web/index.js +0 -1
  61. package/lib/themes/web/index.js.map +1 -1
  62. package/lib/themes/web/lightTheme.js +1 -2
  63. package/lib/themes/web/lightTheme.js.map +1 -1
  64. package/lib/tokens.js +477 -436
  65. package/lib/tokens.js.map +1 -1
  66. package/lib/types.js +1 -2
  67. package/lib/types.js.map +1 -1
  68. package/lib/utils/createDarkTheme.js +20 -20
  69. package/lib/utils/createDarkTheme.js.map +1 -1
  70. package/lib/utils/createHighContrastTheme.js +20 -20
  71. package/lib/utils/createHighContrastTheme.js.map +1 -1
  72. package/lib/utils/createLightTheme.js +20 -20
  73. package/lib/utils/createLightTheme.js.map +1 -1
  74. package/lib/utils/createTeamsDarkTheme.js +20 -20
  75. package/lib/utils/createTeamsDarkTheme.js.map +1 -1
  76. package/lib/utils/index.js +0 -1
  77. package/lib/utils/index.js.map +1 -1
  78. package/lib/utils/shadows.js +8 -9
  79. package/lib/utils/shadows.js.map +1 -1
  80. package/lib-commonjs/alias/darkColor.js +11 -4
  81. package/lib-commonjs/alias/darkColor.js.map +1 -1
  82. package/lib-commonjs/alias/darkColorPalette.js +36 -8
  83. package/lib-commonjs/alias/darkColorPalette.js.map +1 -1
  84. package/lib-commonjs/alias/highContrastColor.js +12 -5
  85. package/lib-commonjs/alias/highContrastColor.js.map +1 -1
  86. package/lib-commonjs/alias/highContrastColorPalette.js +30 -8
  87. package/lib-commonjs/alias/highContrastColorPalette.js.map +1 -1
  88. package/lib-commonjs/alias/lightColor.js +10 -3
  89. package/lib-commonjs/alias/lightColor.js.map +1 -1
  90. package/lib-commonjs/alias/lightColorPalette.js +34 -8
  91. package/lib-commonjs/alias/lightColorPalette.js.map +1 -1
  92. package/lib-commonjs/alias/teamsDarkColor.js +11 -4
  93. package/lib-commonjs/alias/teamsDarkColor.js.map +1 -1
  94. package/lib-commonjs/global/borderRadius.js +1 -3
  95. package/lib-commonjs/global/borderRadius.js.map +1 -1
  96. package/lib-commonjs/global/brandColors.js +1 -3
  97. package/lib-commonjs/global/brandColors.js.map +1 -1
  98. package/lib-commonjs/global/colorPalette.js +8 -4
  99. package/lib-commonjs/global/colorPalette.js.map +1 -1
  100. package/lib-commonjs/global/colors.js +1 -3
  101. package/lib-commonjs/global/colors.js.map +1 -1
  102. package/lib-commonjs/global/curves.js +1 -3
  103. package/lib-commonjs/global/curves.js.map +1 -1
  104. package/lib-commonjs/global/durations.js +1 -3
  105. package/lib-commonjs/global/durations.js.map +1 -1
  106. package/lib-commonjs/global/fonts.js +3 -7
  107. package/lib-commonjs/global/fonts.js.map +1 -1
  108. package/lib-commonjs/global/index.js +0 -3
  109. package/lib-commonjs/global/index.js.map +1 -1
  110. package/lib-commonjs/global/spacings.js +1 -3
  111. package/lib-commonjs/global/spacings.js.map +1 -1
  112. package/lib-commonjs/global/strokeWidths.js +1 -3
  113. package/lib-commonjs/global/strokeWidths.js.map +1 -1
  114. package/lib-commonjs/global/typographyStyles.js +1 -3
  115. package/lib-commonjs/global/typographyStyles.js.map +1 -1
  116. package/lib-commonjs/index.js +0 -3
  117. package/lib-commonjs/index.js.map +1 -1
  118. package/lib-commonjs/sharedColorNames.js +7 -3
  119. package/lib-commonjs/sharedColorNames.js.map +1 -1
  120. package/lib-commonjs/statusColorMapping.js +13 -0
  121. package/lib-commonjs/statusColorMapping.js.map +1 -0
  122. package/lib-commonjs/themeToTokensObject.js +2 -4
  123. package/lib-commonjs/themeToTokensObject.js.map +1 -1
  124. package/lib-commonjs/themes/index.js +0 -3
  125. package/lib-commonjs/themes/index.js.map +1 -1
  126. package/lib-commonjs/themes/teams/darkTheme.js +1 -3
  127. package/lib-commonjs/themes/teams/darkTheme.js.map +1 -1
  128. package/lib-commonjs/themes/teams/highContrastTheme.js +1 -3
  129. package/lib-commonjs/themes/teams/highContrastTheme.js.map +1 -1
  130. package/lib-commonjs/themes/teams/index.js +0 -3
  131. package/lib-commonjs/themes/teams/index.js.map +1 -1
  132. package/lib-commonjs/themes/teams/lightTheme.js +1 -3
  133. package/lib-commonjs/themes/teams/lightTheme.js.map +1 -1
  134. package/lib-commonjs/themes/web/darkTheme.js +1 -3
  135. package/lib-commonjs/themes/web/darkTheme.js.map +1 -1
  136. package/lib-commonjs/themes/web/index.js +0 -3
  137. package/lib-commonjs/themes/web/index.js.map +1 -1
  138. package/lib-commonjs/themes/web/lightTheme.js +1 -3
  139. package/lib-commonjs/themes/web/lightTheme.js.map +1 -1
  140. package/lib-commonjs/tokens.js +43 -3
  141. package/lib-commonjs/tokens.js.map +1 -1
  142. package/lib-commonjs/types.js +0 -3
  143. package/lib-commonjs/types.js.map +1 -1
  144. package/lib-commonjs/utils/createDarkTheme.js +2 -3
  145. package/lib-commonjs/utils/createDarkTheme.js.map +1 -1
  146. package/lib-commonjs/utils/createHighContrastTheme.js +2 -3
  147. package/lib-commonjs/utils/createHighContrastTheme.js.map +1 -1
  148. package/lib-commonjs/utils/createLightTheme.js +2 -3
  149. package/lib-commonjs/utils/createLightTheme.js.map +1 -1
  150. package/lib-commonjs/utils/createTeamsDarkTheme.js +2 -3
  151. package/lib-commonjs/utils/createTeamsDarkTheme.js.map +1 -1
  152. package/lib-commonjs/utils/index.js +0 -3
  153. package/lib-commonjs/utils/index.js.map +1 -1
  154. package/lib-commonjs/utils/shadows.js +1 -3
  155. package/lib-commonjs/utils/shadows.js.map +1 -1
  156. package/package.json +1 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,94 @@
2
2
  "name": "@fluentui/tokens",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 12 May 2023 20:22:36 GMT",
5
+ "date": "Fri, 04 Aug 2023 08:48:24 GMT",
6
+ "tag": "@fluentui/tokens_v1.0.0-alpha.7",
7
+ "version": "1.0.0-alpha.7",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "miroslav.stastny@microsoft.com",
12
+ "package": "@fluentui/tokens",
13
+ "commit": "141424a604b98ea762cfa375fe78df8c9e6bdec8",
14
+ "comment": "feat: add status color tokens"
15
+ },
16
+ {
17
+ "author": "miroslav.stastny@microsoft.com",
18
+ "package": "@fluentui/tokens",
19
+ "commit": "01cc58f793345482d293c6837db64f85f552562d",
20
+ "comment": "Add colorBrandStroke2Contrast and colorNeutralStrokeAlpha2"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Wed, 28 Jun 2023 11:12:36 GMT",
27
+ "tag": "@fluentui/tokens_v1.0.0-alpha.6",
28
+ "version": "1.0.0-alpha.6",
29
+ "comments": {
30
+ "none": [
31
+ {
32
+ "author": "martinhochel@microsoft.com",
33
+ "package": "@fluentui/tokens",
34
+ "commit": "fbe878e9c9785588197481f172c42c2c0a230292",
35
+ "comment": "fix: update .npmignore to unify v8 packages and exclude project.json"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Tue, 20 Jun 2023 12:39:07 GMT",
42
+ "tag": "@fluentui/tokens_v1.0.0-alpha.6",
43
+ "version": "1.0.0-alpha.6",
44
+ "comments": {
45
+ "prerelease": [
46
+ {
47
+ "author": "miroslav.stastny@microsoft.com",
48
+ "package": "@fluentui/tokens",
49
+ "commit": "7516a6bde1bd7b8c957ca479ffcb0e737e9ca693",
50
+ "comment": "Add/update theme tokens"
51
+ },
52
+ {
53
+ "author": "martinhochel@microsoft.com",
54
+ "package": "@fluentui/tokens",
55
+ "commit": "cf6b94ba6559236150bc1f1814b023607edaeb20",
56
+ "comment": "fix: cast to String keys interpolated within string literals"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "date": "Wed, 24 May 2023 20:45:37 GMT",
63
+ "tag": "@fluentui/tokens_v1.0.0-alpha.5",
64
+ "version": "1.0.0-alpha.5",
65
+ "comments": {
66
+ "none": [
67
+ {
68
+ "author": "olfedias@microsoft.com",
69
+ "package": "@fluentui/tokens",
70
+ "commit": "69e0617a93cb44ef42f3bd19284b7dc5fe27fed3",
71
+ "comment": "chore: update test-ssr script"
72
+ }
73
+ ]
74
+ }
75
+ },
76
+ {
77
+ "date": "Thu, 18 May 2023 00:39:20 GMT",
78
+ "tag": "@fluentui/tokens_v1.0.0-alpha.5",
79
+ "version": "1.0.0-alpha.5",
80
+ "comments": {
81
+ "none": [
82
+ {
83
+ "author": "olfedias@microsoft.com",
84
+ "package": "@fluentui/tokens",
85
+ "commit": "06cd515eda59a3078bfe32f9cc7c1f281cd20208",
86
+ "comment": "chore: add test-ssr script to v9 packages"
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ {
92
+ "date": "Fri, 12 May 2023 20:28:07 GMT",
6
93
  "tag": "@fluentui/tokens_v1.0.0-alpha.5",
7
94
  "version": "1.0.0-alpha.5",
8
95
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,32 @@
1
1
  # Change Log - @fluentui/tokens
2
2
 
3
- This log was last generated on Fri, 12 May 2023 20:22:36 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 04 Aug 2023 08:48:24 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [1.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/tokens_v1.0.0-alpha.7)
8
+
9
+ Fri, 04 Aug 2023 08:48:24 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/tokens_v1.0.0-alpha.6..@fluentui/tokens_v1.0.0-alpha.7)
11
+
12
+ ### Changes
13
+
14
+ - feat: add status color tokens ([PR #28006](https://github.com/microsoft/fluentui/pull/28006) by miroslav.stastny@microsoft.com)
15
+ - Add colorBrandStroke2Contrast and colorNeutralStrokeAlpha2 ([PR #28638](https://github.com/microsoft/fluentui/pull/28638) by miroslav.stastny@microsoft.com)
16
+
17
+ ## [1.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/tokens_v1.0.0-alpha.6)
18
+
19
+ Tue, 20 Jun 2023 12:39:07 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/tokens_v1.0.0-alpha.5..@fluentui/tokens_v1.0.0-alpha.6)
21
+
22
+ ### Changes
23
+
24
+ - Add/update theme tokens ([PR #27791](https://github.com/microsoft/fluentui/pull/27791) by miroslav.stastny@microsoft.com)
25
+ - fix: cast to String keys interpolated within string literals ([PR #28067](https://github.com/microsoft/fluentui/pull/28067) by martinhochel@microsoft.com)
26
+
7
27
  ## [1.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/tokens_v1.0.0-alpha.5)
8
28
 
9
- Fri, 12 May 2023 20:22:36 GMT
29
+ Fri, 12 May 2023 20:28:07 GMT
10
30
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/tokens_v1.0.0-alpha.4..@fluentui/tokens_v1.0.0-alpha.5)
11
31
 
12
32
  ### Changes
package/dist/index.d.ts CHANGED
@@ -83,6 +83,14 @@ export declare type ColorPaletteTokens = StatusColorPaletteTokens & PersonaColor
83
83
 
84
84
  export declare type ColorPaletteYellow = 'colorPaletteYellowBackground1' | 'colorPaletteYellowBackground2' | 'colorPaletteYellowBackground3' | 'colorPaletteYellowForeground1' | 'colorPaletteYellowForeground2' | 'colorPaletteYellowForeground3' | 'colorPaletteYellowForegroundInverted' | 'colorPaletteYellowBorderActive' | 'colorPaletteYellowBorder1' | 'colorPaletteYellowBorder2';
85
85
 
86
+ declare type ColorStatusDanger = 'colorStatusDangerBackground1' | 'colorStatusDangerBackground2' | 'colorStatusDangerBackground3' | 'colorStatusDangerForeground1' | 'colorStatusDangerForeground2' | 'colorStatusDangerForeground3' | 'colorStatusDangerForegroundInverted' | 'colorStatusDangerBorderActive' | 'colorStatusDangerBorder1' | 'colorStatusDangerBorder2';
87
+
88
+ declare type ColorStatusSuccess = 'colorStatusSuccessBackground1' | 'colorStatusSuccessBackground2' | 'colorStatusSuccessBackground3' | 'colorStatusSuccessForeground1' | 'colorStatusSuccessForeground2' | 'colorStatusSuccessForeground3' | 'colorStatusSuccessForegroundInverted' | 'colorStatusSuccessBorderActive' | 'colorStatusSuccessBorder1' | 'colorStatusSuccessBorder2';
89
+
90
+ declare type ColorStatusTokens = Record<ColorStatusSuccess | ColorStatusWarning | ColorStatusDanger, string>;
91
+
92
+ declare type ColorStatusWarning = 'colorStatusWarningBackground1' | 'colorStatusWarningBackground2' | 'colorStatusWarningBackground3' | 'colorStatusWarningForeground1' | 'colorStatusWarningForeground2' | 'colorStatusWarningForeground3' | 'colorStatusWarningForegroundInverted' | 'colorStatusWarningBorderActive' | 'colorStatusWarningBorder1' | 'colorStatusWarningBorder2';
93
+
86
94
  /**
87
95
  * Design tokens for alias colors
88
96
  */
@@ -121,6 +129,8 @@ export declare type ColorTokens = {
121
129
  colorCompoundBrandForeground1Pressed: string;
122
130
  colorBrandForeground1: string;
123
131
  colorBrandForeground2: string;
132
+ colorBrandForeground2Hover: string;
133
+ colorBrandForeground2Pressed: string;
124
134
  colorNeutralForeground1Static: string;
125
135
  colorNeutralForegroundInverted: string;
126
136
  colorNeutralForegroundInvertedHover: string;
@@ -197,6 +207,8 @@ export declare type ColorTokens = {
197
207
  colorCompoundBrandBackgroundPressed: string;
198
208
  colorBrandBackgroundStatic: string;
199
209
  colorBrandBackground2: string;
210
+ colorBrandBackground2Hover: string;
211
+ colorBrandBackground2Pressed: string;
200
212
  colorBrandBackgroundInverted: string;
201
213
  colorBrandBackgroundInvertedHover: string;
202
214
  colorBrandBackgroundInvertedPressed: string;
@@ -211,6 +223,7 @@ export declare type ColorTokens = {
211
223
  colorNeutralStroke1Selected: string;
212
224
  colorNeutralStroke2: string;
213
225
  colorNeutralStroke3: string;
226
+ colorNeutralStrokeSubtle: string;
214
227
  colorNeutralStrokeOnBrand: string;
215
228
  colorNeutralStrokeOnBrand2: string;
216
229
  colorNeutralStrokeOnBrand2Hover: string;
@@ -218,6 +231,9 @@ export declare type ColorTokens = {
218
231
  colorNeutralStrokeOnBrand2Selected: string;
219
232
  colorBrandStroke1: string;
220
233
  colorBrandStroke2: string;
234
+ colorBrandStroke2Hover: string;
235
+ colorBrandStroke2Pressed: string;
236
+ colorBrandStroke2Contrast: string;
221
237
  colorCompoundBrandStroke: string;
222
238
  colorCompoundBrandStrokeHover: string;
223
239
  colorCompoundBrandStrokePressed: string;
@@ -227,6 +243,7 @@ export declare type ColorTokens = {
227
243
  colorTransparentStrokeInteractive: string;
228
244
  colorTransparentStrokeDisabled: string;
229
245
  colorNeutralStrokeAlpha: string;
246
+ colorNeutralStrokeAlpha2: string;
230
247
  colorStrokeFocus1: string;
231
248
  colorStrokeFocus2: string;
232
249
  colorNeutralShadowAmbient: string;
@@ -376,7 +393,7 @@ export declare const teamsHighContrastTheme: Theme;
376
393
 
377
394
  export declare const teamsLightTheme: Theme;
378
395
 
379
- export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & HorizontalSpacingTokens & VerticalSpacingTokens & DurationTokens & CurveTokens & ShadowTokens & ShadowBrandTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens;
396
+ export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & HorizontalSpacingTokens & VerticalSpacingTokens & DurationTokens & CurveTokens & ShadowTokens & ShadowBrandTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorStatusTokens & ColorTokens;
380
397
 
381
398
  /**
382
399
  * Programmatically generates a tokens to css variables mapping object from the keys in a theme.
@@ -1,154 +1,162 @@
1
- /* !!! DO NOT EDIT !!! */ /* This file has been generated by the token pipeline */import { black, blackAlpha, grey, grey10Alpha, grey12Alpha, grey14Alpha, white, whiteAlpha } from '../global/colors';
2
- export const generateColorTokens = brand => ({
3
- colorNeutralForeground1: white,
4
- colorNeutralForeground1Hover: white,
5
- colorNeutralForeground1Pressed: white,
6
- colorNeutralForeground1Selected: white,
7
- colorNeutralForeground2: grey[84],
8
- colorNeutralForeground2Hover: white,
9
- colorNeutralForeground2Pressed: white,
10
- colorNeutralForeground2Selected: white,
11
- colorNeutralForeground2BrandHover: brand[100],
12
- colorNeutralForeground2BrandPressed: brand[90],
13
- colorNeutralForeground2BrandSelected: brand[100],
14
- colorNeutralForeground3: grey[68],
15
- colorNeutralForeground3Hover: grey[84],
16
- colorNeutralForeground3Pressed: grey[84],
17
- colorNeutralForeground3Selected: grey[84],
18
- colorNeutralForeground3BrandHover: brand[100],
19
- colorNeutralForeground3BrandPressed: brand[90],
20
- colorNeutralForeground3BrandSelected: brand[100],
21
- colorNeutralForeground4: grey[60],
22
- colorNeutralForegroundDisabled: grey[36],
23
- colorNeutralForegroundInvertedDisabled: whiteAlpha[40],
24
- colorBrandForegroundLink: brand[100],
25
- colorBrandForegroundLinkHover: brand[110],
26
- colorBrandForegroundLinkPressed: brand[90],
27
- colorBrandForegroundLinkSelected: brand[100],
28
- colorNeutralForeground2Link: grey[84],
29
- colorNeutralForeground2LinkHover: white,
30
- colorNeutralForeground2LinkPressed: white,
31
- colorNeutralForeground2LinkSelected: white,
32
- colorCompoundBrandForeground1: brand[100],
33
- colorCompoundBrandForeground1Hover: brand[110],
34
- colorCompoundBrandForeground1Pressed: brand[90],
35
- colorBrandForeground1: brand[100],
36
- colorBrandForeground2: brand[110],
37
- colorNeutralForeground1Static: grey[14],
38
- colorNeutralForegroundStaticInverted: white,
39
- colorNeutralForegroundInverted: grey[14],
40
- colorNeutralForegroundInvertedHover: grey[14],
41
- colorNeutralForegroundInvertedPressed: grey[14],
42
- colorNeutralForegroundInvertedSelected: grey[14],
43
- colorNeutralForegroundInverted2: grey[14],
44
- colorNeutralForegroundOnBrand: white,
45
- colorNeutralForegroundInvertedLink: white,
46
- colorNeutralForegroundInvertedLinkHover: white,
47
- colorNeutralForegroundInvertedLinkPressed: white,
48
- colorNeutralForegroundInvertedLinkSelected: white,
49
- colorBrandForegroundInverted: brand[80],
50
- colorBrandForegroundInvertedHover: brand[70],
51
- colorBrandForegroundInvertedPressed: brand[60],
52
- colorBrandForegroundOnLight: brand[80],
53
- colorBrandForegroundOnLightHover: brand[70],
54
- colorBrandForegroundOnLightPressed: brand[50],
55
- colorBrandForegroundOnLightSelected: brand[60],
56
- colorNeutralBackground1: grey[16],
57
- colorNeutralBackground1Hover: grey[24],
58
- colorNeutralBackground1Pressed: grey[12],
59
- colorNeutralBackground1Selected: grey[22],
60
- colorNeutralBackground2: grey[12],
61
- colorNeutralBackground2Hover: grey[20],
62
- colorNeutralBackground2Pressed: grey[8],
63
- colorNeutralBackground2Selected: grey[18],
64
- colorNeutralBackground3: grey[8],
65
- colorNeutralBackground3Hover: grey[16],
66
- colorNeutralBackground3Pressed: grey[4],
67
- colorNeutralBackground3Selected: grey[14],
68
- colorNeutralBackground4: grey[4],
69
- colorNeutralBackground4Hover: grey[12],
70
- colorNeutralBackground4Pressed: black,
71
- colorNeutralBackground4Selected: grey[10],
72
- colorNeutralBackground5: black,
73
- colorNeutralBackground5Hover: grey[8],
74
- colorNeutralBackground5Pressed: grey[2],
75
- colorNeutralBackground5Selected: grey[6],
76
- colorNeutralBackground6: grey[20],
77
- colorNeutralBackgroundInverted: white,
78
- colorNeutralBackgroundStatic: grey[24],
79
- colorNeutralBackgroundAlpha: grey10Alpha[50],
80
- colorNeutralBackgroundAlpha2: grey12Alpha[70],
81
- colorSubtleBackground: 'transparent',
82
- colorSubtleBackgroundHover: grey[22],
83
- colorSubtleBackgroundPressed: grey[18],
84
- colorSubtleBackgroundSelected: grey[20],
85
- colorSubtleBackgroundLightAlphaHover: grey14Alpha[80],
86
- colorSubtleBackgroundLightAlphaPressed: grey14Alpha[50],
87
- colorSubtleBackgroundLightAlphaSelected: 'transparent',
88
- colorSubtleBackgroundInverted: 'transparent',
89
- colorSubtleBackgroundInvertedHover: blackAlpha[10],
90
- colorSubtleBackgroundInvertedPressed: blackAlpha[30],
91
- colorSubtleBackgroundInvertedSelected: blackAlpha[20],
92
- colorTransparentBackground: 'transparent',
93
- colorTransparentBackgroundHover: 'transparent',
94
- colorTransparentBackgroundPressed: 'transparent',
95
- colorTransparentBackgroundSelected: 'transparent',
96
- colorNeutralBackgroundDisabled: grey[8],
97
- colorNeutralBackgroundInvertedDisabled: whiteAlpha[10],
98
- colorNeutralStencil1: grey[34],
99
- colorNeutralStencil2: grey[20],
100
- colorNeutralStencil1Alpha: whiteAlpha[10],
101
- colorNeutralStencil2Alpha: whiteAlpha[5],
102
- colorBackgroundOverlay: blackAlpha[50],
103
- colorScrollbarOverlay: whiteAlpha[60],
104
- colorBrandBackground: brand[70],
105
- colorBrandBackgroundHover: brand[80],
106
- colorBrandBackgroundPressed: brand[40],
107
- colorBrandBackgroundSelected: brand[60],
108
- colorCompoundBrandBackground: brand[100],
109
- colorCompoundBrandBackgroundHover: brand[110],
110
- colorCompoundBrandBackgroundPressed: brand[90],
111
- colorBrandBackgroundStatic: brand[80],
112
- colorBrandBackground2: brand[40],
113
- colorBrandBackgroundInverted: white,
114
- colorBrandBackgroundInvertedHover: brand[160],
115
- colorBrandBackgroundInvertedPressed: brand[140],
116
- colorBrandBackgroundInvertedSelected: brand[150],
117
- colorNeutralStrokeAccessible: grey[68],
118
- colorNeutralStrokeAccessibleHover: grey[74],
119
- colorNeutralStrokeAccessiblePressed: grey[70],
120
- colorNeutralStrokeAccessibleSelected: brand[100],
121
- colorNeutralStroke1: grey[40],
122
- colorNeutralStroke1Hover: grey[46],
123
- colorNeutralStroke1Pressed: grey[42],
124
- colorNeutralStroke1Selected: grey[44],
125
- colorNeutralStroke2: grey[32],
126
- colorNeutralStroke3: grey[24],
127
- colorNeutralStrokeOnBrand: grey[16],
128
- colorNeutralStrokeOnBrand2: white,
129
- colorNeutralStrokeOnBrand2Hover: white,
130
- colorNeutralStrokeOnBrand2Pressed: white,
131
- colorNeutralStrokeOnBrand2Selected: white,
132
- colorBrandStroke1: brand[100],
133
- colorBrandStroke2: brand[50],
134
- colorCompoundBrandStroke: brand[100],
135
- colorCompoundBrandStrokeHover: brand[110],
136
- colorCompoundBrandStrokePressed: brand[90],
137
- colorNeutralStrokeDisabled: grey[26],
138
- colorNeutralStrokeInvertedDisabled: whiteAlpha[40],
139
- colorTransparentStroke: 'transparent',
140
- colorTransparentStrokeInteractive: 'transparent',
141
- colorTransparentStrokeDisabled: 'transparent',
142
- colorNeutralStrokeAlpha: whiteAlpha[10],
143
- colorStrokeFocus1: black,
144
- colorStrokeFocus2: white,
145
- colorNeutralShadowAmbient: 'rgba(0,0,0,0.24)',
146
- colorNeutralShadowKey: 'rgba(0,0,0,0.28)',
147
- colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.12)',
148
- colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.14)',
149
- colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.40)',
150
- colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.48)',
151
- colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',
152
- colorBrandShadowKey: 'rgba(0,0,0,0.25)'
153
- });
154
- //# sourceMappingURL=darkColor.js.map
1
+ /* !!! DO NOT EDIT !!! */ /* This file has been generated by the token pipeline */ import { black, blackAlpha, grey, grey10Alpha, grey12Alpha, grey14Alpha, white, whiteAlpha } from '../global/colors';
2
+ export const generateColorTokens = (brand)=>({
3
+ colorNeutralForeground1: white,
4
+ colorNeutralForeground1Hover: white,
5
+ colorNeutralForeground1Pressed: white,
6
+ colorNeutralForeground1Selected: white,
7
+ colorNeutralForeground2: grey[84],
8
+ colorNeutralForeground2Hover: white,
9
+ colorNeutralForeground2Pressed: white,
10
+ colorNeutralForeground2Selected: white,
11
+ colorNeutralForeground2BrandHover: brand[100],
12
+ colorNeutralForeground2BrandPressed: brand[90],
13
+ colorNeutralForeground2BrandSelected: brand[100],
14
+ colorNeutralForeground3: grey[68],
15
+ colorNeutralForeground3Hover: grey[84],
16
+ colorNeutralForeground3Pressed: grey[84],
17
+ colorNeutralForeground3Selected: grey[84],
18
+ colorNeutralForeground3BrandHover: brand[100],
19
+ colorNeutralForeground3BrandPressed: brand[90],
20
+ colorNeutralForeground3BrandSelected: brand[100],
21
+ colorNeutralForeground4: grey[60],
22
+ colorNeutralForegroundDisabled: grey[36],
23
+ colorNeutralForegroundInvertedDisabled: whiteAlpha[40],
24
+ colorBrandForegroundLink: brand[100],
25
+ colorBrandForegroundLinkHover: brand[110],
26
+ colorBrandForegroundLinkPressed: brand[90],
27
+ colorBrandForegroundLinkSelected: brand[100],
28
+ colorNeutralForeground2Link: grey[84],
29
+ colorNeutralForeground2LinkHover: white,
30
+ colorNeutralForeground2LinkPressed: white,
31
+ colorNeutralForeground2LinkSelected: white,
32
+ colorCompoundBrandForeground1: brand[100],
33
+ colorCompoundBrandForeground1Hover: brand[110],
34
+ colorCompoundBrandForeground1Pressed: brand[90],
35
+ colorBrandForeground1: brand[100],
36
+ colorBrandForeground2: brand[110],
37
+ colorBrandForeground2Hover: brand[130],
38
+ colorBrandForeground2Pressed: brand[160],
39
+ colorNeutralForeground1Static: grey[14],
40
+ colorNeutralForegroundStaticInverted: white,
41
+ colorNeutralForegroundInverted: grey[14],
42
+ colorNeutralForegroundInvertedHover: grey[14],
43
+ colorNeutralForegroundInvertedPressed: grey[14],
44
+ colorNeutralForegroundInvertedSelected: grey[14],
45
+ colorNeutralForegroundInverted2: grey[14],
46
+ colorNeutralForegroundOnBrand: white,
47
+ colorNeutralForegroundInvertedLink: white,
48
+ colorNeutralForegroundInvertedLinkHover: white,
49
+ colorNeutralForegroundInvertedLinkPressed: white,
50
+ colorNeutralForegroundInvertedLinkSelected: white,
51
+ colorBrandForegroundInverted: brand[80],
52
+ colorBrandForegroundInvertedHover: brand[70],
53
+ colorBrandForegroundInvertedPressed: brand[60],
54
+ colorBrandForegroundOnLight: brand[80],
55
+ colorBrandForegroundOnLightHover: brand[70],
56
+ colorBrandForegroundOnLightPressed: brand[50],
57
+ colorBrandForegroundOnLightSelected: brand[60],
58
+ colorNeutralBackground1: grey[16],
59
+ colorNeutralBackground1Hover: grey[24],
60
+ colorNeutralBackground1Pressed: grey[12],
61
+ colorNeutralBackground1Selected: grey[22],
62
+ colorNeutralBackground2: grey[12],
63
+ colorNeutralBackground2Hover: grey[20],
64
+ colorNeutralBackground2Pressed: grey[8],
65
+ colorNeutralBackground2Selected: grey[18],
66
+ colorNeutralBackground3: grey[8],
67
+ colorNeutralBackground3Hover: grey[16],
68
+ colorNeutralBackground3Pressed: grey[4],
69
+ colorNeutralBackground3Selected: grey[14],
70
+ colorNeutralBackground4: grey[4],
71
+ colorNeutralBackground4Hover: grey[12],
72
+ colorNeutralBackground4Pressed: black,
73
+ colorNeutralBackground4Selected: grey[10],
74
+ colorNeutralBackground5: black,
75
+ colorNeutralBackground5Hover: grey[8],
76
+ colorNeutralBackground5Pressed: grey[2],
77
+ colorNeutralBackground5Selected: grey[6],
78
+ colorNeutralBackground6: grey[20],
79
+ colorNeutralBackgroundInverted: white,
80
+ colorNeutralBackgroundStatic: grey[24],
81
+ colorNeutralBackgroundAlpha: grey10Alpha[50],
82
+ colorNeutralBackgroundAlpha2: grey12Alpha[70],
83
+ colorSubtleBackground: 'transparent',
84
+ colorSubtleBackgroundHover: grey[22],
85
+ colorSubtleBackgroundPressed: grey[18],
86
+ colorSubtleBackgroundSelected: grey[20],
87
+ colorSubtleBackgroundLightAlphaHover: grey14Alpha[80],
88
+ colorSubtleBackgroundLightAlphaPressed: grey14Alpha[50],
89
+ colorSubtleBackgroundLightAlphaSelected: 'transparent',
90
+ colorSubtleBackgroundInverted: 'transparent',
91
+ colorSubtleBackgroundInvertedHover: blackAlpha[10],
92
+ colorSubtleBackgroundInvertedPressed: blackAlpha[30],
93
+ colorSubtleBackgroundInvertedSelected: blackAlpha[20],
94
+ colorTransparentBackground: 'transparent',
95
+ colorTransparentBackgroundHover: 'transparent',
96
+ colorTransparentBackgroundPressed: 'transparent',
97
+ colorTransparentBackgroundSelected: 'transparent',
98
+ colorNeutralBackgroundDisabled: grey[8],
99
+ colorNeutralBackgroundInvertedDisabled: whiteAlpha[10],
100
+ colorNeutralStencil1: grey[34],
101
+ colorNeutralStencil2: grey[20],
102
+ colorNeutralStencil1Alpha: whiteAlpha[10],
103
+ colorNeutralStencil2Alpha: whiteAlpha[5],
104
+ colorBackgroundOverlay: blackAlpha[50],
105
+ colorScrollbarOverlay: whiteAlpha[60],
106
+ colorBrandBackground: brand[70],
107
+ colorBrandBackgroundHover: brand[80],
108
+ colorBrandBackgroundPressed: brand[40],
109
+ colorBrandBackgroundSelected: brand[60],
110
+ colorCompoundBrandBackground: brand[100],
111
+ colorCompoundBrandBackgroundHover: brand[110],
112
+ colorCompoundBrandBackgroundPressed: brand[90],
113
+ colorBrandBackgroundStatic: brand[80],
114
+ colorBrandBackground2: brand[20],
115
+ colorBrandBackground2Hover: brand[40],
116
+ colorBrandBackground2Pressed: brand[10],
117
+ colorBrandBackgroundInverted: white,
118
+ colorBrandBackgroundInvertedHover: brand[160],
119
+ colorBrandBackgroundInvertedPressed: brand[140],
120
+ colorBrandBackgroundInvertedSelected: brand[150],
121
+ colorNeutralStrokeAccessible: grey[68],
122
+ colorNeutralStrokeAccessibleHover: grey[74],
123
+ colorNeutralStrokeAccessiblePressed: grey[70],
124
+ colorNeutralStrokeAccessibleSelected: brand[100],
125
+ colorNeutralStroke1: grey[40],
126
+ colorNeutralStroke1Hover: grey[46],
127
+ colorNeutralStroke1Pressed: grey[42],
128
+ colorNeutralStroke1Selected: grey[44],
129
+ colorNeutralStroke2: grey[32],
130
+ colorNeutralStroke3: grey[24],
131
+ colorNeutralStrokeSubtle: grey[4],
132
+ colorNeutralStrokeOnBrand: grey[16],
133
+ colorNeutralStrokeOnBrand2: white,
134
+ colorNeutralStrokeOnBrand2Hover: white,
135
+ colorNeutralStrokeOnBrand2Pressed: white,
136
+ colorNeutralStrokeOnBrand2Selected: white,
137
+ colorBrandStroke1: brand[100],
138
+ colorBrandStroke2: brand[50],
139
+ colorBrandStroke2Hover: brand[50],
140
+ colorBrandStroke2Pressed: brand[30],
141
+ colorBrandStroke2Contrast: brand[50],
142
+ colorCompoundBrandStroke: brand[100],
143
+ colorCompoundBrandStrokeHover: brand[110],
144
+ colorCompoundBrandStrokePressed: brand[90],
145
+ colorNeutralStrokeDisabled: grey[26],
146
+ colorNeutralStrokeInvertedDisabled: whiteAlpha[40],
147
+ colorTransparentStroke: 'transparent',
148
+ colorTransparentStrokeInteractive: 'transparent',
149
+ colorTransparentStrokeDisabled: 'transparent',
150
+ colorNeutralStrokeAlpha: whiteAlpha[10],
151
+ colorNeutralStrokeAlpha2: whiteAlpha[20],
152
+ colorStrokeFocus1: black,
153
+ colorStrokeFocus2: white,
154
+ colorNeutralShadowAmbient: 'rgba(0,0,0,0.24)',
155
+ colorNeutralShadowKey: 'rgba(0,0,0,0.28)',
156
+ colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.12)',
157
+ colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.14)',
158
+ colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.40)',
159
+ colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.48)',
160
+ colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',
161
+ colorBrandShadowKey: 'rgba(0,0,0,0.25)'
162
+ });