@fluentui/tokens 1.0.0-alpha.1 → 1.0.0-alpha.11

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