@fluentui/react-theme 9.1.4 → 9.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +94 -1
- package/CHANGELOG.md +21 -2
- package/dist/index.d.ts +178 -412
- package/lib/index.js +1 -5
- package/lib/index.js.map +1 -1
- package/lib-amd/index.js +12 -12
- package/lib-amd/index.js.map +1 -1
- package/lib-commonjs/index.js +12 -26
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +5 -10
- package/lib/alias/darkColor.js +0 -155
- package/lib/alias/darkColor.js.map +0 -1
- package/lib/alias/darkColorPalette.js +0 -44
- package/lib/alias/darkColorPalette.js.map +0 -1
- package/lib/alias/highContrastColor.js +0 -155
- package/lib/alias/highContrastColor.js.map +0 -1
- package/lib/alias/highContrastColorPalette.js +0 -34
- package/lib/alias/highContrastColorPalette.js.map +0 -1
- package/lib/alias/lightColor.js +0 -155
- package/lib/alias/lightColor.js.map +0 -1
- package/lib/alias/lightColorPalette.js +0 -35
- package/lib/alias/lightColorPalette.js.map +0 -1
- package/lib/alias/teamsDarkColor.js +0 -155
- package/lib/alias/teamsDarkColor.js.map +0 -1
- package/lib/global/borderRadius.js +0 -9
- package/lib/global/borderRadius.js.map +0 -1
- package/lib/global/brandColors.js +0 -55
- package/lib/global/brandColors.js.map +0 -1
- package/lib/global/colorPalette.js +0 -41
- package/lib/global/colorPalette.js.map +0 -1
- package/lib/global/colors.js +0 -789
- package/lib/global/colors.js.map +0 -1
- package/lib/global/curves.js +0 -12
- package/lib/global/curves.js.map +0 -1
- package/lib/global/durations.js +0 -10
- package/lib/global/durations.js.map +0 -1
- package/lib/global/fonts.js +0 -38
- package/lib/global/fonts.js.map +0 -1
- package/lib/global/index.js +0 -10
- package/lib/global/index.js.map +0 -1
- package/lib/global/spacings.js +0 -41
- package/lib/global/spacings.js.map +0 -1
- package/lib/global/strokeWidths.js +0 -7
- package/lib/global/strokeWidths.js.map +0 -1
- package/lib/global/typographyStyles.js +0 -110
- package/lib/global/typographyStyles.js.map +0 -1
- package/lib/sharedColorNames.js +0 -9
- package/lib/sharedColorNames.js.map +0 -1
- package/lib/themeToTokensObject.js +0 -19
- package/lib/themeToTokensObject.js.map +0 -1
- package/lib/themes/index.js +0 -3
- package/lib/themes/index.js.map +0 -1
- package/lib/themes/teams/darkTheme.js +0 -4
- package/lib/themes/teams/darkTheme.js.map +0 -1
- package/lib/themes/teams/highContrastTheme.js +0 -3
- package/lib/themes/teams/highContrastTheme.js.map +0 -1
- package/lib/themes/teams/index.js +0 -4
- package/lib/themes/teams/index.js.map +0 -1
- package/lib/themes/teams/lightTheme.js +0 -4
- package/lib/themes/teams/lightTheme.js.map +0 -1
- package/lib/themes/web/darkTheme.js +0 -4
- package/lib/themes/web/darkTheme.js.map +0 -1
- package/lib/themes/web/index.js +0 -3
- package/lib/themes/web/index.js.map +0 -1
- package/lib/themes/web/lightTheme.js +0 -4
- package/lib/themes/web/lightTheme.js.map +0 -1
- package/lib/tokens.js +0 -435
- package/lib/tokens.js.map +0 -1
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/lib/utils/createDarkTheme.js +0 -26
- package/lib/utils/createDarkTheme.js.map +0 -1
- package/lib/utils/createHighContrastTheme.js +0 -26
- package/lib/utils/createHighContrastTheme.js.map +0 -1
- package/lib/utils/createLightTheme.js +0 -26
- package/lib/utils/createLightTheme.js.map +0 -1
- package/lib/utils/createTeamsDarkTheme.js +0 -26
- package/lib/utils/createTeamsDarkTheme.js.map +0 -1
- package/lib/utils/index.js +0 -5
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/shadows.js +0 -11
- package/lib/utils/shadows.js.map +0 -1
- package/lib-amd/alias/darkColor.js +0 -158
- package/lib-amd/alias/darkColor.js.map +0 -1
- package/lib-amd/alias/darkColorPalette.js +0 -47
- package/lib-amd/alias/darkColorPalette.js.map +0 -1
- package/lib-amd/alias/highContrastColor.js +0 -158
- package/lib-amd/alias/highContrastColor.js.map +0 -1
- package/lib-amd/alias/highContrastColorPalette.js +0 -37
- package/lib-amd/alias/highContrastColorPalette.js.map +0 -1
- package/lib-amd/alias/lightColor.js +0 -158
- package/lib-amd/alias/lightColor.js.map +0 -1
- package/lib-amd/alias/lightColorPalette.js +0 -38
- package/lib-amd/alias/lightColorPalette.js.map +0 -1
- package/lib-amd/alias/teamsDarkColor.js +0 -158
- package/lib-amd/alias/teamsDarkColor.js.map +0 -1
- package/lib-amd/global/borderRadius.js +0 -14
- package/lib-amd/global/borderRadius.js.map +0 -1
- package/lib-amd/global/brandColors.js +0 -60
- package/lib-amd/global/brandColors.js.map +0 -1
- package/lib-amd/global/colorPalette.js +0 -45
- package/lib-amd/global/colorPalette.js.map +0 -1
- package/lib-amd/global/colors.js +0 -793
- package/lib-amd/global/colors.js.map +0 -1
- package/lib-amd/global/curves.js +0 -17
- package/lib-amd/global/curves.js.map +0 -1
- package/lib-amd/global/durations.js +0 -15
- package/lib-amd/global/durations.js.map +0 -1
- package/lib-amd/global/fonts.js +0 -45
- package/lib-amd/global/fonts.js.map +0 -1
- package/lib-amd/global/index.js +0 -14
- package/lib-amd/global/index.js.map +0 -1
- package/lib-amd/global/spacings.js +0 -46
- package/lib-amd/global/spacings.js.map +0 -1
- package/lib-amd/global/strokeWidths.js +0 -12
- package/lib-amd/global/strokeWidths.js.map +0 -1
- package/lib-amd/global/typographyStyles.js +0 -113
- package/lib-amd/global/typographyStyles.js.map +0 -1
- package/lib-amd/sharedColorNames.js +0 -64
- package/lib-amd/sharedColorNames.js.map +0 -1
- package/lib-amd/themeToTokensObject.js +0 -24
- package/lib-amd/themeToTokensObject.js.map +0 -1
- package/lib-amd/themes/index.js +0 -7
- package/lib-amd/themes/index.js.map +0 -1
- package/lib-amd/themes/teams/darkTheme.js +0 -7
- package/lib-amd/themes/teams/darkTheme.js.map +0 -1
- package/lib-amd/themes/teams/highContrastTheme.js +0 -7
- package/lib-amd/themes/teams/highContrastTheme.js.map +0 -1
- package/lib-amd/themes/teams/index.js +0 -8
- package/lib-amd/themes/teams/index.js.map +0 -1
- package/lib-amd/themes/teams/lightTheme.js +0 -7
- package/lib-amd/themes/teams/lightTheme.js.map +0 -1
- package/lib-amd/themes/web/darkTheme.js +0 -7
- package/lib-amd/themes/web/darkTheme.js.map +0 -1
- package/lib-amd/themes/web/index.js +0 -7
- package/lib-amd/themes/web/index.js.map +0 -1
- package/lib-amd/themes/web/lightTheme.js +0 -7
- package/lib-amd/themes/web/lightTheme.js.map +0 -1
- package/lib-amd/tokens.js +0 -440
- package/lib-amd/tokens.js.map +0 -1
- package/lib-amd/types.js +0 -5
- package/lib-amd/types.js.map +0 -1
- package/lib-amd/utils/createDarkTheme.js +0 -11
- package/lib-amd/utils/createDarkTheme.js.map +0 -1
- package/lib-amd/utils/createHighContrastTheme.js +0 -11
- package/lib-amd/utils/createHighContrastTheme.js.map +0 -1
- package/lib-amd/utils/createLightTheme.js +0 -11
- package/lib-amd/utils/createLightTheme.js.map +0 -1
- package/lib-amd/utils/createTeamsDarkTheme.js +0 -11
- package/lib-amd/utils/createTeamsDarkTheme.js.map +0 -1
- package/lib-amd/utils/index.js +0 -9
- package/lib-amd/utils/index.js.map +0 -1
- package/lib-amd/utils/shadows.js +0 -19
- package/lib-amd/utils/shadows.js.map +0 -1
- package/lib-commonjs/alias/darkColor.js +0 -165
- package/lib-commonjs/alias/darkColor.js.map +0 -1
- package/lib-commonjs/alias/darkColorPalette.js +0 -53
- package/lib-commonjs/alias/darkColorPalette.js.map +0 -1
- package/lib-commonjs/alias/highContrastColor.js +0 -165
- package/lib-commonjs/alias/highContrastColor.js.map +0 -1
- package/lib-commonjs/alias/highContrastColorPalette.js +0 -43
- package/lib-commonjs/alias/highContrastColorPalette.js.map +0 -1
- package/lib-commonjs/alias/lightColor.js +0 -165
- package/lib-commonjs/alias/lightColor.js.map +0 -1
- package/lib-commonjs/alias/lightColorPalette.js +0 -44
- package/lib-commonjs/alias/lightColorPalette.js.map +0 -1
- package/lib-commonjs/alias/teamsDarkColor.js +0 -165
- package/lib-commonjs/alias/teamsDarkColor.js.map +0 -1
- package/lib-commonjs/global/borderRadius.js +0 -15
- package/lib-commonjs/global/borderRadius.js.map +0 -1
- package/lib-commonjs/global/brandColors.js +0 -61
- package/lib-commonjs/global/brandColors.js.map +0 -1
- package/lib-commonjs/global/colorPalette.js +0 -49
- package/lib-commonjs/global/colorPalette.js.map +0 -1
- package/lib-commonjs/global/colors.js +0 -796
- package/lib-commonjs/global/colors.js.map +0 -1
- package/lib-commonjs/global/curves.js +0 -18
- package/lib-commonjs/global/curves.js.map +0 -1
- package/lib-commonjs/global/durations.js +0 -16
- package/lib-commonjs/global/durations.js.map +0 -1
- package/lib-commonjs/global/fonts.js +0 -44
- package/lib-commonjs/global/fonts.js.map +0 -1
- package/lib-commonjs/global/index.js +0 -26
- package/lib-commonjs/global/index.js.map +0 -1
- package/lib-commonjs/global/spacings.js +0 -47
- package/lib-commonjs/global/spacings.js.map +0 -1
- package/lib-commonjs/global/strokeWidths.js +0 -13
- package/lib-commonjs/global/strokeWidths.js.map +0 -1
- package/lib-commonjs/global/typographyStyles.js +0 -118
- package/lib-commonjs/global/typographyStyles.js.map +0 -1
- package/lib-commonjs/sharedColorNames.js +0 -16
- package/lib-commonjs/sharedColorNames.js.map +0 -1
- package/lib-commonjs/themeToTokensObject.js +0 -28
- package/lib-commonjs/themeToTokensObject.js.map +0 -1
- package/lib-commonjs/themes/index.js +0 -12
- package/lib-commonjs/themes/index.js.map +0 -1
- package/lib-commonjs/themes/teams/darkTheme.js +0 -13
- package/lib-commonjs/themes/teams/darkTheme.js.map +0 -1
- package/lib-commonjs/themes/teams/highContrastTheme.js +0 -11
- package/lib-commonjs/themes/teams/highContrastTheme.js.map +0 -1
- package/lib-commonjs/themes/teams/index.js +0 -14
- package/lib-commonjs/themes/teams/index.js.map +0 -1
- package/lib-commonjs/themes/teams/lightTheme.js +0 -13
- package/lib-commonjs/themes/teams/lightTheme.js.map +0 -1
- package/lib-commonjs/themes/web/darkTheme.js +0 -13
- package/lib-commonjs/themes/web/darkTheme.js.map +0 -1
- package/lib-commonjs/themes/web/index.js +0 -12
- package/lib-commonjs/themes/web/index.js.map +0 -1
- package/lib-commonjs/themes/web/lightTheme.js +0 -13
- package/lib-commonjs/themes/web/lightTheme.js.map +0 -1
- package/lib-commonjs/tokens.js +0 -441
- package/lib-commonjs/tokens.js.map +0 -1
- package/lib-commonjs/types.js +0 -6
- package/lib-commonjs/types.js.map +0 -1
- package/lib-commonjs/utils/createDarkTheme.js +0 -42
- package/lib-commonjs/utils/createDarkTheme.js.map +0 -1
- package/lib-commonjs/utils/createHighContrastTheme.js +0 -42
- package/lib-commonjs/utils/createHighContrastTheme.js.map +0 -1
- package/lib-commonjs/utils/createLightTheme.js +0 -42
- package/lib-commonjs/utils/createLightTheme.js.map +0 -1
- package/lib-commonjs/utils/createTeamsDarkTheme.js +0 -42
- package/lib-commonjs/utils/createTeamsDarkTheme.js.map +0 -1
- package/lib-commonjs/utils/index.js +0 -16
- package/lib-commonjs/utils/index.js.map +0 -1
- package/lib-commonjs/utils/shadows.js +0 -20
- package/lib-commonjs/utils/shadows.js.map +0 -1
package/dist/index.d.ts
CHANGED
@@ -1,440 +1,206 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
};
|
1
|
+
import { BorderRadiusTokens } from '@fluentui/tokens';
|
2
|
+
import { Brands } from '@fluentui/tokens';
|
3
|
+
import { BrandVariants } from '@fluentui/tokens';
|
4
|
+
import { ColorPaletteAnchor } from '@fluentui/tokens';
|
5
|
+
import { ColorPaletteBeige } from '@fluentui/tokens';
|
6
|
+
import { ColorPaletteBerry } from '@fluentui/tokens';
|
7
|
+
import { ColorPaletteBlue } from '@fluentui/tokens';
|
8
|
+
import { ColorPaletteBrass } from '@fluentui/tokens';
|
9
|
+
import { ColorPaletteBrown } from '@fluentui/tokens';
|
10
|
+
import { ColorPaletteCornflower } from '@fluentui/tokens';
|
11
|
+
import { ColorPaletteCranberry } from '@fluentui/tokens';
|
12
|
+
import { ColorPaletteDarkGreen } from '@fluentui/tokens';
|
13
|
+
import { ColorPaletteDarkOrange } from '@fluentui/tokens';
|
14
|
+
import { ColorPaletteDarkRed } from '@fluentui/tokens';
|
15
|
+
import { ColorPaletteForest } from '@fluentui/tokens';
|
16
|
+
import { ColorPaletteGold } from '@fluentui/tokens';
|
17
|
+
import { ColorPaletteGrape } from '@fluentui/tokens';
|
18
|
+
import { ColorPaletteGreen } from '@fluentui/tokens';
|
19
|
+
import { ColorPaletteLavender } from '@fluentui/tokens';
|
20
|
+
import { ColorPaletteLightGreen } from '@fluentui/tokens';
|
21
|
+
import { ColorPaletteLightTeal } from '@fluentui/tokens';
|
22
|
+
import { ColorPaletteLilac } from '@fluentui/tokens';
|
23
|
+
import { ColorPaletteMagenta } from '@fluentui/tokens';
|
24
|
+
import { ColorPaletteMarigold } from '@fluentui/tokens';
|
25
|
+
import { ColorPaletteMink } from '@fluentui/tokens';
|
26
|
+
import { ColorPaletteNavy } from '@fluentui/tokens';
|
27
|
+
import { ColorPalettePeach } from '@fluentui/tokens';
|
28
|
+
import { ColorPalettePink } from '@fluentui/tokens';
|
29
|
+
import { ColorPalettePlatinum } from '@fluentui/tokens';
|
30
|
+
import { ColorPalettePlum } from '@fluentui/tokens';
|
31
|
+
import { ColorPalettePumpkin } from '@fluentui/tokens';
|
32
|
+
import { ColorPalettePurple } from '@fluentui/tokens';
|
33
|
+
import { ColorPaletteRed } from '@fluentui/tokens';
|
34
|
+
import { ColorPaletteRoyalBlue } from '@fluentui/tokens';
|
35
|
+
import { ColorPaletteSeafoam } from '@fluentui/tokens';
|
36
|
+
import { ColorPaletteSteel } from '@fluentui/tokens';
|
37
|
+
import { ColorPaletteTeal } from '@fluentui/tokens';
|
38
|
+
import { ColorPaletteTokens } from '@fluentui/tokens';
|
39
|
+
import { ColorPaletteYellow } from '@fluentui/tokens';
|
40
|
+
import { ColorTokens } from '@fluentui/tokens';
|
41
|
+
import { createDarkTheme } from '@fluentui/tokens';
|
42
|
+
import { createHighContrastTheme } from '@fluentui/tokens';
|
43
|
+
import { createLightTheme } from '@fluentui/tokens';
|
44
|
+
import { createTeamsDarkTheme } from '@fluentui/tokens';
|
45
|
+
import { CurveTokens } from '@fluentui/tokens';
|
46
|
+
import { DurationTokens } from '@fluentui/tokens';
|
47
|
+
import { FontFamilyTokens } from '@fluentui/tokens';
|
48
|
+
import { FontSizeTokens } from '@fluentui/tokens';
|
49
|
+
import { FontWeightTokens } from '@fluentui/tokens';
|
50
|
+
import { HorizontalSpacingTokens } from '@fluentui/tokens';
|
51
|
+
import { LineHeightTokens } from '@fluentui/tokens';
|
52
|
+
import { PartialTheme } from '@fluentui/tokens';
|
53
|
+
import { ShadowBrandTokens } from '@fluentui/tokens';
|
54
|
+
import { ShadowTokens } from '@fluentui/tokens';
|
55
|
+
import { SpacingTokens } from '@fluentui/tokens';
|
56
|
+
import { StrokeWidthTokens } from '@fluentui/tokens';
|
57
|
+
import { teamsDarkTheme } from '@fluentui/tokens';
|
58
|
+
import { teamsHighContrastTheme } from '@fluentui/tokens';
|
59
|
+
import { teamsLightTheme } from '@fluentui/tokens';
|
60
|
+
import { Theme } from '@fluentui/tokens';
|
61
|
+
import { themeToTokensObject } from '@fluentui/tokens';
|
62
|
+
import { tokens } from '@fluentui/tokens';
|
63
|
+
import { TypographyStyle } from '@fluentui/tokens';
|
64
|
+
import { TypographyStyles } from '@fluentui/tokens';
|
65
|
+
import { typographyStyles } from '@fluentui/tokens';
|
66
|
+
import { VerticalSpacingTokens } from '@fluentui/tokens';
|
67
|
+
import { webDarkTheme } from '@fluentui/tokens';
|
68
|
+
import { webLightTheme } from '@fluentui/tokens';
|
9
69
|
|
10
|
-
export
|
70
|
+
export { BorderRadiusTokens }
|
11
71
|
|
12
|
-
export
|
72
|
+
export { Brands }
|
13
73
|
|
14
|
-
export
|
74
|
+
export { BrandVariants }
|
15
75
|
|
16
|
-
export
|
76
|
+
export { ColorPaletteAnchor }
|
17
77
|
|
18
|
-
export
|
78
|
+
export { ColorPaletteBeige }
|
19
79
|
|
20
|
-
export
|
80
|
+
export { ColorPaletteBerry }
|
21
81
|
|
22
|
-
export
|
82
|
+
export { ColorPaletteBlue }
|
23
83
|
|
24
|
-
export
|
84
|
+
export { ColorPaletteBrass }
|
25
85
|
|
26
|
-
export
|
86
|
+
export { ColorPaletteBrown }
|
27
87
|
|
28
|
-
export
|
88
|
+
export { ColorPaletteCornflower }
|
29
89
|
|
30
|
-
export
|
90
|
+
export { ColorPaletteCranberry }
|
31
91
|
|
32
|
-
export
|
92
|
+
export { ColorPaletteDarkGreen }
|
33
93
|
|
34
|
-
export
|
94
|
+
export { ColorPaletteDarkOrange }
|
35
95
|
|
36
|
-
export
|
96
|
+
export { ColorPaletteDarkRed }
|
37
97
|
|
38
|
-
export
|
98
|
+
export { ColorPaletteForest }
|
39
99
|
|
40
|
-
export
|
100
|
+
export { ColorPaletteGold }
|
41
101
|
|
42
|
-
export
|
102
|
+
export { ColorPaletteGrape }
|
43
103
|
|
44
|
-
export
|
104
|
+
export { ColorPaletteGreen }
|
45
105
|
|
46
|
-
export
|
106
|
+
export { ColorPaletteLavender }
|
47
107
|
|
48
|
-
export
|
108
|
+
export { ColorPaletteLightGreen }
|
49
109
|
|
50
|
-
export
|
110
|
+
export { ColorPaletteLightTeal }
|
51
111
|
|
52
|
-
export
|
112
|
+
export { ColorPaletteLilac }
|
53
113
|
|
54
|
-
export
|
114
|
+
export { ColorPaletteMagenta }
|
55
115
|
|
56
|
-
export
|
116
|
+
export { ColorPaletteMarigold }
|
57
117
|
|
58
|
-
export
|
118
|
+
export { ColorPaletteMink }
|
59
119
|
|
60
|
-
export
|
61
|
-
|
62
|
-
export
|
63
|
-
|
64
|
-
export
|
65
|
-
|
66
|
-
export
|
67
|
-
|
68
|
-
export
|
69
|
-
|
70
|
-
export
|
71
|
-
|
72
|
-
export
|
73
|
-
|
74
|
-
export
|
75
|
-
|
76
|
-
export
|
77
|
-
|
78
|
-
export
|
79
|
-
|
80
|
-
export
|
81
|
-
|
82
|
-
export
|
83
|
-
|
84
|
-
export
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
colorNeutralBackground1Pressed: string;
|
146
|
-
colorNeutralBackground1Selected: string;
|
147
|
-
colorNeutralBackground2: string;
|
148
|
-
colorNeutralBackground2Hover: string;
|
149
|
-
colorNeutralBackground2Pressed: string;
|
150
|
-
colorNeutralBackground2Selected: string;
|
151
|
-
colorNeutralBackground3: string;
|
152
|
-
colorNeutralBackground3Hover: string;
|
153
|
-
colorNeutralBackground3Pressed: string;
|
154
|
-
colorNeutralBackground3Selected: string;
|
155
|
-
colorNeutralBackground4: string;
|
156
|
-
colorNeutralBackground4Hover: string;
|
157
|
-
colorNeutralBackground4Pressed: string;
|
158
|
-
colorNeutralBackground4Selected: string;
|
159
|
-
colorNeutralBackground5: string;
|
160
|
-
colorNeutralBackground5Hover: string;
|
161
|
-
colorNeutralBackground5Pressed: string;
|
162
|
-
colorNeutralBackground5Selected: string;
|
163
|
-
colorNeutralBackground6: string;
|
164
|
-
colorNeutralBackgroundStatic: string;
|
165
|
-
colorNeutralBackgroundInverted: string;
|
166
|
-
colorSubtleBackground: string;
|
167
|
-
colorSubtleBackgroundHover: string;
|
168
|
-
colorSubtleBackgroundPressed: string;
|
169
|
-
colorSubtleBackgroundSelected: string;
|
170
|
-
colorSubtleBackgroundLightAlphaHover: string;
|
171
|
-
colorSubtleBackgroundLightAlphaPressed: string;
|
172
|
-
colorSubtleBackgroundLightAlphaSelected: string;
|
173
|
-
colorSubtleBackgroundInverted: string;
|
174
|
-
colorSubtleBackgroundInvertedHover: string;
|
175
|
-
colorSubtleBackgroundInvertedPressed: string;
|
176
|
-
colorSubtleBackgroundInvertedSelected: string;
|
177
|
-
colorTransparentBackground: string;
|
178
|
-
colorTransparentBackgroundHover: string;
|
179
|
-
colorTransparentBackgroundPressed: string;
|
180
|
-
colorTransparentBackgroundSelected: string;
|
181
|
-
colorNeutralBackgroundDisabled: string;
|
182
|
-
colorNeutralBackgroundInvertedDisabled: string;
|
183
|
-
colorNeutralStencil1: string;
|
184
|
-
colorNeutralStencil2: string;
|
185
|
-
colorNeutralStencil1Alpha: string;
|
186
|
-
colorNeutralStencil2Alpha: string;
|
187
|
-
colorBackgroundOverlay: string;
|
188
|
-
colorScrollbarOverlay: string;
|
189
|
-
colorBrandBackground: string;
|
190
|
-
colorBrandBackgroundHover: string;
|
191
|
-
colorBrandBackgroundPressed: string;
|
192
|
-
colorBrandBackgroundSelected: string;
|
193
|
-
colorCompoundBrandBackground: string;
|
194
|
-
colorCompoundBrandBackgroundHover: string;
|
195
|
-
colorCompoundBrandBackgroundPressed: string;
|
196
|
-
colorBrandBackgroundStatic: string;
|
197
|
-
colorBrandBackground2: string;
|
198
|
-
colorBrandBackgroundInverted: string;
|
199
|
-
colorBrandBackgroundInvertedHover: string;
|
200
|
-
colorBrandBackgroundInvertedPressed: string;
|
201
|
-
colorBrandBackgroundInvertedSelected: string;
|
202
|
-
colorNeutralStrokeAccessible: string;
|
203
|
-
colorNeutralStrokeAccessibleHover: string;
|
204
|
-
colorNeutralStrokeAccessiblePressed: string;
|
205
|
-
colorNeutralStrokeAccessibleSelected: string;
|
206
|
-
colorNeutralStroke1: string;
|
207
|
-
colorNeutralStroke1Hover: string;
|
208
|
-
colorNeutralStroke1Pressed: string;
|
209
|
-
colorNeutralStroke1Selected: string;
|
210
|
-
colorNeutralStroke2: string;
|
211
|
-
colorNeutralStroke3: string;
|
212
|
-
colorNeutralStrokeOnBrand: string;
|
213
|
-
colorNeutralStrokeOnBrand2: string;
|
214
|
-
colorNeutralStrokeOnBrand2Hover: string;
|
215
|
-
colorNeutralStrokeOnBrand2Pressed: string;
|
216
|
-
colorNeutralStrokeOnBrand2Selected: string;
|
217
|
-
colorBrandStroke1: string;
|
218
|
-
colorBrandStroke2: string;
|
219
|
-
colorCompoundBrandStroke: string;
|
220
|
-
colorCompoundBrandStrokeHover: string;
|
221
|
-
colorCompoundBrandStrokePressed: string;
|
222
|
-
colorNeutralStrokeDisabled: string;
|
223
|
-
colorNeutralStrokeInvertedDisabled: string;
|
224
|
-
colorTransparentStroke: string;
|
225
|
-
colorTransparentStrokeInteractive: string;
|
226
|
-
colorTransparentStrokeDisabled: string;
|
227
|
-
colorStrokeFocus1: string;
|
228
|
-
colorStrokeFocus2: string;
|
229
|
-
colorNeutralShadowAmbient: string;
|
230
|
-
colorNeutralShadowKey: string;
|
231
|
-
colorNeutralShadowAmbientLighter: string;
|
232
|
-
colorNeutralShadowKeyLighter: string;
|
233
|
-
colorNeutralShadowAmbientDarker: string;
|
234
|
-
colorNeutralShadowKeyDarker: string;
|
235
|
-
colorBrandShadowAmbient: string;
|
236
|
-
colorBrandShadowKey: string;
|
237
|
-
};
|
238
|
-
|
239
|
-
export declare const createDarkTheme: (brand: BrandVariants) => Theme;
|
240
|
-
|
241
|
-
export declare const createHighContrastTheme: () => Theme;
|
242
|
-
|
243
|
-
export declare const createLightTheme: (brand: BrandVariants) => Theme;
|
244
|
-
|
245
|
-
export declare const createTeamsDarkTheme: (brand: BrandVariants) => Theme;
|
246
|
-
|
247
|
-
export declare type CurveTokens = {
|
248
|
-
curveAccelerateMax: string;
|
249
|
-
curveAccelerateMid: string;
|
250
|
-
curveAccelerateMin: string;
|
251
|
-
curveDecelerateMax: string;
|
252
|
-
curveDecelerateMid: string;
|
253
|
-
curveDecelerateMin: string;
|
254
|
-
curveEasyEaseMax: string;
|
255
|
-
curveEasyEase: string;
|
256
|
-
curveLinear: string;
|
257
|
-
};
|
258
|
-
|
259
|
-
export declare type DurationTokens = {
|
260
|
-
durationUltraFast: string;
|
261
|
-
durationFaster: string;
|
262
|
-
durationFast: string;
|
263
|
-
durationNormal: string;
|
264
|
-
durationSlow: string;
|
265
|
-
durationSlower: string;
|
266
|
-
durationUltraSlow: string;
|
267
|
-
};
|
268
|
-
|
269
|
-
export declare type FontFamilyTokens = {
|
270
|
-
fontFamilyBase: string;
|
271
|
-
fontFamilyMonospace: string;
|
272
|
-
fontFamilyNumeric: string;
|
273
|
-
};
|
274
|
-
|
275
|
-
export declare type FontSizeTokens = {
|
276
|
-
fontSizeBase100: string;
|
277
|
-
fontSizeBase200: string;
|
278
|
-
fontSizeBase300: string;
|
279
|
-
fontSizeBase400: string;
|
280
|
-
fontSizeBase500: string;
|
281
|
-
fontSizeBase600: string;
|
282
|
-
fontSizeHero700: string;
|
283
|
-
fontSizeHero800: string;
|
284
|
-
fontSizeHero900: string;
|
285
|
-
fontSizeHero1000: string;
|
286
|
-
};
|
287
|
-
|
288
|
-
export declare type FontWeightTokens = {
|
289
|
-
fontWeightRegular: number;
|
290
|
-
fontWeightMedium: number;
|
291
|
-
fontWeightSemibold: number;
|
292
|
-
fontWeightBold: number;
|
293
|
-
};
|
294
|
-
|
295
|
-
export declare type HorizontalSpacingTokens = {
|
296
|
-
spacingHorizontalNone: string;
|
297
|
-
spacingHorizontalXXS: string;
|
298
|
-
spacingHorizontalXS: string;
|
299
|
-
spacingHorizontalSNudge: string;
|
300
|
-
spacingHorizontalS: string;
|
301
|
-
spacingHorizontalMNudge: string;
|
302
|
-
spacingHorizontalM: string;
|
303
|
-
spacingHorizontalL: string;
|
304
|
-
spacingHorizontalXL: string;
|
305
|
-
spacingHorizontalXXL: string;
|
306
|
-
spacingHorizontalXXXL: string;
|
307
|
-
};
|
308
|
-
|
309
|
-
export declare type LineHeightTokens = {
|
310
|
-
lineHeightBase100: string;
|
311
|
-
lineHeightBase200: string;
|
312
|
-
lineHeightBase300: string;
|
313
|
-
lineHeightBase400: string;
|
314
|
-
lineHeightBase500: string;
|
315
|
-
lineHeightBase600: string;
|
316
|
-
lineHeightHero700: string;
|
317
|
-
lineHeightHero800: string;
|
318
|
-
lineHeightHero900: string;
|
319
|
-
lineHeightHero1000: string;
|
320
|
-
};
|
321
|
-
|
322
|
-
export declare type PartialTheme = Partial<Theme>;
|
323
|
-
|
324
|
-
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>;
|
325
|
-
|
326
|
-
export declare type ShadowBrandTokens = {
|
327
|
-
shadow2Brand: string;
|
328
|
-
shadow4Brand: string;
|
329
|
-
shadow8Brand: string;
|
330
|
-
shadow16Brand: string;
|
331
|
-
shadow28Brand: string;
|
332
|
-
shadow64Brand: string;
|
333
|
-
};
|
334
|
-
|
335
|
-
/**
|
336
|
-
* Design tokens for shadow levels
|
337
|
-
*/
|
338
|
-
export declare type ShadowTokens = {
|
339
|
-
shadow2: string;
|
340
|
-
shadow4: string;
|
341
|
-
shadow8: string;
|
342
|
-
shadow16: string;
|
343
|
-
shadow28: string;
|
344
|
-
shadow64: string;
|
345
|
-
};
|
346
|
-
|
347
|
-
export declare type SpacingTokens = {
|
348
|
-
none: string;
|
349
|
-
xxs: string;
|
350
|
-
xs: string;
|
351
|
-
sNudge: string;
|
352
|
-
s: string;
|
353
|
-
mNudge: string;
|
354
|
-
m: string;
|
355
|
-
l: string;
|
356
|
-
xl: string;
|
357
|
-
xxl: string;
|
358
|
-
xxxl: string;
|
359
|
-
};
|
360
|
-
|
361
|
-
declare type StatusColorPaletteTokens = Record<ColorPaletteRed | ColorPaletteGreen | ColorPaletteDarkOrange | ColorPaletteYellow | ColorPaletteBerry | ColorPaletteMarigold | ColorPaletteLightGreen, string>;
|
362
|
-
|
363
|
-
export declare type StrokeWidthTokens = {
|
364
|
-
strokeWidthThin: string;
|
365
|
-
strokeWidthThick: string;
|
366
|
-
strokeWidthThicker: string;
|
367
|
-
strokeWidthThickest: string;
|
368
|
-
};
|
369
|
-
|
370
|
-
export declare const teamsDarkTheme: Theme;
|
371
|
-
|
372
|
-
export declare const teamsHighContrastTheme: Theme;
|
373
|
-
|
374
|
-
export declare const teamsLightTheme: Theme;
|
375
|
-
|
376
|
-
export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & HorizontalSpacingTokens & VerticalSpacingTokens & DurationTokens & CurveTokens & ShadowTokens & ShadowBrandTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens;
|
377
|
-
|
378
|
-
/**
|
379
|
-
* Programmatically generates a tokens to css variables mapping object from the keys in a theme.
|
380
|
-
* This helps with ease of use as a user of a custom theme does not have to manually construct this object, but it could
|
381
|
-
* affect tree-shaking since bundlers do not know the shape of the output.
|
382
|
-
*
|
383
|
-
* @param theme - Theme from which to get the keys to generate the tokens to css variables mapping object
|
384
|
-
* @returns Tokens to css variables mapping object corresponding to the passed theme
|
385
|
-
*/
|
386
|
-
export declare function themeToTokensObject<TTheme extends Theme>(theme: TTheme): Record<keyof TTheme, string>;
|
387
|
-
|
388
|
-
export declare const tokens: Record<keyof Theme, string>;
|
389
|
-
|
390
|
-
export declare type TypographyStyle = {
|
391
|
-
fontFamily: string;
|
392
|
-
fontSize: string;
|
393
|
-
fontWeight: string;
|
394
|
-
lineHeight: string;
|
395
|
-
};
|
396
|
-
|
397
|
-
export declare type TypographyStyles = {
|
398
|
-
body1: TypographyStyle;
|
399
|
-
body1Strong: TypographyStyle;
|
400
|
-
body1Stronger: TypographyStyle;
|
401
|
-
body2: TypographyStyle;
|
402
|
-
caption1: TypographyStyle;
|
403
|
-
caption1Strong: TypographyStyle;
|
404
|
-
caption1Stronger: TypographyStyle;
|
405
|
-
caption2: TypographyStyle;
|
406
|
-
caption2Strong: TypographyStyle;
|
407
|
-
subtitle1: TypographyStyle;
|
408
|
-
subtitle2: TypographyStyle;
|
409
|
-
subtitle2Stronger: TypographyStyle;
|
410
|
-
title1: TypographyStyle;
|
411
|
-
title2: TypographyStyle;
|
412
|
-
title3: TypographyStyle;
|
413
|
-
largeTitle: TypographyStyle;
|
414
|
-
display: TypographyStyle;
|
415
|
-
};
|
416
|
-
|
417
|
-
/**
|
418
|
-
* Global typography styles (fontSize, fontWeight, and lineHeight)
|
419
|
-
*/
|
420
|
-
export declare const typographyStyles: TypographyStyles;
|
421
|
-
|
422
|
-
export declare type VerticalSpacingTokens = {
|
423
|
-
spacingVerticalNone: string;
|
424
|
-
spacingVerticalXXS: string;
|
425
|
-
spacingVerticalXS: string;
|
426
|
-
spacingVerticalSNudge: string;
|
427
|
-
spacingVerticalS: string;
|
428
|
-
spacingVerticalMNudge: string;
|
429
|
-
spacingVerticalM: string;
|
430
|
-
spacingVerticalL: string;
|
431
|
-
spacingVerticalXL: string;
|
432
|
-
spacingVerticalXXL: string;
|
433
|
-
spacingVerticalXXXL: string;
|
434
|
-
};
|
435
|
-
|
436
|
-
export declare const webDarkTheme: Theme;
|
437
|
-
|
438
|
-
export declare const webLightTheme: Theme;
|
120
|
+
export { ColorPaletteNavy }
|
121
|
+
|
122
|
+
export { ColorPalettePeach }
|
123
|
+
|
124
|
+
export { ColorPalettePink }
|
125
|
+
|
126
|
+
export { ColorPalettePlatinum }
|
127
|
+
|
128
|
+
export { ColorPalettePlum }
|
129
|
+
|
130
|
+
export { ColorPalettePumpkin }
|
131
|
+
|
132
|
+
export { ColorPalettePurple }
|
133
|
+
|
134
|
+
export { ColorPaletteRed }
|
135
|
+
|
136
|
+
export { ColorPaletteRoyalBlue }
|
137
|
+
|
138
|
+
export { ColorPaletteSeafoam }
|
139
|
+
|
140
|
+
export { ColorPaletteSteel }
|
141
|
+
|
142
|
+
export { ColorPaletteTeal }
|
143
|
+
|
144
|
+
export { ColorPaletteTokens }
|
145
|
+
|
146
|
+
export { ColorPaletteYellow }
|
147
|
+
|
148
|
+
export { ColorTokens }
|
149
|
+
|
150
|
+
export { createDarkTheme }
|
151
|
+
|
152
|
+
export { createHighContrastTheme }
|
153
|
+
|
154
|
+
export { createLightTheme }
|
155
|
+
|
156
|
+
export { createTeamsDarkTheme }
|
157
|
+
|
158
|
+
export { CurveTokens }
|
159
|
+
|
160
|
+
export { DurationTokens }
|
161
|
+
|
162
|
+
export { FontFamilyTokens }
|
163
|
+
|
164
|
+
export { FontSizeTokens }
|
165
|
+
|
166
|
+
export { FontWeightTokens }
|
167
|
+
|
168
|
+
export { HorizontalSpacingTokens }
|
169
|
+
|
170
|
+
export { LineHeightTokens }
|
171
|
+
|
172
|
+
export { PartialTheme }
|
173
|
+
|
174
|
+
export { ShadowBrandTokens }
|
175
|
+
|
176
|
+
export { ShadowTokens }
|
177
|
+
|
178
|
+
export { SpacingTokens }
|
179
|
+
|
180
|
+
export { StrokeWidthTokens }
|
181
|
+
|
182
|
+
export { teamsDarkTheme }
|
183
|
+
|
184
|
+
export { teamsHighContrastTheme }
|
185
|
+
|
186
|
+
export { teamsLightTheme }
|
187
|
+
|
188
|
+
export { Theme }
|
189
|
+
|
190
|
+
export { themeToTokensObject }
|
191
|
+
|
192
|
+
export { tokens }
|
193
|
+
|
194
|
+
export { TypographyStyle }
|
195
|
+
|
196
|
+
export { TypographyStyles }
|
197
|
+
|
198
|
+
export { typographyStyles }
|
199
|
+
|
200
|
+
export { VerticalSpacingTokens }
|
201
|
+
|
202
|
+
export { webDarkTheme }
|
203
|
+
|
204
|
+
export { webLightTheme }
|
439
205
|
|
440
206
|
export { }
|
package/lib/index.js
CHANGED
@@ -1,6 +1,2 @@
|
|
1
|
-
export { teamsDarkTheme, teamsHighContrastTheme, teamsLightTheme, webDarkTheme, webLightTheme } from '
|
2
|
-
export { createDarkTheme, createHighContrastTheme, createLightTheme, createTeamsDarkTheme } from './utils/index';
|
3
|
-
export { themeToTokensObject } from './themeToTokensObject';
|
4
|
-
export { tokens } from './tokens';
|
5
|
-
export { typographyStyles } from './global/index';
|
1
|
+
export { teamsDarkTheme, teamsHighContrastTheme, teamsLightTheme, webDarkTheme, webLightTheme, createDarkTheme, createHighContrastTheme, createLightTheme, createTeamsDarkTheme, themeToTokensObject, tokens, typographyStyles } from '@fluentui/tokens';
|
6
2
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"names":["teamsDarkTheme","teamsHighContrastTheme","teamsLightTheme","webDarkTheme","webLightTheme","createDarkTheme","createHighContrastTheme","createLightTheme","createTeamsDarkTheme","themeToTokensObject","tokens","typographyStyles"],"sources":["../src/packages/react-components/react-theme/src/index.ts"],"sourcesContent":["export {\n teamsDarkTheme,\n teamsHighContrastTheme,\n teamsLightTheme,\n webDarkTheme,\n webLightTheme,\n createDarkTheme,\n createHighContrastTheme,\n createLightTheme,\n createTeamsDarkTheme,\n themeToTokensObject,\n tokens,\n typographyStyles,\n} from '@fluentui/tokens';\n\nexport type {\n Brands,\n BrandVariants,\n FontSizeTokens,\n FontWeightTokens,\n LineHeightTokens,\n BorderRadiusTokens,\n StrokeWidthTokens,\n SpacingTokens,\n HorizontalSpacingTokens,\n VerticalSpacingTokens,\n DurationTokens,\n CurveTokens,\n ShadowTokens,\n ShadowBrandTokens,\n FontFamilyTokens,\n ColorPaletteTokens,\n ColorPaletteDarkRed,\n ColorPaletteCranberry,\n ColorPaletteRed,\n ColorPaletteDarkOrange,\n ColorPalettePumpkin,\n ColorPalettePeach,\n ColorPaletteMarigold,\n ColorPaletteYellow,\n ColorPaletteGold,\n ColorPaletteBrass,\n ColorPaletteBrown,\n ColorPaletteForest,\n ColorPaletteSeafoam,\n ColorPaletteGreen,\n ColorPaletteLightGreen,\n ColorPaletteDarkGreen,\n ColorPaletteLightTeal,\n ColorPaletteTeal,\n ColorPaletteSteel,\n ColorPaletteBlue,\n ColorPaletteRoyalBlue,\n ColorPaletteCornflower,\n ColorPaletteNavy,\n ColorPaletteLavender,\n ColorPalettePurple,\n ColorPaletteGrape,\n ColorPaletteBerry,\n ColorPaletteLilac,\n ColorPalettePink,\n ColorPaletteMagenta,\n ColorPalettePlum,\n ColorPaletteBeige,\n ColorPaletteMink,\n ColorPalettePlatinum,\n ColorPaletteAnchor,\n ColorTokens,\n PartialTheme,\n Theme,\n TypographyStyle,\n TypographyStyles,\n} from '@fluentui/tokens';\n"],"mappings":"AAAA,SACEA,cAAc,EACdC,sBAAsB,EACtBC,eAAe,EACfC,YAAY,EACZC,aAAa,EACbC,eAAe,EACfC,uBAAuB,EACvBC,gBAAgB,EAChBC,oBAAoB,EACpBC,mBAAmB,EACnBC,MAAM,EACNC,gBAAgB,QACX,kBAAkB"}
|