@fluentui/react-theme 0.0.0-nightly-20220302-0405.1

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 (181) hide show
  1. package/CHANGELOG.json +1025 -0
  2. package/CHANGELOG.md +408 -0
  3. package/LICENSE +15 -0
  4. package/README.md +5 -0
  5. package/dist/react-theme.d.ts +358 -0
  6. package/lib/alias/dark.d.ts +3 -0
  7. package/lib/alias/dark.js +158 -0
  8. package/lib/alias/dark.js.map +1 -0
  9. package/lib/alias/highContrast.d.ts +3 -0
  10. package/lib/alias/highContrast.js +158 -0
  11. package/lib/alias/highContrast.js.map +1 -0
  12. package/lib/alias/light.d.ts +3 -0
  13. package/lib/alias/light.js +158 -0
  14. package/lib/alias/light.js.map +1 -0
  15. package/lib/alias/teamsDark.d.ts +3 -0
  16. package/lib/alias/teamsDark.js +158 -0
  17. package/lib/alias/teamsDark.js.map +1 -0
  18. package/lib/global/borderRadius.d.ts +2 -0
  19. package/lib/global/borderRadius.js +9 -0
  20. package/lib/global/borderRadius.js.map +1 -0
  21. package/lib/global/brandColors.d.ts +4 -0
  22. package/lib/global/brandColors.js +55 -0
  23. package/lib/global/brandColors.js.map +1 -0
  24. package/lib/global/colors.d.ts +15 -0
  25. package/lib/global/colors.js +825 -0
  26. package/lib/global/colors.js.map +1 -0
  27. package/lib/global/fonts.d.ts +5 -0
  28. package/lib/global/fonts.js +37 -0
  29. package/lib/global/fonts.js.map +1 -0
  30. package/lib/global/index.d.ts +4 -0
  31. package/lib/global/index.js +5 -0
  32. package/lib/global/index.js.map +1 -0
  33. package/lib/global/strokeWidths.d.ts +2 -0
  34. package/lib/global/strokeWidths.js +7 -0
  35. package/lib/global/strokeWidths.js.map +1 -0
  36. package/lib/index.d.ts +5 -0
  37. package/lib/index.js +5 -0
  38. package/lib/index.js.map +1 -0
  39. package/lib/themeToTokensObject.d.ts +10 -0
  40. package/lib/themeToTokensObject.js +19 -0
  41. package/lib/themeToTokensObject.js.map +1 -0
  42. package/lib/themes/index.d.ts +2 -0
  43. package/lib/themes/index.js +3 -0
  44. package/lib/themes/index.js.map +1 -0
  45. package/lib/themes/teams/darkTheme.d.ts +2 -0
  46. package/lib/themes/teams/darkTheme.js +4 -0
  47. package/lib/themes/teams/darkTheme.js.map +1 -0
  48. package/lib/themes/teams/highContrastTheme.d.ts +2 -0
  49. package/lib/themes/teams/highContrastTheme.js +3 -0
  50. package/lib/themes/teams/highContrastTheme.js.map +1 -0
  51. package/lib/themes/teams/index.d.ts +3 -0
  52. package/lib/themes/teams/index.js +4 -0
  53. package/lib/themes/teams/index.js.map +1 -0
  54. package/lib/themes/teams/lightTheme.d.ts +2 -0
  55. package/lib/themes/teams/lightTheme.js +4 -0
  56. package/lib/themes/teams/lightTheme.js.map +1 -0
  57. package/lib/themes/web/darkTheme.d.ts +2 -0
  58. package/lib/themes/web/darkTheme.js +4 -0
  59. package/lib/themes/web/darkTheme.js.map +1 -0
  60. package/lib/themes/web/highContrastTheme.d.ts +2 -0
  61. package/lib/themes/web/highContrastTheme.js +3 -0
  62. package/lib/themes/web/highContrastTheme.js.map +1 -0
  63. package/lib/themes/web/index.d.ts +3 -0
  64. package/lib/themes/web/index.js +4 -0
  65. package/lib/themes/web/index.js.map +1 -0
  66. package/lib/themes/web/lightTheme.d.ts +2 -0
  67. package/lib/themes/web/lightTheme.js +4 -0
  68. package/lib/themes/web/lightTheme.js.map +1 -0
  69. package/lib/tokens.d.ts +2 -0
  70. package/lib/tokens.js +687 -0
  71. package/lib/tokens.js.map +1 -0
  72. package/lib/tsdoc-metadata.json +11 -0
  73. package/lib/types.d.ts +342 -0
  74. package/lib/types.js +2 -0
  75. package/lib/types.js.map +1 -0
  76. package/lib/utils/createDarkTheme.d.ts +2 -0
  77. package/lib/utils/createDarkTheme.js +18 -0
  78. package/lib/utils/createDarkTheme.js.map +1 -0
  79. package/lib/utils/createHighContrastTheme.d.ts +2 -0
  80. package/lib/utils/createHighContrastTheme.js +18 -0
  81. package/lib/utils/createHighContrastTheme.js.map +1 -0
  82. package/lib/utils/createLightTheme.d.ts +2 -0
  83. package/lib/utils/createLightTheme.js +18 -0
  84. package/lib/utils/createLightTheme.js.map +1 -0
  85. package/lib/utils/createTeamsDarkTheme.d.ts +2 -0
  86. package/lib/utils/createTeamsDarkTheme.js +18 -0
  87. package/lib/utils/createTeamsDarkTheme.js.map +1 -0
  88. package/lib/utils/index.d.ts +4 -0
  89. package/lib/utils/index.js +5 -0
  90. package/lib/utils/index.js.map +1 -0
  91. package/lib/utils/shadows.d.ts +3 -0
  92. package/lib/utils/shadows.js +11 -0
  93. package/lib/utils/shadows.js.map +1 -0
  94. package/lib-commonjs/alias/dark.d.ts +3 -0
  95. package/lib-commonjs/alias/dark.js +168 -0
  96. package/lib-commonjs/alias/dark.js.map +1 -0
  97. package/lib-commonjs/alias/highContrast.d.ts +3 -0
  98. package/lib-commonjs/alias/highContrast.js +168 -0
  99. package/lib-commonjs/alias/highContrast.js.map +1 -0
  100. package/lib-commonjs/alias/light.d.ts +3 -0
  101. package/lib-commonjs/alias/light.js +168 -0
  102. package/lib-commonjs/alias/light.js.map +1 -0
  103. package/lib-commonjs/alias/teamsDark.d.ts +3 -0
  104. package/lib-commonjs/alias/teamsDark.js +168 -0
  105. package/lib-commonjs/alias/teamsDark.js.map +1 -0
  106. package/lib-commonjs/global/borderRadius.d.ts +2 -0
  107. package/lib-commonjs/global/borderRadius.js +15 -0
  108. package/lib-commonjs/global/borderRadius.js.map +1 -0
  109. package/lib-commonjs/global/brandColors.d.ts +4 -0
  110. package/lib-commonjs/global/brandColors.js +61 -0
  111. package/lib-commonjs/global/brandColors.js.map +1 -0
  112. package/lib-commonjs/global/colors.d.ts +15 -0
  113. package/lib-commonjs/global/colors.js +831 -0
  114. package/lib-commonjs/global/colors.js.map +1 -0
  115. package/lib-commonjs/global/fonts.d.ts +5 -0
  116. package/lib-commonjs/global/fonts.js +43 -0
  117. package/lib-commonjs/global/fonts.js.map +1 -0
  118. package/lib-commonjs/global/index.d.ts +4 -0
  119. package/lib-commonjs/global/index.js +16 -0
  120. package/lib-commonjs/global/index.js.map +1 -0
  121. package/lib-commonjs/global/strokeWidths.d.ts +2 -0
  122. package/lib-commonjs/global/strokeWidths.js +13 -0
  123. package/lib-commonjs/global/strokeWidths.js.map +1 -0
  124. package/lib-commonjs/index.d.ts +5 -0
  125. package/lib-commonjs/index.js +31 -0
  126. package/lib-commonjs/index.js.map +1 -0
  127. package/lib-commonjs/themeToTokensObject.d.ts +10 -0
  128. package/lib-commonjs/themeToTokensObject.js +28 -0
  129. package/lib-commonjs/themeToTokensObject.js.map +1 -0
  130. package/lib-commonjs/themes/index.d.ts +2 -0
  131. package/lib-commonjs/themes/index.js +12 -0
  132. package/lib-commonjs/themes/index.js.map +1 -0
  133. package/lib-commonjs/themes/teams/darkTheme.d.ts +2 -0
  134. package/lib-commonjs/themes/teams/darkTheme.js +13 -0
  135. package/lib-commonjs/themes/teams/darkTheme.js.map +1 -0
  136. package/lib-commonjs/themes/teams/highContrastTheme.d.ts +2 -0
  137. package/lib-commonjs/themes/teams/highContrastTheme.js +11 -0
  138. package/lib-commonjs/themes/teams/highContrastTheme.js.map +1 -0
  139. package/lib-commonjs/themes/teams/index.d.ts +3 -0
  140. package/lib-commonjs/themes/teams/index.js +14 -0
  141. package/lib-commonjs/themes/teams/index.js.map +1 -0
  142. package/lib-commonjs/themes/teams/lightTheme.d.ts +2 -0
  143. package/lib-commonjs/themes/teams/lightTheme.js +13 -0
  144. package/lib-commonjs/themes/teams/lightTheme.js.map +1 -0
  145. package/lib-commonjs/themes/web/darkTheme.d.ts +2 -0
  146. package/lib-commonjs/themes/web/darkTheme.js +13 -0
  147. package/lib-commonjs/themes/web/darkTheme.js.map +1 -0
  148. package/lib-commonjs/themes/web/highContrastTheme.d.ts +2 -0
  149. package/lib-commonjs/themes/web/highContrastTheme.js +11 -0
  150. package/lib-commonjs/themes/web/highContrastTheme.js.map +1 -0
  151. package/lib-commonjs/themes/web/index.d.ts +3 -0
  152. package/lib-commonjs/themes/web/index.js +14 -0
  153. package/lib-commonjs/themes/web/index.js.map +1 -0
  154. package/lib-commonjs/themes/web/lightTheme.d.ts +2 -0
  155. package/lib-commonjs/themes/web/lightTheme.js +13 -0
  156. package/lib-commonjs/themes/web/lightTheme.js.map +1 -0
  157. package/lib-commonjs/tokens.d.ts +2 -0
  158. package/lib-commonjs/tokens.js +693 -0
  159. package/lib-commonjs/tokens.js.map +1 -0
  160. package/lib-commonjs/types.d.ts +342 -0
  161. package/lib-commonjs/types.js +6 -0
  162. package/lib-commonjs/types.js.map +1 -0
  163. package/lib-commonjs/utils/createDarkTheme.d.ts +2 -0
  164. package/lib-commonjs/utils/createDarkTheme.js +30 -0
  165. package/lib-commonjs/utils/createDarkTheme.js.map +1 -0
  166. package/lib-commonjs/utils/createHighContrastTheme.d.ts +2 -0
  167. package/lib-commonjs/utils/createHighContrastTheme.js +30 -0
  168. package/lib-commonjs/utils/createHighContrastTheme.js.map +1 -0
  169. package/lib-commonjs/utils/createLightTheme.d.ts +2 -0
  170. package/lib-commonjs/utils/createLightTheme.js +30 -0
  171. package/lib-commonjs/utils/createLightTheme.js.map +1 -0
  172. package/lib-commonjs/utils/createTeamsDarkTheme.d.ts +2 -0
  173. package/lib-commonjs/utils/createTeamsDarkTheme.js +30 -0
  174. package/lib-commonjs/utils/createTeamsDarkTheme.js.map +1 -0
  175. package/lib-commonjs/utils/index.d.ts +4 -0
  176. package/lib-commonjs/utils/index.js +16 -0
  177. package/lib-commonjs/utils/index.js.map +1 -0
  178. package/lib-commonjs/utils/shadows.d.ts +3 -0
  179. package/lib-commonjs/utils/shadows.js +20 -0
  180. package/lib-commonjs/utils/shadows.js.map +1 -0
  181. package/package.json +52 -0
@@ -0,0 +1,358 @@
1
+ export declare type BorderRadiusTokens = {
2
+ borderRadiusNone: string;
3
+ borderRadiusSmall: string;
4
+ borderRadiusMedium: string;
5
+ borderRadiusLarge: string;
6
+ borderRadiusXLarge: string;
7
+ borderRadiusCircular: string;
8
+ };
9
+
10
+ export declare type Brands = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 | 110 | 120 | 130 | 140 | 150 | 160;
11
+
12
+ export declare type BrandVariants = Record<Brands, string>;
13
+
14
+ export declare type ColorPaletteAnchor = 'colorPaletteAnchorBackground1' | 'colorPaletteAnchorBackground2' | 'colorPaletteAnchorBackground3' | 'colorPaletteAnchorForeground1' | 'colorPaletteAnchorForeground2' | 'colorPaletteAnchorForeground3' | 'colorPaletteAnchorBorderActive' | 'colorPaletteAnchorBorder1' | 'colorPaletteAnchorBorder2';
15
+
16
+ export declare type ColorPaletteBeige = 'colorPaletteBeigeBackground1' | 'colorPaletteBeigeBackground2' | 'colorPaletteBeigeBackground3' | 'colorPaletteBeigeForeground1' | 'colorPaletteBeigeForeground2' | 'colorPaletteBeigeForeground3' | 'colorPaletteBeigeBorderActive' | 'colorPaletteBeigeBorder1' | 'colorPaletteBeigeBorder2';
17
+
18
+ export declare type ColorPaletteBerry = 'colorPaletteBerryBackground1' | 'colorPaletteBerryBackground2' | 'colorPaletteBerryBackground3' | 'colorPaletteBerryForeground1' | 'colorPaletteBerryForeground2' | 'colorPaletteBerryForeground3' | 'colorPaletteBerryBorderActive' | 'colorPaletteBerryBorder1' | 'colorPaletteBerryBorder2';
19
+
20
+ export declare type ColorPaletteBlue = 'colorPaletteBlueBackground1' | 'colorPaletteBlueBackground2' | 'colorPaletteBlueBackground3' | 'colorPaletteBlueForeground1' | 'colorPaletteBlueForeground2' | 'colorPaletteBlueForeground3' | 'colorPaletteBlueBorderActive' | 'colorPaletteBlueBorder1' | 'colorPaletteBlueBorder2';
21
+
22
+ export declare type ColorPaletteBrass = 'colorPaletteBrassBackground1' | 'colorPaletteBrassBackground2' | 'colorPaletteBrassBackground3' | 'colorPaletteBrassForeground1' | 'colorPaletteBrassForeground2' | 'colorPaletteBrassForeground3' | 'colorPaletteBrassBorderActive' | 'colorPaletteBrassBorder1' | 'colorPaletteBrassBorder2';
23
+
24
+ export declare type ColorPaletteBronze = 'colorPaletteBronzeBackground1' | 'colorPaletteBronzeBackground2' | 'colorPaletteBronzeBackground3' | 'colorPaletteBronzeForeground1' | 'colorPaletteBronzeForeground2' | 'colorPaletteBronzeForeground3' | 'colorPaletteBronzeBorderActive' | 'colorPaletteBronzeBorder1' | 'colorPaletteBronzeBorder2';
25
+
26
+ export declare type ColorPaletteBrown = 'colorPaletteBrownBackground1' | 'colorPaletteBrownBackground2' | 'colorPaletteBrownBackground3' | 'colorPaletteBrownForeground1' | 'colorPaletteBrownForeground2' | 'colorPaletteBrownForeground3' | 'colorPaletteBrownBorderActive' | 'colorPaletteBrownBorder1' | 'colorPaletteBrownBorder2';
27
+
28
+ export declare type ColorPaletteBurgundy = 'colorPaletteBurgundyBackground1' | 'colorPaletteBurgundyBackground2' | 'colorPaletteBurgundyBackground3' | 'colorPaletteBurgundyForeground1' | 'colorPaletteBurgundyForeground2' | 'colorPaletteBurgundyForeground3' | 'colorPaletteBurgundyBorderActive' | 'colorPaletteBurgundyBorder1' | 'colorPaletteBurgundyBorder2';
29
+
30
+ export declare type ColorPaletteCharcoal = 'colorPaletteCharcoalBackground1' | 'colorPaletteCharcoalBackground2' | 'colorPaletteCharcoalBackground3' | 'colorPaletteCharcoalForeground1' | 'colorPaletteCharcoalForeground2' | 'colorPaletteCharcoalForeground3' | 'colorPaletteCharcoalBorderActive' | 'colorPaletteCharcoalBorder1' | 'colorPaletteCharcoalBorder2';
31
+
32
+ export declare type ColorPaletteCornflower = 'colorPaletteCornflowerBackground1' | 'colorPaletteCornflowerBackground2' | 'colorPaletteCornflowerBackground3' | 'colorPaletteCornflowerForeground1' | 'colorPaletteCornflowerForeground2' | 'colorPaletteCornflowerForeground3' | 'colorPaletteCornflowerBorderActive' | 'colorPaletteCornflowerBorder1' | 'colorPaletteCornflowerBorder2';
33
+
34
+ export declare type ColorPaletteCranberry = 'colorPaletteCranberryBackground1' | 'colorPaletteCranberryBackground2' | 'colorPaletteCranberryBackground3' | 'colorPaletteCranberryForeground1' | 'colorPaletteCranberryForeground2' | 'colorPaletteCranberryForeground3' | 'colorPaletteCranberryBorderActive' | 'colorPaletteCranberryBorder1' | 'colorPaletteCranberryBorder2';
35
+
36
+ export declare type ColorPaletteCyan = 'colorPaletteCyanBackground1' | 'colorPaletteCyanBackground2' | 'colorPaletteCyanBackground3' | 'colorPaletteCyanForeground1' | 'colorPaletteCyanForeground2' | 'colorPaletteCyanForeground3' | 'colorPaletteCyanBorderActive' | 'colorPaletteCyanBorder1' | 'colorPaletteCyanBorder2';
37
+
38
+ export declare type ColorPaletteDarkBlue = 'colorPaletteDarkBlueBackground1' | 'colorPaletteDarkBlueBackground2' | 'colorPaletteDarkBlueBackground3' | 'colorPaletteDarkBlueForeground1' | 'colorPaletteDarkBlueForeground2' | 'colorPaletteDarkBlueForeground3' | 'colorPaletteDarkBlueBorderActive' | 'colorPaletteDarkBlueBorder1' | 'colorPaletteDarkBlueBorder2';
39
+
40
+ export declare type ColorPaletteDarkBrown = 'colorPaletteDarkBrownBackground1' | 'colorPaletteDarkBrownBackground2' | 'colorPaletteDarkBrownBackground3' | 'colorPaletteDarkBrownForeground1' | 'colorPaletteDarkBrownForeground2' | 'colorPaletteDarkBrownForeground3' | 'colorPaletteDarkBrownBorderActive' | 'colorPaletteDarkBrownBorder1' | 'colorPaletteDarkBrownBorder2';
41
+
42
+ export declare type ColorPaletteDarkGreen = 'colorPaletteDarkGreenBackground1' | 'colorPaletteDarkGreenBackground2' | 'colorPaletteDarkGreenBackground3' | 'colorPaletteDarkGreenForeground1' | 'colorPaletteDarkGreenForeground2' | 'colorPaletteDarkGreenForeground3' | 'colorPaletteDarkGreenBorderActive' | 'colorPaletteDarkGreenBorder1' | 'colorPaletteDarkGreenBorder2';
43
+
44
+ export declare type ColorPaletteDarkOrange = 'colorPaletteDarkOrangeBackground1' | 'colorPaletteDarkOrangeBackground2' | 'colorPaletteDarkOrangeBackground3' | 'colorPaletteDarkOrangeForeground1' | 'colorPaletteDarkOrangeForeground2' | 'colorPaletteDarkOrangeForeground3' | 'colorPaletteDarkOrangeBorderActive' | 'colorPaletteDarkOrangeBorder1' | 'colorPaletteDarkOrangeBorder2';
45
+
46
+ export declare type ColorPaletteDarkPurple = 'colorPaletteDarkPurpleBackground1' | 'colorPaletteDarkPurpleBackground2' | 'colorPaletteDarkPurpleBackground3' | 'colorPaletteDarkPurpleForeground1' | 'colorPaletteDarkPurpleForeground2' | 'colorPaletteDarkPurpleForeground3' | 'colorPaletteDarkPurpleBorderActive' | 'colorPaletteDarkPurpleBorder1' | 'colorPaletteDarkPurpleBorder2';
47
+
48
+ export declare type ColorPaletteDarkRed = 'colorPaletteDarkRedBackground1' | 'colorPaletteDarkRedBackground2' | 'colorPaletteDarkRedBackground3' | 'colorPaletteDarkRedForeground1' | 'colorPaletteDarkRedForeground2' | 'colorPaletteDarkRedForeground3' | 'colorPaletteDarkRedBorderActive' | 'colorPaletteDarkRedBorder1' | 'colorPaletteDarkRedBorder2';
49
+
50
+ export declare type ColorPaletteDarkTeal = 'colorPaletteDarkTealBackground1' | 'colorPaletteDarkTealBackground2' | 'colorPaletteDarkTealBackground3' | 'colorPaletteDarkTealForeground1' | 'colorPaletteDarkTealForeground2' | 'colorPaletteDarkTealForeground3' | 'colorPaletteDarkTealBorderActive' | 'colorPaletteDarkTealBorder1' | 'colorPaletteDarkTealBorder2';
51
+
52
+ export declare type ColorPaletteForest = 'colorPaletteForestBackground1' | 'colorPaletteForestBackground2' | 'colorPaletteForestBackground3' | 'colorPaletteForestForeground1' | 'colorPaletteForestForeground2' | 'colorPaletteForestForeground3' | 'colorPaletteForestBorderActive' | 'colorPaletteForestBorder1' | 'colorPaletteForestBorder2';
53
+
54
+ export declare type ColorPaletteGold = 'colorPaletteGoldBackground1' | 'colorPaletteGoldBackground2' | 'colorPaletteGoldBackground3' | 'colorPaletteGoldForeground1' | 'colorPaletteGoldForeground2' | 'colorPaletteGoldForeground3' | 'colorPaletteGoldBorderActive' | 'colorPaletteGoldBorder1' | 'colorPaletteGoldBorder2';
55
+
56
+ export declare type ColorPaletteGrape = 'colorPaletteGrapeBackground1' | 'colorPaletteGrapeBackground2' | 'colorPaletteGrapeBackground3' | 'colorPaletteGrapeForeground1' | 'colorPaletteGrapeForeground2' | 'colorPaletteGrapeForeground3' | 'colorPaletteGrapeBorderActive' | 'colorPaletteGrapeBorder1' | 'colorPaletteGrapeBorder2';
57
+
58
+ export declare type ColorPaletteGreen = 'colorPaletteGreenBackground1' | 'colorPaletteGreenBackground2' | 'colorPaletteGreenBackground3' | 'colorPaletteGreenForeground1' | 'colorPaletteGreenForeground2' | 'colorPaletteGreenForeground3' | 'colorPaletteGreenBorderActive' | 'colorPaletteGreenBorder1' | 'colorPaletteGreenBorder2';
59
+
60
+ export declare type ColorPaletteHotPink = 'colorPaletteHotPinkBackground1' | 'colorPaletteHotPinkBackground2' | 'colorPaletteHotPinkBackground3' | 'colorPaletteHotPinkForeground1' | 'colorPaletteHotPinkForeground2' | 'colorPaletteHotPinkForeground3' | 'colorPaletteHotPinkBorderActive' | 'colorPaletteHotPinkBorder1' | 'colorPaletteHotPinkBorder2';
61
+
62
+ export declare type ColorPaletteLavender = 'colorPaletteLavenderBackground1' | 'colorPaletteLavenderBackground2' | 'colorPaletteLavenderBackground3' | 'colorPaletteLavenderForeground1' | 'colorPaletteLavenderForeground2' | 'colorPaletteLavenderForeground3' | 'colorPaletteLavenderBorderActive' | 'colorPaletteLavenderBorder1' | 'colorPaletteLavenderBorder2';
63
+
64
+ export declare type ColorPaletteLightBlue = 'colorPaletteLightBlueBackground1' | 'colorPaletteLightBlueBackground2' | 'colorPaletteLightBlueBackground3' | 'colorPaletteLightBlueForeground1' | 'colorPaletteLightBlueForeground2' | 'colorPaletteLightBlueForeground3' | 'colorPaletteLightBlueBorderActive' | 'colorPaletteLightBlueBorder1' | 'colorPaletteLightBlueBorder2';
65
+
66
+ export declare type ColorPaletteLightGreen = 'colorPaletteLightGreenBackground1' | 'colorPaletteLightGreenBackground2' | 'colorPaletteLightGreenBackground3' | 'colorPaletteLightGreenForeground1' | 'colorPaletteLightGreenForeground2' | 'colorPaletteLightGreenForeground3' | 'colorPaletteLightGreenBorderActive' | 'colorPaletteLightGreenBorder1' | 'colorPaletteLightGreenBorder2';
67
+
68
+ export declare type ColorPaletteLightTeal = 'colorPaletteLightTealBackground1' | 'colorPaletteLightTealBackground2' | 'colorPaletteLightTealBackground3' | 'colorPaletteLightTealForeground1' | 'colorPaletteLightTealForeground2' | 'colorPaletteLightTealForeground3' | 'colorPaletteLightTealBorderActive' | 'colorPaletteLightTealBorder1' | 'colorPaletteLightTealBorder2';
69
+
70
+ export declare type ColorPaletteLilac = 'colorPaletteLilacBackground1' | 'colorPaletteLilacBackground2' | 'colorPaletteLilacBackground3' | 'colorPaletteLilacForeground1' | 'colorPaletteLilacForeground2' | 'colorPaletteLilacForeground3' | 'colorPaletteLilacBorderActive' | 'colorPaletteLilacBorder1' | 'colorPaletteLilacBorder2';
71
+
72
+ export declare type ColorPaletteLime = 'colorPaletteLimeBackground1' | 'colorPaletteLimeBackground2' | 'colorPaletteLimeBackground3' | 'colorPaletteLimeForeground1' | 'colorPaletteLimeForeground2' | 'colorPaletteLimeForeground3' | 'colorPaletteLimeBorderActive' | 'colorPaletteLimeBorder1' | 'colorPaletteLimeBorder2';
73
+
74
+ export declare type ColorPaletteMagenta = 'colorPaletteMagentaBackground1' | 'colorPaletteMagentaBackground2' | 'colorPaletteMagentaBackground3' | 'colorPaletteMagentaForeground1' | 'colorPaletteMagentaForeground2' | 'colorPaletteMagentaForeground3' | 'colorPaletteMagentaBorderActive' | 'colorPaletteMagentaBorder1' | 'colorPaletteMagentaBorder2';
75
+
76
+ export declare type ColorPaletteMarigold = 'colorPaletteMarigoldBackground1' | 'colorPaletteMarigoldBackground2' | 'colorPaletteMarigoldBackground3' | 'colorPaletteMarigoldForeground1' | 'colorPaletteMarigoldForeground2' | 'colorPaletteMarigoldForeground3' | 'colorPaletteMarigoldBorderActive' | 'colorPaletteMarigoldBorder1' | 'colorPaletteMarigoldBorder2';
77
+
78
+ export declare type ColorPaletteMink = 'colorPaletteMinkBackground1' | 'colorPaletteMinkBackground2' | 'colorPaletteMinkBackground3' | 'colorPaletteMinkForeground1' | 'colorPaletteMinkForeground2' | 'colorPaletteMinkForeground3' | 'colorPaletteMinkBorderActive' | 'colorPaletteMinkBorder1' | 'colorPaletteMinkBorder2';
79
+
80
+ export declare type ColorPaletteNavy = 'colorPaletteNavyBackground1' | 'colorPaletteNavyBackground2' | 'colorPaletteNavyBackground3' | 'colorPaletteNavyForeground1' | 'colorPaletteNavyForeground2' | 'colorPaletteNavyForeground3' | 'colorPaletteNavyBorderActive' | 'colorPaletteNavyBorder1' | 'colorPaletteNavyBorder2';
81
+
82
+ export declare type ColorPaletteOrange = 'colorPaletteOrangeBackground1' | 'colorPaletteOrangeBackground2' | 'colorPaletteOrangeBackground3' | 'colorPaletteOrangeForeground1' | 'colorPaletteOrangeForeground2' | 'colorPaletteOrangeForeground3' | 'colorPaletteOrangeBorderActive' | 'colorPaletteOrangeBorder1' | 'colorPaletteOrangeBorder2';
83
+
84
+ export declare type ColorPaletteOrchid = 'colorPaletteOrchidBackground1' | 'colorPaletteOrchidBackground2' | 'colorPaletteOrchidBackground3' | 'colorPaletteOrchidForeground1' | 'colorPaletteOrchidForeground2' | 'colorPaletteOrchidForeground3' | 'colorPaletteOrchidBorderActive' | 'colorPaletteOrchidBorder1' | 'colorPaletteOrchidBorder2';
85
+
86
+ export declare type ColorPalettePeach = 'colorPalettePeachBackground1' | 'colorPalettePeachBackground2' | 'colorPalettePeachBackground3' | 'colorPalettePeachForeground1' | 'colorPalettePeachForeground2' | 'colorPalettePeachForeground3' | 'colorPalettePeachBorderActive' | 'colorPalettePeachBorder1' | 'colorPalettePeachBorder2';
87
+
88
+ export declare type ColorPalettePink = 'colorPalettePinkBackground1' | 'colorPalettePinkBackground2' | 'colorPalettePinkBackground3' | 'colorPalettePinkForeground1' | 'colorPalettePinkForeground2' | 'colorPalettePinkForeground3' | 'colorPalettePinkBorderActive' | 'colorPalettePinkBorder1' | 'colorPalettePinkBorder2';
89
+
90
+ export declare type ColorPalettePlatinum = 'colorPalettePlatinumBackground1' | 'colorPalettePlatinumBackground2' | 'colorPalettePlatinumBackground3' | 'colorPalettePlatinumForeground1' | 'colorPalettePlatinumForeground2' | 'colorPalettePlatinumForeground3' | 'colorPalettePlatinumBorderActive' | 'colorPalettePlatinumBorder1' | 'colorPalettePlatinumBorder2';
91
+
92
+ export declare type ColorPalettePlum = 'colorPalettePlumBackground1' | 'colorPalettePlumBackground2' | 'colorPalettePlumBackground3' | 'colorPalettePlumForeground1' | 'colorPalettePlumForeground2' | 'colorPalettePlumForeground3' | 'colorPalettePlumBorderActive' | 'colorPalettePlumBorder1' | 'colorPalettePlumBorder2';
93
+
94
+ export declare type ColorPalettePumpkin = 'colorPalettePumpkinBackground1' | 'colorPalettePumpkinBackground2' | 'colorPalettePumpkinBackground3' | 'colorPalettePumpkinForeground1' | 'colorPalettePumpkinForeground2' | 'colorPalettePumpkinForeground3' | 'colorPalettePumpkinBorderActive' | 'colorPalettePumpkinBorder1' | 'colorPalettePumpkinBorder2';
95
+
96
+ export declare type ColorPalettePurple = 'colorPalettePurpleBackground1' | 'colorPalettePurpleBackground2' | 'colorPalettePurpleBackground3' | 'colorPalettePurpleForeground1' | 'colorPalettePurpleForeground2' | 'colorPalettePurpleForeground3' | 'colorPalettePurpleBorderActive' | 'colorPalettePurpleBorder1' | 'colorPalettePurpleBorder2';
97
+
98
+ export declare type ColorPaletteRed = 'colorPaletteRedBackground1' | 'colorPaletteRedBackground2' | 'colorPaletteRedBackground3' | 'colorPaletteRedForeground1' | 'colorPaletteRedForeground2' | 'colorPaletteRedForeground3' | 'colorPaletteRedBorderActive' | 'colorPaletteRedBorder1' | 'colorPaletteRedBorder2';
99
+
100
+ export declare type ColorPaletteRoyalBlue = 'colorPaletteRoyalBlueBackground1' | 'colorPaletteRoyalBlueBackground2' | 'colorPaletteRoyalBlueBackground3' | 'colorPaletteRoyalBlueForeground1' | 'colorPaletteRoyalBlueForeground2' | 'colorPaletteRoyalBlueForeground3' | 'colorPaletteRoyalBlueBorderActive' | 'colorPaletteRoyalBlueBorder1' | 'colorPaletteRoyalBlueBorder2';
101
+
102
+ export declare type ColorPaletteSeafoam = 'colorPaletteSeafoamBackground1' | 'colorPaletteSeafoamBackground2' | 'colorPaletteSeafoamBackground3' | 'colorPaletteSeafoamForeground1' | 'colorPaletteSeafoamForeground2' | 'colorPaletteSeafoamForeground3' | 'colorPaletteSeafoamBorderActive' | 'colorPaletteSeafoamBorder1' | 'colorPaletteSeafoamBorder2';
103
+
104
+ export declare type ColorPaletteSilver = 'colorPaletteSilverBackground1' | 'colorPaletteSilverBackground2' | 'colorPaletteSilverBackground3' | 'colorPaletteSilverForeground1' | 'colorPaletteSilverForeground2' | 'colorPaletteSilverForeground3' | 'colorPaletteSilverBorderActive' | 'colorPaletteSilverBorder1' | 'colorPaletteSilverBorder2';
105
+
106
+ export declare type ColorPaletteSteel = 'colorPaletteSteelBackground1' | 'colorPaletteSteelBackground2' | 'colorPaletteSteelBackground3' | 'colorPaletteSteelForeground1' | 'colorPaletteSteelForeground2' | 'colorPaletteSteelForeground3' | 'colorPaletteSteelBorderActive' | 'colorPaletteSteelBorder1' | 'colorPaletteSteelBorder2';
107
+
108
+ export declare type ColorPaletteTeal = 'colorPaletteTealBackground1' | 'colorPaletteTealBackground2' | 'colorPaletteTealBackground3' | 'colorPaletteTealForeground1' | 'colorPaletteTealForeground2' | 'colorPaletteTealForeground3' | 'colorPaletteTealBorderActive' | 'colorPaletteTealBorder1' | 'colorPaletteTealBorder2';
109
+
110
+ export declare type ColorPaletteTokens = Record<ColorPaletteDarkRed | ColorPaletteBurgundy | ColorPaletteCranberry | ColorPaletteRed | ColorPaletteDarkOrange | ColorPaletteBronze | ColorPalettePumpkin | ColorPaletteOrange | ColorPalettePeach | ColorPaletteMarigold | ColorPaletteYellow | ColorPaletteGold | ColorPaletteBrass | ColorPaletteBrown | ColorPaletteDarkBrown | ColorPaletteLime | ColorPaletteForest | ColorPaletteSeafoam | ColorPaletteLightGreen | ColorPaletteGreen | ColorPaletteDarkGreen | ColorPaletteLightTeal | ColorPaletteTeal | ColorPaletteDarkTeal | ColorPaletteCyan | ColorPaletteSteel | ColorPaletteLightBlue | ColorPaletteBlue | ColorPaletteRoyalBlue | ColorPaletteDarkBlue | ColorPaletteCornflower | ColorPaletteNavy | ColorPaletteLavender | ColorPalettePurple | ColorPaletteDarkPurple | ColorPaletteOrchid | ColorPaletteGrape | ColorPaletteBerry | ColorPaletteLilac | ColorPalettePink | ColorPaletteHotPink | ColorPaletteMagenta | ColorPalettePlum | ColorPaletteBeige | ColorPaletteMink | ColorPaletteSilver | ColorPalettePlatinum | ColorPaletteAnchor | ColorPaletteCharcoal, string>;
111
+
112
+ export declare type ColorPaletteYellow = 'colorPaletteYellowBackground1' | 'colorPaletteYellowBackground2' | 'colorPaletteYellowBackground3' | 'colorPaletteYellowForeground1' | 'colorPaletteYellowForeground2' | 'colorPaletteYellowForeground3' | 'colorPaletteYellowBorderActive' | 'colorPaletteYellowBorder1' | 'colorPaletteYellowBorder2';
113
+
114
+ /**
115
+ * Design tokens for alias colors
116
+ */
117
+ export declare type ColorTokens = {
118
+ colorNeutralForeground1: string;
119
+ colorNeutralForeground1Hover: string;
120
+ colorNeutralForeground1Pressed: string;
121
+ colorNeutralForeground1Selected: string;
122
+ colorNeutralForeground2: string;
123
+ colorNeutralForeground2Hover: string;
124
+ colorNeutralForeground2Pressed: string;
125
+ colorNeutralForeground2Selected: string;
126
+ colorNeutralForeground2BrandHover: string;
127
+ colorNeutralForeground2BrandPressed: string;
128
+ colorNeutralForeground2BrandSelected: string;
129
+ colorNeutralForeground3: string;
130
+ colorNeutralForeground3Hover: string;
131
+ colorNeutralForeground3Pressed: string;
132
+ colorNeutralForeground3Selected: string;
133
+ colorNeutralForeground3BrandHover: string;
134
+ colorNeutralForeground3BrandPressed: string;
135
+ colorNeutralForeground3BrandSelected: string;
136
+ colorNeutralForeground4: string;
137
+ colorNeutralForegroundDisabled: string;
138
+ colorNeutralForegroundInvertedDisabled: string;
139
+ colorBrandForegroundLink: string;
140
+ colorBrandForegroundLinkHover: string;
141
+ colorBrandForegroundLinkPressed: string;
142
+ colorBrandForegroundLinkSelected: string;
143
+ colorCompoundBrandForeground1: string;
144
+ colorCompoundBrandForeground1Hover: string;
145
+ colorCompoundBrandForeground1Pressed: string;
146
+ colorBrandForeground1: string;
147
+ colorBrandForeground2: string;
148
+ colorNeutralForeground1Static: string;
149
+ colorNeutralForegroundInverted: string;
150
+ colorNeutralForegroundInvertedHover: string;
151
+ colorNeutralForegroundInvertedPressed: string;
152
+ colorNeutralForegroundInvertedSelected: string;
153
+ colorNeutralForegroundOnBrand: string;
154
+ colorNeutralForegroundInvertedLink: string;
155
+ colorNeutralForegroundInvertedLinkHover: string;
156
+ colorNeutralForegroundInvertedLinkPressed: string;
157
+ colorNeutralForegroundInvertedLinkSelected: string;
158
+ colorBrandForegroundInverted: string;
159
+ colorBrandForegroundInvertedHover: string;
160
+ colorBrandForegroundInvertedPressed: string;
161
+ colorBrandForegroundOnLight: string;
162
+ colorBrandForegroundOnLightHover: string;
163
+ colorBrandForegroundOnLightPressed: string;
164
+ colorBrandForegroundOnLightSelected: string;
165
+ colorNeutralBackground1: string;
166
+ colorNeutralBackground1Hover: string;
167
+ colorNeutralBackground1Pressed: string;
168
+ colorNeutralBackground1Selected: string;
169
+ colorNeutralBackground2: string;
170
+ colorNeutralBackground2Hover: string;
171
+ colorNeutralBackground2Pressed: string;
172
+ colorNeutralBackground2Selected: string;
173
+ colorNeutralBackground3: string;
174
+ colorNeutralBackground3Hover: string;
175
+ colorNeutralBackground3Pressed: string;
176
+ colorNeutralBackground3Selected: string;
177
+ colorNeutralBackground4: string;
178
+ colorNeutralBackground4Hover: string;
179
+ colorNeutralBackground4Pressed: string;
180
+ colorNeutralBackground4Selected: string;
181
+ colorNeutralBackground5: string;
182
+ colorNeutralBackground5Hover: string;
183
+ colorNeutralBackground5Pressed: string;
184
+ colorNeutralBackground5Selected: string;
185
+ colorNeutralBackground6: string;
186
+ colorNeutralBackgroundInverted: string;
187
+ colorSubtleBackground: string;
188
+ colorSubtleBackgroundHover: string;
189
+ colorSubtleBackgroundPressed: string;
190
+ colorSubtleBackgroundSelected: string;
191
+ colorSubtleBackgroundLightAlphaHover: string;
192
+ colorSubtleBackgroundLightAlphaPressed: string;
193
+ colorSubtleBackgroundLightAlphaSelected: string;
194
+ colorSubtleBackgroundInverted: string;
195
+ colorSubtleBackgroundInvertedHover: string;
196
+ colorSubtleBackgroundInvertedPressed: string;
197
+ colorSubtleBackgroundInvertedSelected: string;
198
+ colorTransparentBackground: string;
199
+ colorTransparentBackgroundHover: string;
200
+ colorTransparentBackgroundPressed: string;
201
+ colorTransparentBackgroundSelected: string;
202
+ colorNeutralBackgroundDisabled: string;
203
+ colorNeutralBackgroundInvertedDisabled: string;
204
+ colorNeutralStencil1: string;
205
+ colorNeutralStencil2: string;
206
+ colorBrandBackground: string;
207
+ colorBrandBackgroundHover: string;
208
+ colorBrandBackgroundPressed: string;
209
+ colorBrandBackgroundSelected: string;
210
+ colorCompoundBrandBackground: string;
211
+ colorCompoundBrandBackgroundHover: string;
212
+ colorCompoundBrandBackgroundPressed: string;
213
+ colorBrandBackgroundStatic: string;
214
+ colorBrandBackground2: string;
215
+ colorBrandBackgroundInverted: string;
216
+ colorBrandBackgroundInvertedHover: string;
217
+ colorBrandBackgroundInvertedPressed: string;
218
+ colorBrandBackgroundInvertedSelected: string;
219
+ colorNeutralStrokeAccessible: string;
220
+ colorNeutralStrokeAccessibleHover: string;
221
+ colorNeutralStrokeAccessiblePressed: string;
222
+ colorNeutralStrokeAccessibleSelected: string;
223
+ colorNeutralStroke1: string;
224
+ colorNeutralStroke1Hover: string;
225
+ colorNeutralStroke1Pressed: string;
226
+ colorNeutralStroke1Selected: string;
227
+ colorNeutralStroke2: string;
228
+ colorNeutralStroke3: string;
229
+ colorNeutralStrokeOnBrand: string;
230
+ colorNeutralStrokeOnBrand2: string;
231
+ colorNeutralStrokeOnBrand2Hover: string;
232
+ colorNeutralStrokeOnBrand2Pressed: string;
233
+ colorNeutralStrokeOnBrand2Selected: string;
234
+ colorBrandStroke1: string;
235
+ colorBrandStroke2: string;
236
+ colorCompoundBrandStroke: string;
237
+ colorCompoundBrandStrokeHover: string;
238
+ colorCompoundBrandStrokePressed: string;
239
+ colorNeutralStrokeDisabled: string;
240
+ colorNeutralStrokeInvertedDisabled: string;
241
+ colorTransparentStroke: string;
242
+ colorTransparentStrokeInteractive: string;
243
+ colorTransparentStrokeDisabled: string;
244
+ colorStrokeFocus1: string;
245
+ colorStrokeFocus2: string;
246
+ colorNeutralShadowAmbient: string;
247
+ colorNeutralShadowKey: string;
248
+ colorNeutralShadowAmbientLighter: string;
249
+ colorNeutralShadowKeyLighter: string;
250
+ colorNeutralShadowAmbientDarker: string;
251
+ colorNeutralShadowKeyDarker: string;
252
+ colorBrandShadowAmbient: string;
253
+ colorBrandShadowKey: string;
254
+ };
255
+
256
+ export declare const createDarkTheme: (brand: BrandVariants) => Theme;
257
+
258
+ export declare const createHighContrastTheme: () => Theme;
259
+
260
+ export declare const createLightTheme: (brand: BrandVariants) => Theme;
261
+
262
+ export declare const createTeamsDarkTheme: (brand: BrandVariants) => Theme;
263
+
264
+ export declare type FontFamilyTokens = {
265
+ fontFamilyBase: string;
266
+ fontFamilyMonospace: string;
267
+ fontFamilyNumeric: string;
268
+ };
269
+
270
+ export declare type FontSizeTokens = {
271
+ fontSizeBase100: string;
272
+ fontSizeBase200: string;
273
+ fontSizeBase300: string;
274
+ fontSizeBase400: string;
275
+ fontSizeBase500: string;
276
+ fontSizeBase600: string;
277
+ fontSizeHero700: string;
278
+ fontSizeHero800: string;
279
+ fontSizeHero900: string;
280
+ fontSizeHero1000: string;
281
+ };
282
+
283
+ export declare type FontWeightTokens = {
284
+ fontWeightRegular: number;
285
+ fontWeightMedium: number;
286
+ fontWeightSemibold: number;
287
+ };
288
+
289
+ export declare type LineHeightTokens = {
290
+ lineHeightBase100: string;
291
+ lineHeightBase200: string;
292
+ lineHeightBase300: string;
293
+ lineHeightBase400: string;
294
+ lineHeightBase500: string;
295
+ lineHeightBase600: string;
296
+ lineHeightHero700: string;
297
+ lineHeightHero800: string;
298
+ lineHeightHero900: string;
299
+ lineHeightHero1000: string;
300
+ };
301
+
302
+ export declare type PartialTheme = Partial<Theme>;
303
+
304
+ export declare type ShadowBrandTokens = {
305
+ shadow2Brand: string;
306
+ shadow4Brand: string;
307
+ shadow8Brand: string;
308
+ shadow16Brand: string;
309
+ shadow28Brand: string;
310
+ shadow64Brand: string;
311
+ };
312
+
313
+ /**
314
+ * Design tokens for shadow levels
315
+ */
316
+ export declare type ShadowTokens = {
317
+ shadow2: string;
318
+ shadow4: string;
319
+ shadow8: string;
320
+ shadow16: string;
321
+ shadow28: string;
322
+ shadow64: string;
323
+ };
324
+
325
+ export declare type StrokeWidthTokens = {
326
+ strokeWidthThin: string;
327
+ strokeWidthThick: string;
328
+ strokeWidthThicker: string;
329
+ strokeWidthThickest: string;
330
+ };
331
+
332
+ export declare const teamsDarkTheme: Theme;
333
+
334
+ export declare const teamsHighContrastTheme: Theme;
335
+
336
+ export declare const teamsLightTheme: Theme;
337
+
338
+ export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & ShadowTokens & ShadowBrandTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens;
339
+
340
+ /**
341
+ * Programmatically generates a tokens to css variables mapping object from the keys in a theme.
342
+ * This helps with ease of use as a user of a custom theme does not have to manually construct this object, but it could
343
+ * affect tree-shaking since bundlers do not know the shape of the output.
344
+ *
345
+ * @param theme - Theme from which to get the keys to generate the tokens to css variables mapping object
346
+ * @returns Tokens to css variables mapping object corresponding to the passed theme
347
+ */
348
+ export declare function themeToTokensObject<TTheme extends Theme>(theme: TTheme): Record<keyof TTheme, string>;
349
+
350
+ export declare const tokens: Record<keyof Theme, string>;
351
+
352
+ export declare const webDarkTheme: Theme;
353
+
354
+ export declare const webHighContrastTheme: Theme;
355
+
356
+ export declare const webLightTheme: Theme;
357
+
358
+ export { }
@@ -0,0 +1,3 @@
1
+ import type { BrandVariants, ColorTokens, ColorPaletteTokens } from '../types';
2
+ export declare const generateColorTokens: (brand: BrandVariants) => ColorTokens;
3
+ export declare const colorPaletteTokens: ColorPaletteTokens;
@@ -0,0 +1,158 @@
1
+ import { black, blackAlpha, grey, white, whiteAlpha, sharedColors } 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[90],
25
+ colorBrandForegroundLinkHover: brand[110],
26
+ colorBrandForegroundLinkPressed: brand[100],
27
+ colorBrandForegroundLinkSelected: brand[90],
28
+ colorCompoundBrandForeground1: brand[90],
29
+ colorCompoundBrandForeground1Hover: brand[100],
30
+ colorCompoundBrandForeground1Pressed: brand[80],
31
+ colorBrandForeground1: brand[100],
32
+ colorBrandForeground2: brand[110],
33
+ colorNeutralForeground1Static: grey[14],
34
+ colorNeutralForegroundInverted: white,
35
+ colorNeutralForegroundInvertedHover: white,
36
+ colorNeutralForegroundInvertedPressed: white,
37
+ colorNeutralForegroundInvertedSelected: white,
38
+ colorNeutralForegroundOnBrand: white,
39
+ colorNeutralForegroundInvertedLink: white,
40
+ colorNeutralForegroundInvertedLinkHover: white,
41
+ colorNeutralForegroundInvertedLinkPressed: white,
42
+ colorNeutralForegroundInvertedLinkSelected: white,
43
+ colorBrandForegroundInverted: brand[100],
44
+ colorBrandForegroundInvertedHover: brand[110],
45
+ colorBrandForegroundInvertedPressed: brand[100],
46
+ colorBrandForegroundOnLight: brand[80],
47
+ colorBrandForegroundOnLightHover: brand[70],
48
+ colorBrandForegroundOnLightPressed: brand[50],
49
+ colorBrandForegroundOnLightSelected: brand[60],
50
+ colorNeutralBackground1: grey[16],
51
+ colorNeutralBackground1Hover: grey[24],
52
+ colorNeutralBackground1Pressed: grey[12],
53
+ colorNeutralBackground1Selected: grey[22],
54
+ colorNeutralBackground2: grey[12],
55
+ colorNeutralBackground2Hover: grey[20],
56
+ colorNeutralBackground2Pressed: grey[8],
57
+ colorNeutralBackground2Selected: grey[18],
58
+ colorNeutralBackground3: grey[8],
59
+ colorNeutralBackground3Hover: grey[16],
60
+ colorNeutralBackground3Pressed: grey[4],
61
+ colorNeutralBackground3Selected: grey[14],
62
+ colorNeutralBackground4: grey[4],
63
+ colorNeutralBackground4Hover: grey[12],
64
+ colorNeutralBackground4Pressed: black,
65
+ colorNeutralBackground4Selected: grey[10],
66
+ colorNeutralBackground5: black,
67
+ colorNeutralBackground5Hover: grey[8],
68
+ colorNeutralBackground5Pressed: grey[2],
69
+ colorNeutralBackground5Selected: grey[6],
70
+ colorNeutralBackground6: grey[20],
71
+ colorNeutralBackgroundInverted: grey[24],
72
+ colorSubtleBackground: 'transparent',
73
+ colorSubtleBackgroundHover: grey[22],
74
+ colorSubtleBackgroundPressed: grey[18],
75
+ colorSubtleBackgroundSelected: grey[20],
76
+ colorSubtleBackgroundLightAlphaHover: whiteAlpha[10],
77
+ colorSubtleBackgroundLightAlphaPressed: whiteAlpha[5],
78
+ colorSubtleBackgroundLightAlphaSelected: 'transparent',
79
+ colorSubtleBackgroundInverted: 'transparent',
80
+ colorSubtleBackgroundInvertedHover: blackAlpha[10],
81
+ colorSubtleBackgroundInvertedPressed: blackAlpha[30],
82
+ colorSubtleBackgroundInvertedSelected: blackAlpha[20],
83
+ colorTransparentBackground: 'transparent',
84
+ colorTransparentBackgroundHover: 'transparent',
85
+ colorTransparentBackgroundPressed: 'transparent',
86
+ colorTransparentBackgroundSelected: 'transparent',
87
+ colorNeutralBackgroundDisabled: grey[8],
88
+ colorNeutralBackgroundInvertedDisabled: whiteAlpha[10],
89
+ colorNeutralStencil1: grey[34],
90
+ colorNeutralStencil2: grey[20],
91
+ colorBrandBackground: brand[70],
92
+ colorBrandBackgroundHover: brand[80],
93
+ colorBrandBackgroundPressed: brand[40],
94
+ colorBrandBackgroundSelected: brand[60],
95
+ colorCompoundBrandBackground: brand[90],
96
+ colorCompoundBrandBackgroundHover: brand[100],
97
+ colorCompoundBrandBackgroundPressed: brand[80],
98
+ colorBrandBackgroundStatic: brand[80],
99
+ colorBrandBackground2: brand[40],
100
+ colorBrandBackgroundInverted: white,
101
+ colorBrandBackgroundInvertedHover: brand[160],
102
+ colorBrandBackgroundInvertedPressed: brand[140],
103
+ colorBrandBackgroundInvertedSelected: brand[150],
104
+ colorNeutralStrokeAccessible: grey[68],
105
+ colorNeutralStrokeAccessibleHover: grey[74],
106
+ colorNeutralStrokeAccessiblePressed: grey[70],
107
+ colorNeutralStrokeAccessibleSelected: brand[100],
108
+ colorNeutralStroke1: grey[40],
109
+ colorNeutralStroke1Hover: grey[46],
110
+ colorNeutralStroke1Pressed: grey[42],
111
+ colorNeutralStroke1Selected: grey[44],
112
+ colorNeutralStroke2: grey[32],
113
+ colorNeutralStroke3: grey[24],
114
+ colorNeutralStrokeOnBrand: grey[16],
115
+ colorNeutralStrokeOnBrand2: white,
116
+ colorNeutralStrokeOnBrand2Hover: white,
117
+ colorNeutralStrokeOnBrand2Pressed: white,
118
+ colorNeutralStrokeOnBrand2Selected: white,
119
+ colorBrandStroke1: brand[90],
120
+ colorBrandStroke2: brand[50],
121
+ colorCompoundBrandStroke: brand[90],
122
+ colorCompoundBrandStrokeHover: brand[100],
123
+ colorCompoundBrandStrokePressed: brand[80],
124
+ colorNeutralStrokeDisabled: grey[26],
125
+ colorNeutralStrokeInvertedDisabled: whiteAlpha[40],
126
+ colorTransparentStroke: 'transparent',
127
+ colorTransparentStrokeInteractive: 'transparent',
128
+ colorTransparentStrokeDisabled: 'transparent',
129
+ colorStrokeFocus1: black,
130
+ colorStrokeFocus2: white,
131
+ colorNeutralShadowAmbient: 'rgba(0,0,0,0.24)',
132
+ colorNeutralShadowKey: 'rgba(0,0,0,0.28)',
133
+ colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.12)',
134
+ colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.14)',
135
+ colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.40)',
136
+ colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.48)',
137
+ colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',
138
+ colorBrandShadowKey: 'rgba(0,0,0,0.25)' // rgba(0,0,0,0.25) undefined
139
+
140
+ });
141
+ export const colorPaletteTokens = /*#__PURE__*/Object.keys(sharedColors).reduce((acc, sharedColor) => {
142
+ const color = sharedColor.slice(0, 1).toUpperCase() + sharedColor.slice(1);
143
+ const sharedColorTokens = {
144
+ [`colorPalette${color}Background1`]: sharedColors[sharedColor].shade40,
145
+ [`colorPalette${color}Background2`]: sharedColors[sharedColor].shade30,
146
+ [`colorPalette${color}Background3`]: sharedColors[sharedColor].primary,
147
+ [`colorPalette${color}Foreground1`]: sharedColors[sharedColor].tint30,
148
+ [`colorPalette${color}Foreground2`]: sharedColors[sharedColor].tint40,
149
+ [`colorPalette${color}Foreground3`]: sharedColors[sharedColor].tint20,
150
+ [`colorPalette${color}BorderActive`]: sharedColors[sharedColor].tint30,
151
+ [`colorPalette${color}Border1`]: sharedColors[sharedColor].primary,
152
+ [`colorPalette${color}Border2`]: sharedColors[sharedColor].tint20
153
+ };
154
+ return { ...acc,
155
+ ...sharedColorTokens
156
+ };
157
+ }, {});
158
+ //# sourceMappingURL=dark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["alias/dark.ts"],"names":[],"mappings":"AAAA,SAAS,KAAT,EAAgB,UAAhB,EAA4B,IAA5B,EAAkC,KAAlC,EAAyC,UAAzC,EAAqD,YAArD,QAAyE,kBAAzE;AAGA,OAAO,MAAM,mBAAmB,GAAI,KAAD,KAAwC;AACzE,EAAA,uBAAuB,EAAE,KADgD;AAEzE,EAAA,4BAA4B,EAAE,KAF2C;AAGzE,EAAA,8BAA8B,EAAE,KAHyC;AAIzE,EAAA,+BAA+B,EAAE,KAJwC;AAKzE,EAAA,uBAAuB,EAAE,IAAI,CAAC,EAAD,CAL4C;AAMzE,EAAA,4BAA4B,EAAE,KAN2C;AAOzE,EAAA,8BAA8B,EAAE,KAPyC;AAQzE,EAAA,+BAA+B,EAAE,KARwC;AASzE,EAAA,iCAAiC,EAAE,KAAK,CAAC,GAAD,CATiC;AAUzE,EAAA,mCAAmC,EAAE,KAAK,CAAC,EAAD,CAV+B;AAWzE,EAAA,oCAAoC,EAAE,KAAK,CAAC,GAAD,CAX8B;AAYzE,EAAA,uBAAuB,EAAE,IAAI,CAAC,EAAD,CAZ4C;AAazE,EAAA,4BAA4B,EAAE,IAAI,CAAC,EAAD,CAbuC;AAczE,EAAA,8BAA8B,EAAE,IAAI,CAAC,EAAD,CAdqC;AAezE,EAAA,+BAA+B,EAAE,IAAI,CAAC,EAAD,CAfoC;AAgBzE,EAAA,iCAAi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N,KAAqB;AAC7B,QAAM,KAAK,GAAG,WAAW,CAAC,KAAZ,CAAkB,CAAlB,EAAqB,CAArB,EAAwB,WAAxB,KAAwC,WAAW,CAAC,KAAZ,CAAkB,CAAlB,CAAtD;AACA,QAAM,iBAAiB,GAAG;AACxB,KAAC,eAAe,KAAK,aAArB,GAAqC,YAAY,CAAC,WAAD,CAAZ,CAA0B,OADvC;AAExB,KAAC,eAAe,KAAK,aAArB,GAAqC,YAAY,CAAC,WAAD,CAAZ,CAA0B,OAFvC;AAGxB,KAAC,eAAe,KAAK,aAArB,GAAqC,YAAY,CAAC,WAAD,CAAZ,CAA0B,OAHvC;AAIxB,KAAC,eAAe,KAAK,aAArB,GAAqC,YAAY,CAAC,WAAD,CAAZ,CAA0B,MAJvC;AAKxB,KAAC,eAAe,KAAK,aAArB,GAAqC,YAAY,CAAC,WAAD,CAAZ,CAA0B,MALvC;AAMxB,KAAC,eAAe,KAAK,aAArB,GAAqC,YAAY,CAAC,WAAD,CAAZ,CAA0B,MANvC;AAOxB,KAAC,eAAe,KAAK,cAArB,GAAsC,YAAY,CAAC,WAAD,CAAZ,CAA0B,MAPxC;AAQxB,KAAC,eAAe,KAAK,SAArB,GAAiC,YAAY,CAAC,WAAD,CAAZ,CAA0B,OARnC;AASxB,KAAC,eAAe,KAAK,SAArB,GAAiC,YAAY,CAAC,WAAD,CAAZ,CAA0B;AATnC,GAA1B;AAYA,SAAO,EAAE,GAAG,GAAL;AAAU,OAAG;AAAb,GAAP;AACD,CAjBsD,EAiBpD,EAjBoD,CAAhD","sourcesContent":["import { black, blackAlpha, grey, white, whiteAlpha, sharedColors } from '../global/colors';\nimport type { BrandVariants, GlobalSharedColors, ColorTokens, ColorPaletteTokens } from '../types';\n\nexport const generateColorTokens = (brand: BrandVariants): ColorTokens => ({\n colorNeutralForeground1: white, // #ffffff Global.Color.White\n colorNeutralForeground1Hover: white, // #ffffff Global.Color.White\n colorNeutralForeground1Pressed: white, // #ffffff Global.Color.White\n colorNeutralForeground1Selected: white, // #ffffff Global.Color.White\n colorNeutralForeground2: grey[84], // #d6d6d6 Global.Color.Grey.84\n colorNeutralForeground2Hover: white, // #ffffff Global.Color.White\n colorNeutralForeground2Pressed: white, // #ffffff Global.Color.White\n colorNeutralForeground2Selected: white, // #ffffff Global.Color.White\n colorNeutralForeground2BrandHover: brand[100], // #2899f5 Global.Color.Brand.100\n colorNeutralForeground2BrandPressed: brand[90], // #1890f1 Global.Color.Brand.90\n colorNeutralForeground2BrandSelected: brand[100], // #2899f5 Global.Color.Brand.100\n colorNeutralForeground3: grey[68], // #adadad Global.Color.Grey.68\n colorNeutralForeground3Hover: grey[84], // #d6d6d6 Global.Color.Grey.84\n colorNeutralForeground3Pressed: grey[84], // #d6d6d6 Global.Color.Grey.84\n colorNeutralForeground3Selected: grey[84], // #d6d6d6 Global.Color.Grey.84\n colorNeutralForeground3BrandHover: brand[100], // #2899f5 Global.Color.Brand.100\n colorNeutralForeground3BrandPressed: brand[90], // #1890f1 Global.Color.Brand.90\n colorNeutralForeground3BrandSelected: brand[100], // #2899f5 Global.Color.Brand.100\n colorNeutralForeground4: grey[60], // #999999 Global.Color.Grey.60\n colorNeutralForegroundDisabled: grey[36], // #5c5c5c Global.Color.Grey.36\n colorNeutralForegroundInvertedDisabled: whiteAlpha[40], // rgba(255, 255, 255, 0.4) Global.Color.WhiteAlpha.40\n colorBrandForegroundLink: brand[90], // #1890f1 Global.Color.Brand.90\n colorBrandForegroundLinkHover: brand[110], // #3aa0f3 Global.Color.Brand.110\n colorBrandForegroundLinkPressed: brand[100], // #2899f5 Global.Color.Brand.100\n colorBrandForegroundLinkSelected: brand[90], // #1890f1 Global.Color.Brand.90\n colorCompoundBrandForeground1: brand[90], // #1890f1 Global.Color.Brand.90\n colorCompoundBrandForeground1Hover: brand[100], // #2899f5 Global.Color.Brand.100\n colorCompoundBrandForeground1Pressed: brand[80], // #0078d4 Global.Color.Brand.80\n colorBrandForeground1: brand[100], // #2899f5 Global.Color.Brand.100\n colorBrandForeground2: brand[110], // #3aa0f3 Global.Color.Brand.110\n colorNeutralForeground1Static: grey[14], // #242424 Global.Color.Grey.14\n colorNeutralForegroundInverted: white, // #ffffff Global.Color.White\n colorNeutralForegroundInvertedHover: white, // #ffffff Global.Color.White\n colorNeutralForegroundInvertedPressed: white, // #ffffff Global.Color.White\n colorNeutralForegroundInvertedSelected: white, // #ffffff Global.Color.White\n colorNeutralForegroundOnBrand: white, // #ffffff Global.Color.White\n colorNeutralForegroundInvertedLink: white, // #ffffff Global.Color.White\n colorNeutralForegroundInvertedLinkHover: white, // #ffffff Global.Color.White\n colorNeutralForegroundInvertedLinkPressed: white, // #ffffff Global.Color.White\n colorNeutralForegroundInvertedLinkSelected: white, // #ffffff Global.Color.White\n colorBrandForegroundInverted: brand[100], // #2899f5 Global.Color.Brand.100\n colorBrandForegroundInvertedHover: brand[110], // #3aa0f3 Global.Color.Brand.110\n colorBrandForegroundInvertedPressed: brand[100], // #2899f5 Global.Color.Brand.100\n colorBrandForegroundOnLight: brand[80], // #0078d4 Global.Color.Brand.80\n colorBrandForegroundOnLightHover: brand[70], // #106ebe Global.Color.Brand.70\n colorBrandForegroundOnLightPressed: brand[50], // #004c87 Global.Color.Brand.50\n colorBrandForegroundOnLightSelected: brand[60], // #005a9e Global.Color.Brand.60\n colorNeutralBackground1: grey[16], // #292929 Global.Color.Grey.16\n colorNeutralBackground1Hover: grey[24], // #3d3d3d Global.Color.Grey.24\n colorNeutralBackground1Pressed: grey[12], // #1f1f1f Global.Color.Grey.12\n colorNeutralBackground1Selected: grey[22], // #383838 Global.Color.Grey.22\n colorNeutralBackground2: grey[12], // #1f1f1f Global.Color.Grey.12\n colorNeutralBackground2Hover: grey[20], // #333333 Global.Color.Grey.20\n colorNeutralBackground2Pressed: grey[8], // #141414 Global.Color.Grey.8\n colorNeutralBackground2Selected: grey[18], // #2e2e2e Global.Color.Grey.18\n colorNeutralBackground3: grey[8], // #141414 Global.Color.Grey.8\n colorNeutralBackground3Hover: grey[16], // #292929 Global.Color.Grey.16\n colorNeutralBackground3Pressed: grey[4], // #0a0a0a Global.Color.Grey.4\n colorNeutralBackground3Selected: grey[14], // #242424 Global.Color.Grey.14\n colorNeutralBackground4: grey[4], // #0a0a0a Global.Color.Grey.4\n colorNeutralBackground4Hover: grey[12], // #1f1f1f Global.Color.Grey.12\n colorNeutralBackground4Pressed: black, // #000000 Global.Color.Black\n colorNeutralBackground4Selected: grey[10], // #1a1a1a Global.Color.Grey.10\n colorNeutralBackground5: black, // #000000 Global.Color.Black\n colorNeutralBackground5Hover: grey[8], // #141414 Global.Color.Grey.8\n colorNeutralBackground5Pressed: grey[2], // #050505 Global.Color.Grey.2\n colorNeutralBackground5Selected: grey[6], // #0f0f0f Global.Color.Grey.6\n colorNeutralBackground6: grey[20], // #333333 Global.Color.Grey.20\n colorNeutralBackgroundInverted: grey[24], // #3d3d3d Global.Color.Grey.24\n colorSubtleBackground: 'transparent', // transparent undefined\n colorSubtleBackgroundHover: grey[22], // #383838 Global.Color.Grey.22\n colorSubtleBackgroundPressed: grey[18], // #2e2e2e Global.Color.Grey.18\n colorSubtleBackgroundSelected: grey[20], // #333333 Global.Color.Grey.20\n colorSubtleBackgroundLightAlphaHover: whiteAlpha[10], // rgba(255, 255, 255, 0.1) Global.Color.WhiteAlpha.10\n colorSubtleBackgroundLightAlphaPressed: whiteAlpha[5], // rgba(255, 255, 255, 0.05) Global.Color.WhiteAlpha.5\n colorSubtleBackgroundLightAlphaSelected: 'transparent', // transparent undefined\n colorSubtleBackgroundInverted: 'transparent', // transparent undefined\n colorSubtleBackgroundInvertedHover: blackAlpha[10], // rgba(0, 0, 0, 0.1) Global.Color.BlackAlpha.10\n colorSubtleBackgroundInvertedPressed: blackAlpha[30], // rgba(0, 0, 0, 0.3) Global.Color.BlackAlpha.30\n colorSubtleBackgroundInvertedSelected: blackAlpha[20], // rgba(0, 0, 0, 0.2) Global.Color.BlackAlpha.20\n colorTransparentBackground: 'transparent', // transparent undefined\n colorTransparentBackgroundHover: 'transparent', // transparent undefined\n colorTransparentBackgroundPressed: 'transparent', // transparent undefined\n colorTransparentBackgroundSelected: 'transparent', // transparent undefined\n colorNeutralBackgroundDisabled: grey[8], // #141414 Global.Color.Grey.8\n colorNeutralBackgroundInvertedDisabled: whiteAlpha[10], // rgba(255, 255, 255, 0.1) Global.Color.WhiteAlpha.10\n colorNeutralStencil1: grey[34], // #575757 Global.Color.Grey.34\n colorNeutralStencil2: grey[20], // #333333 Global.Color.Grey.20\n colorBrandBackground: brand[70], // #106ebe Global.Color.Brand.70\n colorBrandBackgroundHover: brand[80], // #0078d4 Global.Color.Brand.80\n colorBrandBackgroundPressed: brand[40], // #004578 Global.Color.Brand.40\n colorBrandBackgroundSelected: brand[60], // #005a9e Global.Color.Brand.60\n colorCompoundBrandBackground: brand[90], // #1890f1 Global.Color.Brand.90\n colorCompoundBrandBackgroundHover: brand[100], // #2899f5 Global.Color.Brand.100\n colorCompoundBrandBackgroundPressed: brand[80], // #0078d4 Global.Color.Brand.80\n colorBrandBackgroundStatic: brand[80], // #0078d4 Global.Color.Brand.80\n colorBrandBackground2: brand[40], // #004578 Global.Color.Brand.40\n colorBrandBackgroundInverted: white, // #ffffff Global.Color.White\n colorBrandBackgroundInvertedHover: brand[160], // #eff6fc Global.Color.Brand.160\n colorBrandBackgroundInvertedPressed: brand[140], // #c7e0f4 Global.Color.Brand.140\n colorBrandBackgroundInvertedSelected: brand[150], // #deecf9 Global.Color.Brand.150\n colorNeutralStrokeAccessible: grey[68], // #adadad Global.Color.Grey.68\n colorNeutralStrokeAccessibleHover: grey[74], // #bdbdbd Global.Color.Grey.74\n colorNeutralStrokeAccessiblePressed: grey[70], // #b3b3b3 Global.Color.Grey.70\n colorNeutralStrokeAccessibleSelected: brand[100], // #2899f5 Global.Color.Brand.100\n colorNeutralStroke1: grey[40], // #666666 Global.Color.Grey.40\n colorNeutralStroke1Hover: grey[46], // #757575 Global.Color.Grey.46\n colorNeutralStroke1Pressed: grey[42], // #6b6b6b Global.Color.Grey.42\n colorNeutralStroke1Selected: grey[44], // #707070 Global.Color.Grey.44\n colorNeutralStroke2: grey[32], // #525252 Global.Color.Grey.32\n colorNeutralStroke3: grey[24], // #3d3d3d Global.Color.Grey.24\n colorNeutralStrokeOnBrand: grey[16], // #292929 Global.Color.Grey.16\n colorNeutralStrokeOnBrand2: white, // #ffffff Global.Color.White\n colorNeutralStrokeOnBrand2Hover: white, // #ffffff Global.Color.White\n colorNeutralStrokeOnBrand2Pressed: white, // #ffffff Global.Color.White\n colorNeutralStrokeOnBrand2Selected: white, // #ffffff Global.Color.White\n colorBrandStroke1: brand[90], // #1890f1 Global.Color.Brand.90\n colorBrandStroke2: brand[50], // #004c87 Global.Color.Brand.50\n colorCompoundBrandStroke: brand[90], // #1890f1 Global.Color.Brand.90\n colorCompoundBrandStrokeHover: brand[100], // #2899f5 Global.Color.Brand.100\n colorCompoundBrandStrokePressed: brand[80], // #0078d4 Global.Color.Brand.80\n colorNeutralStrokeDisabled: grey[26], // #424242 Global.Color.Grey.26\n colorNeutralStrokeInvertedDisabled: whiteAlpha[40], // rgba(255, 255, 255, 0.4) Global.Color.WhiteAlpha.40\n colorTransparentStroke: 'transparent', // transparent undefined\n colorTransparentStrokeInteractive: 'transparent', // transparent undefined\n colorTransparentStrokeDisabled: 'transparent', // transparent undefined\n colorStrokeFocus1: black, // #000000 Global.Color.Black\n colorStrokeFocus2: white, // #ffffff Global.Color.White\n colorNeutralShadowAmbient: 'rgba(0,0,0,0.24)', // rgba(0,0,0,0.24) undefined\n colorNeutralShadowKey: 'rgba(0,0,0,0.28)', // rgba(0,0,0,0.28) undefined\n colorNeutralShadowAmbientLighter: 'rgba(0,0,0,0.12)', // rgba(0,0,0,0.12) undefined\n colorNeutralShadowKeyLighter: 'rgba(0,0,0,0.14)', // rgba(0,0,0,0.14) undefined\n colorNeutralShadowAmbientDarker: 'rgba(0,0,0,0.40)', // rgba(0,0,0,0.40) undefined\n colorNeutralShadowKeyDarker: 'rgba(0,0,0,0.48)', // rgba(0,0,0,0.48) undefined\n colorBrandShadowAmbient: 'rgba(0,0,0,0.30)', // rgba(0,0,0,0.30) undefined\n colorBrandShadowKey: 'rgba(0,0,0,0.25)', // rgba(0,0,0,0.25) undefined\n});\n\nexport const colorPaletteTokens: ColorPaletteTokens = (Object.keys(sharedColors) as Array<\n keyof GlobalSharedColors\n>).reduce((acc, sharedColor) => {\n const color = sharedColor.slice(0, 1).toUpperCase() + sharedColor.slice(1);\n const sharedColorTokens = {\n [`colorPalette${color}Background1`]: sharedColors[sharedColor].shade40,\n [`colorPalette${color}Background2`]: sharedColors[sharedColor].shade30,\n [`colorPalette${color}Background3`]: sharedColors[sharedColor].primary,\n [`colorPalette${color}Foreground1`]: sharedColors[sharedColor].tint30,\n [`colorPalette${color}Foreground2`]: sharedColors[sharedColor].tint40,\n [`colorPalette${color}Foreground3`]: sharedColors[sharedColor].tint20,\n [`colorPalette${color}BorderActive`]: sharedColors[sharedColor].tint30,\n [`colorPalette${color}Border1`]: sharedColors[sharedColor].primary,\n [`colorPalette${color}Border2`]: sharedColors[sharedColor].tint20,\n };\n\n return { ...acc, ...sharedColorTokens };\n}, {} as ColorPaletteTokens);\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,3 @@
1
+ import type { ColorTokens, ColorPaletteTokens } from '../types';
2
+ export declare const generateColorTokens: () => ColorTokens;
3
+ export declare const colorPaletteTokens: ColorPaletteTokens;