@fluentui/react-theme 0.0.0-nightly0e0cf06c3420211029.1 → 0.0.0-nightly554221a5aa20211202.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.
- package/CHANGELOG.json +68 -4
- package/CHANGELOG.md +26 -5
- package/dist/react-theme.d.ts +42 -3
- package/lib/alias/dark.js +152 -114
- package/lib/alias/dark.js.map +1 -1
- package/lib/alias/highContrast.js +152 -114
- package/lib/alias/highContrast.js.map +1 -1
- package/lib/alias/light.js +152 -114
- package/lib/alias/light.js.map +1 -1
- package/lib/alias/teamsDark.js +152 -114
- package/lib/alias/teamsDark.js.map +1 -1
- package/lib/global/borderRadius.js +1 -1
- package/lib/global/borderRadius.js.map +1 -1
- package/lib/global/brandColors.js +16 -17
- package/lib/global/brandColors.js.map +1 -1
- package/lib/global/colors.d.ts +2 -2
- package/lib/global/colors.js +125 -125
- package/lib/global/colors.js.map +1 -1
- package/lib/global/fonts.js +4 -4
- package/lib/global/fonts.js.map +1 -1
- package/lib/global/strokeWidths.js +1 -1
- package/lib/global/strokeWidths.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/themes/teams/darkTheme.js +1 -1
- package/lib/themes/teams/darkTheme.js.map +1 -1
- package/lib/themes/teams/highContrastTheme.js +1 -1
- package/lib/themes/teams/highContrastTheme.js.map +1 -1
- package/lib/themes/teams/lightTheme.js +1 -1
- package/lib/themes/teams/lightTheme.js.map +1 -1
- package/lib/themes/web/darkTheme.js +1 -1
- package/lib/themes/web/darkTheme.js.map +1 -1
- package/lib/themes/web/highContrastTheme.js +1 -1
- package/lib/themes/web/highContrastTheme.js.map +1 -1
- package/lib/themes/web/lightTheme.js +1 -1
- package/lib/themes/web/lightTheme.js.map +1 -1
- package/lib/types.d.ts +41 -1
- package/lib/utils/createDarkTheme.js +13 -4
- package/lib/utils/createDarkTheme.js.map +1 -1
- package/lib/utils/createHighContrastTheme.js +13 -4
- package/lib/utils/createHighContrastTheme.js.map +1 -1
- package/lib/utils/createLightTheme.js +13 -4
- package/lib/utils/createLightTheme.js.map +1 -1
- package/lib/utils/createTeamsDarkTheme.js +13 -4
- package/lib/utils/createTeamsDarkTheme.js.map +1 -1
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +0 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/mergeThemes.js +3 -2
- package/lib/utils/mergeThemes.js.map +1 -1
- package/lib/utils/shadows.d.ts +2 -1
- package/lib/utils/shadows.js +7 -7
- package/lib/utils/shadows.js.map +1 -1
- package/lib-commonjs/alias/dark.js +153 -116
- package/lib-commonjs/alias/dark.js.map +1 -1
- package/lib-commonjs/alias/highContrast.js +153 -116
- package/lib-commonjs/alias/highContrast.js.map +1 -1
- package/lib-commonjs/alias/light.js +153 -116
- package/lib-commonjs/alias/light.js.map +1 -1
- package/lib-commonjs/alias/teamsDark.js +153 -116
- package/lib-commonjs/alias/teamsDark.js.map +1 -1
- package/lib-commonjs/global/brandColors.js +14 -15
- package/lib-commonjs/global/brandColors.js.map +1 -1
- package/lib-commonjs/global/colors.d.ts +2 -2
- package/lib-commonjs/global/colors.js +113 -113
- package/lib-commonjs/global/colors.js.map +1 -1
- package/lib-commonjs/global/index.js +1 -1
- package/lib-commonjs/index.d.ts +1 -1
- package/lib-commonjs/index.js +1 -1
- package/lib-commonjs/themes/index.js +1 -1
- package/lib-commonjs/themes/teams/darkTheme.js +2 -2
- package/lib-commonjs/themes/teams/darkTheme.js.map +1 -1
- package/lib-commonjs/themes/teams/highContrastTheme.js +1 -1
- package/lib-commonjs/themes/teams/highContrastTheme.js.map +1 -1
- package/lib-commonjs/themes/teams/index.js +1 -1
- package/lib-commonjs/themes/teams/lightTheme.js +2 -2
- package/lib-commonjs/themes/teams/lightTheme.js.map +1 -1
- package/lib-commonjs/themes/web/darkTheme.js +2 -2
- package/lib-commonjs/themes/web/darkTheme.js.map +1 -1
- package/lib-commonjs/themes/web/highContrastTheme.js +1 -1
- package/lib-commonjs/themes/web/highContrastTheme.js.map +1 -1
- package/lib-commonjs/themes/web/index.js +1 -1
- package/lib-commonjs/themes/web/lightTheme.js +2 -2
- package/lib-commonjs/themes/web/lightTheme.js.map +1 -1
- package/lib-commonjs/types.d.ts +41 -1
- package/lib-commonjs/utils/createDarkTheme.js +16 -8
- package/lib-commonjs/utils/createDarkTheme.js.map +1 -1
- package/lib-commonjs/utils/createHighContrastTheme.js +16 -8
- package/lib-commonjs/utils/createHighContrastTheme.js.map +1 -1
- package/lib-commonjs/utils/createLightTheme.js +16 -8
- package/lib-commonjs/utils/createLightTheme.js.map +1 -1
- package/lib-commonjs/utils/createTeamsDarkTheme.js +16 -8
- package/lib-commonjs/utils/createTeamsDarkTheme.js.map +1 -1
- package/lib-commonjs/utils/index.d.ts +0 -1
- package/lib-commonjs/utils/index.js +1 -3
- package/lib-commonjs/utils/index.js.map +1 -1
- package/lib-commonjs/utils/mergeThemes.js +3 -3
- package/lib-commonjs/utils/mergeThemes.js.map +1 -1
- package/lib-commonjs/utils/shadows.d.ts +2 -1
- package/lib-commonjs/utils/shadows.js +7 -7
- package/lib-commonjs/utils/shadows.js.map +1 -1
- package/package.json +4 -4
- package/lib/utils/themeToCSSVariables.d.ts +0 -2
- package/lib/utils/themeToCSSVariables.js +0 -12
- package/lib/utils/themeToCSSVariables.js.map +0 -1
- package/lib-commonjs/utils/themeToCSSVariables.d.ts +0 -2
- package/lib-commonjs/utils/themeToCSSVariables.js +0 -21
- package/lib-commonjs/utils/themeToCSSVariables.js.map +0 -1
package/lib/global/fonts.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export
|
1
|
+
export const fontSizes = {
|
2
2
|
fontSizeBase100: '10px',
|
3
3
|
fontSizeBase200: '12px',
|
4
4
|
fontSizeBase300: '14px',
|
@@ -10,7 +10,7 @@ export var fontSizes = {
|
|
10
10
|
fontSizeHero900: '40px',
|
11
11
|
fontSizeHero1000: '68px'
|
12
12
|
};
|
13
|
-
export
|
13
|
+
export const lineHeights = {
|
14
14
|
lineHeightBase100: '14px',
|
15
15
|
lineHeightBase200: '16px',
|
16
16
|
lineHeightBase300: '20px',
|
@@ -22,12 +22,12 @@ export var lineHeights = {
|
|
22
22
|
lineHeightHero900: '52px',
|
23
23
|
lineHeightHero1000: '92px'
|
24
24
|
};
|
25
|
-
export
|
25
|
+
export const fontWeights = {
|
26
26
|
fontWeightRegular: 400,
|
27
27
|
fontWeightMedium: 500,
|
28
28
|
fontWeightSemibold: 600
|
29
29
|
};
|
30
|
-
export
|
30
|
+
export const fontFamilies = {
|
31
31
|
fontFamilyBase: // eslint-disable-next-line @fluentui/max-len
|
32
32
|
"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",
|
33
33
|
fontFamilyMonospace: "Consolas, 'Courier New', Courier, monospace",
|
package/lib/global/fonts.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/global/fonts.ts"],"names":[],"mappings":"AAEA,OAAO,
|
1
|
+
{"version":3,"sources":["../../src/global/fonts.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,SAAS,GAAmB;AACvC,EAAA,eAAe,EAAE,MADsB;AAEvC,EAAA,eAAe,EAAE,MAFsB;AAGvC,EAAA,eAAe,EAAE,MAHsB;AAIvC,EAAA,eAAe,EAAE,MAJsB;AAKvC,EAAA,eAAe,EAAE,MALsB;AAMvC,EAAA,eAAe,EAAE,MANsB;AAQvC,EAAA,eAAe,EAAE,MARsB;AASvC,EAAA,eAAe,EAAE,MATsB;AAUvC,EAAA,eAAe,EAAE,MAVsB;AAWvC,EAAA,gBAAgB,EAAE;AAXqB,CAAlC;AAcP,OAAO,MAAM,WAAW,GAAqB;AAC3C,EAAA,iBAAiB,EAAE,MADwB;AAE3C,EAAA,iBAAiB,EAAE,MAFwB;AAG3C,EAAA,iBAAiB,EAAE,MAHwB;AAI3C,EAAA,iBAAiB,EAAE,MAJwB;AAK3C,EAAA,iBAAiB,EAAE,MALwB;AAM3C,EAAA,iBAAiB,EAAE,MANwB;AAQ3C,EAAA,iBAAiB,EAAE,MARwB;AAS3C,EAAA,iBAAiB,EAAE,MATwB;AAU3C,EAAA,iBAAiB,EAAE,MAVwB;AAW3C,EAAA,kBAAkB,EAAE;AAXuB,CAAtC;AAcP,OAAO,MAAM,WAAW,GAAqB;AAC3C,EAAA,iBAAiB,EAAE,GADwB;AAE3C,EAAA,gBAAgB,EAAE,GAFyB;AAG3C,EAAA,kBAAkB,EAAE;AAHuB,CAAtC;AAMP,OAAO,MAAM,YAAY,GAAqB;AAC5C,EAAA,cAAc,EACZ;AACA,uHAH0C;AAI5C,EAAA,mBAAmB,EAAE,6CAJuB;AAK5C,EAAA,iBAAiB,EACf;AACA;AAP0C,CAAvC","sourceRoot":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/global/strokeWidths.ts"],"names":[],"mappings":"AAEA,OAAO,
|
1
|
+
{"version":3,"sources":["../../src/global/strokeWidths.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,YAAY,GAAsB;AAC7C,EAAA,eAAe,EAAE,KAD4B;AAE7C,EAAA,gBAAgB,EAAE,KAF2B;AAG7C,EAAA,kBAAkB,EAAE,KAHyB;AAI7C,EAAA,mBAAmB,EAAE;AAJwB,CAAxC","sourceRoot":""}
|
package/lib/index.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
export * from './themes/index';
|
2
2
|
export * from './utils/index';
|
3
|
-
export type { BrandVariants, FontSizeTokens, FontWeightTokens, LineHeightTokens, BorderRadiusTokens, StrokeWidthTokens, ShadowTokens, FontFamilyTokens, ColorPaletteTokens, ColorTokens, PartialTheme, Theme, } from './types';
|
3
|
+
export type { BrandVariants, FontSizeTokens, FontWeightTokens, LineHeightTokens, BorderRadiusTokens, StrokeWidthTokens, ShadowTokens, ShadowBrandTokens, FontFamilyTokens, ColorPaletteTokens, ColorTokens, PartialTheme, Theme, } from './types';
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { createTeamsDarkTheme } from '../../utils/createTeamsDarkTheme';
|
2
2
|
import { brandTeams } from '../../global/brandColors';
|
3
|
-
export
|
3
|
+
export const teamsDarkTheme = /*#__PURE__*/createTeamsDarkTheme(brandTeams);
|
4
4
|
//# sourceMappingURL=darkTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/teams/darkTheme.ts"],"names":[],"mappings":"AAAA,SAAS,oBAAT,QAAqC,kCAArC;AACA,SAAS,UAAT,QAA2B,0BAA3B;AAGA,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/themes/teams/darkTheme.ts"],"names":[],"mappings":"AAAA,SAAS,oBAAT,QAAqC,kCAArC;AACA,SAAS,UAAT,QAA2B,0BAA3B;AAGA,OAAO,MAAM,cAAc,gBAAU,oBAAoB,CAAC,UAAD,CAAlD","sourceRoot":""}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { createHighContrastTheme } from '../../utils/createHighContrastTheme';
|
2
|
-
export
|
2
|
+
export const teamsHighContrastTheme = /*#__PURE__*/createHighContrastTheme();
|
3
3
|
//# sourceMappingURL=highContrastTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/teams/highContrastTheme.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAT,QAAwC,qCAAxC;AAGA,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/themes/teams/highContrastTheme.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAT,QAAwC,qCAAxC;AAGA,OAAO,MAAM,sBAAsB,gBAAU,uBAAuB,EAA7D","sourceRoot":""}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { createLightTheme } from '../../utils/createLightTheme';
|
2
2
|
import { brandTeams } from '../../global/brandColors';
|
3
|
-
export
|
3
|
+
export const teamsLightTheme = /*#__PURE__*/createLightTheme(brandTeams);
|
4
4
|
//# sourceMappingURL=lightTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/teams/lightTheme.ts"],"names":[],"mappings":"AAAA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,UAAT,QAA2B,0BAA3B;AAGA,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/themes/teams/lightTheme.ts"],"names":[],"mappings":"AAAA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,UAAT,QAA2B,0BAA3B;AAGA,OAAO,MAAM,eAAe,gBAAU,gBAAgB,CAAC,UAAD,CAA/C","sourceRoot":""}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { createDarkTheme } from '../../utils/createDarkTheme';
|
2
2
|
import { brandWeb } from '../../global/brandColors';
|
3
|
-
export
|
3
|
+
export const webDarkTheme = /*#__PURE__*/createDarkTheme(brandWeb);
|
4
4
|
//# sourceMappingURL=darkTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/web/darkTheme.ts"],"names":[],"mappings":"AAAA,SAAS,eAAT,QAAgC,6BAAhC;AACA,SAAS,QAAT,QAAyB,0BAAzB;AAGA,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/themes/web/darkTheme.ts"],"names":[],"mappings":"AAAA,SAAS,eAAT,QAAgC,6BAAhC;AACA,SAAS,QAAT,QAAyB,0BAAzB;AAGA,OAAO,MAAM,YAAY,gBAAU,eAAe,CAAC,QAAD,CAA3C","sourceRoot":""}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { createHighContrastTheme } from '../../utils/createHighContrastTheme';
|
2
|
-
export
|
2
|
+
export const webHighContrastTheme = /*#__PURE__*/createHighContrastTheme();
|
3
3
|
//# sourceMappingURL=highContrastTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/web/highContrastTheme.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAT,QAAwC,qCAAxC;AAGA,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/themes/web/highContrastTheme.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAT,QAAwC,qCAAxC;AAGA,OAAO,MAAM,oBAAoB,gBAAU,uBAAuB,EAA3D","sourceRoot":""}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { createLightTheme } from '../../utils/createLightTheme';
|
2
2
|
import { brandWeb } from '../../global/brandColors';
|
3
|
-
export
|
3
|
+
export const webLightTheme = /*#__PURE__*/createLightTheme(brandWeb);
|
4
4
|
//# sourceMappingURL=lightTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/web/lightTheme.ts"],"names":[],"mappings":"AAAA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,QAAT,QAAyB,0BAAzB;AAGA,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/themes/web/lightTheme.ts"],"names":[],"mappings":"AAAA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,QAAT,QAAyB,0BAAzB;AAGA,OAAO,MAAM,aAAa,gBAAU,gBAAgB,CAAC,QAAD,CAA7C","sourceRoot":""}
|
package/lib/types.d.ts
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
*/
|
4
4
|
export declare type ColorTokens = {
|
5
5
|
colorNeutralForeground1: string;
|
6
|
+
colorNeutralForeground1Hover: string;
|
7
|
+
colorNeutralForeground1Pressed: string;
|
8
|
+
colorNeutralForeground1Selected: string;
|
6
9
|
colorNeutralForeground2: string;
|
7
10
|
colorNeutralForeground2Hover: string;
|
8
11
|
colorNeutralForeground2Pressed: string;
|
@@ -19,6 +22,7 @@ export declare type ColorTokens = {
|
|
19
22
|
colorNeutralForeground3BrandSelected: string;
|
20
23
|
colorNeutralForeground4: string;
|
21
24
|
colorNeutralForegroundDisabled: string;
|
25
|
+
colorNeutralForegroundInvertedDisabled: string;
|
22
26
|
colorBrandForegroundLink: string;
|
23
27
|
colorBrandForegroundLinkHover: string;
|
24
28
|
colorBrandForegroundLinkPressed: string;
|
@@ -29,11 +33,21 @@ export declare type ColorTokens = {
|
|
29
33
|
colorBrandForeground1: string;
|
30
34
|
colorBrandForeground2: string;
|
31
35
|
colorNeutralForegroundInverted: string;
|
36
|
+
colorNeutralForegroundInvertedHover: string;
|
37
|
+
colorNeutralForegroundInvertedPressed: string;
|
38
|
+
colorNeutralForegroundInvertedSelected: string;
|
32
39
|
colorNeutralForegroundOnBrand: string;
|
33
40
|
colorNeutralForegroundInvertedLink: string;
|
34
41
|
colorNeutralForegroundInvertedLinkHover: string;
|
35
42
|
colorNeutralForegroundInvertedLinkPressed: string;
|
36
43
|
colorNeutralForegroundInvertedLinkSelected: string;
|
44
|
+
colorBrandForegroundInverted: string;
|
45
|
+
colorBrandForegroundInvertedHover: string;
|
46
|
+
colorBrandForegroundInvertedPressed: string;
|
47
|
+
colorBrandForegroundOnLight: string;
|
48
|
+
colorBrandForegroundOnLightHover: string;
|
49
|
+
colorBrandForegroundOnLightPressed: string;
|
50
|
+
colorBrandForegroundOnLightSelected: string;
|
37
51
|
colorNeutralBackground1: string;
|
38
52
|
colorNeutralBackground1Hover: string;
|
39
53
|
colorNeutralBackground1Pressed: string;
|
@@ -60,11 +74,19 @@ export declare type ColorTokens = {
|
|
60
74
|
colorSubtleBackgroundHover: string;
|
61
75
|
colorSubtleBackgroundPressed: string;
|
62
76
|
colorSubtleBackgroundSelected: string;
|
77
|
+
colorSubtleBackgroundLightAlphaHover: string;
|
78
|
+
colorSubtleBackgroundLightAlphaPressed: string;
|
79
|
+
colorSubtleBackgroundLightAlphaSelected: string;
|
80
|
+
colorSubtleBackgroundInverted: string;
|
81
|
+
colorSubtleBackgroundInvertedHover: string;
|
82
|
+
colorSubtleBackgroundInvertedPressed: string;
|
83
|
+
colorSubtleBackgroundInvertedSelected: string;
|
63
84
|
colorTransparentBackground: string;
|
64
85
|
colorTransparentBackgroundHover: string;
|
65
86
|
colorTransparentBackgroundPressed: string;
|
66
87
|
colorTransparentBackgroundSelected: string;
|
67
88
|
colorNeutralBackgroundDisabled: string;
|
89
|
+
colorNeutralBackgroundInvertedDisabled: string;
|
68
90
|
colorNeutralStencil1: string;
|
69
91
|
colorNeutralStencil2: string;
|
70
92
|
colorBrandBackground: string;
|
@@ -76,6 +98,10 @@ export declare type ColorTokens = {
|
|
76
98
|
colorCompoundBrandBackgroundPressed: string;
|
77
99
|
colorBrandBackgroundStatic: string;
|
78
100
|
colorBrandBackground2: string;
|
101
|
+
colorBrandBackgroundInverted: string;
|
102
|
+
colorBrandBackgroundInvertedHover: string;
|
103
|
+
colorBrandBackgroundInvertedPressed: string;
|
104
|
+
colorBrandBackgroundInvertedSelected: string;
|
79
105
|
colorNeutralStrokeAccessible: string;
|
80
106
|
colorNeutralStrokeAccessibleHover: string;
|
81
107
|
colorNeutralStrokeAccessiblePressed: string;
|
@@ -86,12 +112,18 @@ export declare type ColorTokens = {
|
|
86
112
|
colorNeutralStroke1Selected: string;
|
87
113
|
colorNeutralStroke2: string;
|
88
114
|
colorNeutralStroke3: string;
|
115
|
+
colorNeutralStrokeOnBrand: string;
|
116
|
+
colorNeutralStrokeOnBrand2: string;
|
117
|
+
colorNeutralStrokeOnBrand2Hover: string;
|
118
|
+
colorNeutralStrokeOnBrand2Pressed: string;
|
119
|
+
colorNeutralStrokeOnBrand2Selected: string;
|
89
120
|
colorBrandStroke1: string;
|
90
121
|
colorBrandStroke2: string;
|
91
122
|
colorCompoundBrandStroke: string;
|
92
123
|
colorCompoundBrandStrokeHover: string;
|
93
124
|
colorCompoundBrandStrokePressed: string;
|
94
125
|
colorNeutralStrokeDisabled: string;
|
126
|
+
colorNeutralStrokeInvertedDisabled: string;
|
95
127
|
colorTransparentStroke: string;
|
96
128
|
colorTransparentStrokeInteractive: string;
|
97
129
|
colorTransparentStrokeDisabled: string;
|
@@ -296,6 +328,14 @@ export declare type ShadowTokens = {
|
|
296
328
|
shadow28: string;
|
297
329
|
shadow64: string;
|
298
330
|
};
|
331
|
+
export declare type ShadowBrandTokens = {
|
332
|
+
shadow2Brand: string;
|
333
|
+
shadow4Brand: string;
|
334
|
+
shadow8Brand: string;
|
335
|
+
shadow16Brand: string;
|
336
|
+
shadow28Brand: string;
|
337
|
+
shadow64Brand: string;
|
338
|
+
};
|
299
339
|
export declare type GhostColorTokens = {
|
300
340
|
ghostBackground: string;
|
301
341
|
ghostBackgroundHover: string;
|
@@ -323,5 +363,5 @@ export declare type BrandColorTokens = {
|
|
323
363
|
};
|
324
364
|
export declare type Greys = 0 | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 46 | 48 | 50 | 52 | 54 | 56 | 58 | 60 | 62 | 64 | 66 | 68 | 70 | 72 | 74 | 76 | 78 | 80 | 82 | 84 | 86 | 88 | 90 | 92 | 94 | 96 | 98 | 100;
|
325
365
|
export declare type AlphaColors = 5 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
|
326
|
-
export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & ShadowTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens;
|
366
|
+
export declare type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & ShadowTokens & ShadowBrandTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens;
|
327
367
|
export declare type PartialTheme = Partial<Theme>;
|
@@ -1,9 +1,18 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import { colorPaletteTokens, generateColorTokens } from '../alias/dark';
|
3
2
|
import { borderRadius, fontSizes, lineHeights, fontFamilies, strokeWidths, fontWeights } from '../global/index';
|
4
3
|
import { createShadowTokens } from './shadows';
|
5
|
-
export
|
6
|
-
|
7
|
-
return
|
4
|
+
export const createDarkTheme = brand => {
|
5
|
+
const colorTokens = generateColorTokens(brand);
|
6
|
+
return { ...borderRadius,
|
7
|
+
...fontSizes,
|
8
|
+
...lineHeights,
|
9
|
+
...fontFamilies,
|
10
|
+
...fontWeights,
|
11
|
+
...strokeWidths,
|
12
|
+
...colorTokens,
|
13
|
+
...colorPaletteTokens,
|
14
|
+
...createShadowTokens(colorTokens.colorNeutralShadowAmbient, colorTokens.colorNeutralShadowKey),
|
15
|
+
...createShadowTokens(colorTokens.colorBrandShadowAmbient, colorTokens.colorBrandShadowKey, 'Brand')
|
16
|
+
};
|
8
17
|
};
|
9
18
|
//# sourceMappingURL=createDarkTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/utils/createDarkTheme.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../src/utils/createDarkTheme.ts"],"names":[],"mappings":"AAAA,SAAS,kBAAT,EAA6B,mBAA7B,QAAwD,eAAxD;AACA,SAAS,YAAT,EAAuB,SAAvB,EAAkC,WAAlC,EAA+C,YAA/C,EAA6D,YAA7D,EAA2E,WAA3E,QAA8F,iBAA9F;AACA,SAAS,kBAAT,QAAmC,WAAnC;AAGA,OAAO,MAAM,eAAe,GAAoC,KAAK,IAAG;AACtE,QAAM,WAAW,GAAG,mBAAmB,CAAC,KAAD,CAAvC;AAEA,SAAO,EACL,GAAG,YADE;AAEL,OAAG,SAFE;AAGL,OAAG,WAHE;AAIL,OAAG,YAJE;AAKL,OAAG,WALE;AAML,OAAG,YANE;AAQL,OAAG,WARE;AASL,OAAG,kBATE;AAWL,OAAG,kBAAkB,CAAC,WAAW,CAAC,yBAAb,EAAwC,WAAW,CAAC,qBAApD,CAXhB;AAYL,OAAG,kBAAkB,CAAC,WAAW,CAAC,uBAAb,EAAsC,WAAW,CAAC,mBAAlD,EAAuE,OAAvE;AAZhB,GAAP;AAcD,CAjBM","sourceRoot":""}
|
@@ -1,9 +1,18 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import { colorPaletteTokens, generateColorTokens } from '../alias/highContrast';
|
3
2
|
import { borderRadius, fontSizes, lineHeights, fontFamilies, strokeWidths, fontWeights } from '../global/index';
|
4
3
|
import { createShadowTokens } from './shadows';
|
5
|
-
export
|
6
|
-
|
7
|
-
return
|
4
|
+
export const createHighContrastTheme = () => {
|
5
|
+
const colorTokens = generateColorTokens();
|
6
|
+
return { ...borderRadius,
|
7
|
+
...fontSizes,
|
8
|
+
...lineHeights,
|
9
|
+
...fontFamilies,
|
10
|
+
...fontWeights,
|
11
|
+
...strokeWidths,
|
12
|
+
...colorTokens,
|
13
|
+
...colorPaletteTokens,
|
14
|
+
...createShadowTokens(colorTokens.colorNeutralShadowAmbient, colorTokens.colorNeutralShadowKey),
|
15
|
+
...createShadowTokens(colorTokens.colorBrandShadowAmbient, colorTokens.colorBrandShadowKey, 'Brand')
|
16
|
+
};
|
8
17
|
};
|
9
18
|
//# sourceMappingURL=createHighContrastTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/utils/createHighContrastTheme.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../src/utils/createHighContrastTheme.ts"],"names":[],"mappings":"AAAA,SAAS,kBAAT,EAA6B,mBAA7B,QAAwD,uBAAxD;AACA,SAAS,YAAT,EAAuB,SAAvB,EAAkC,WAAlC,EAA+C,YAA/C,EAA6D,YAA7D,EAA2E,WAA3E,QAA8F,iBAA9F;AACA,SAAS,kBAAT,QAAmC,WAAnC;AAGA,OAAO,MAAM,uBAAuB,GAAG,MAAY;AACjD,QAAM,WAAW,GAAG,mBAAmB,EAAvC;AAEA,SAAO,EACL,GAAG,YADE;AAEL,OAAG,SAFE;AAGL,OAAG,WAHE;AAIL,OAAG,YAJE;AAKL,OAAG,WALE;AAML,OAAG,YANE;AAQL,OAAG,WARE;AASL,OAAG,kBATE;AAWL,OAAG,kBAAkB,CAAC,WAAW,CAAC,yBAAb,EAAwC,WAAW,CAAC,qBAApD,CAXhB;AAYL,OAAG,kBAAkB,CAAC,WAAW,CAAC,uBAAb,EAAsC,WAAW,CAAC,mBAAlD,EAAuE,OAAvE;AAZhB,GAAP;AAcD,CAjBM","sourceRoot":""}
|
@@ -1,9 +1,18 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import { colorPaletteTokens, generateColorTokens } from '../alias/light';
|
3
2
|
import { borderRadius, fontSizes, lineHeights, fontFamilies, strokeWidths, fontWeights } from '../global/index';
|
4
3
|
import { createShadowTokens } from './shadows';
|
5
|
-
export
|
6
|
-
|
7
|
-
return
|
4
|
+
export const createLightTheme = brand => {
|
5
|
+
const colorTokens = generateColorTokens(brand);
|
6
|
+
return { ...borderRadius,
|
7
|
+
...fontSizes,
|
8
|
+
...lineHeights,
|
9
|
+
...fontFamilies,
|
10
|
+
...fontWeights,
|
11
|
+
...strokeWidths,
|
12
|
+
...colorTokens,
|
13
|
+
...colorPaletteTokens,
|
14
|
+
...createShadowTokens(colorTokens.colorNeutralShadowAmbient, colorTokens.colorNeutralShadowKey),
|
15
|
+
...createShadowTokens(colorTokens.colorBrandShadowAmbient, colorTokens.colorBrandShadowKey, 'Brand')
|
16
|
+
};
|
8
17
|
};
|
9
18
|
//# sourceMappingURL=createLightTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/utils/createLightTheme.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../src/utils/createLightTheme.ts"],"names":[],"mappings":"AAAA,SAAS,kBAAT,EAA6B,mBAA7B,QAAwD,gBAAxD;AACA,SAAS,YAAT,EAAuB,SAAvB,EAAkC,WAAlC,EAA+C,YAA/C,EAA6D,YAA7D,EAA2E,WAA3E,QAA8F,iBAA9F;AACA,SAAS,kBAAT,QAAmC,WAAnC;AAGA,OAAO,MAAM,gBAAgB,GAAoC,KAAK,IAAG;AACvE,QAAM,WAAW,GAAG,mBAAmB,CAAC,KAAD,CAAvC;AAEA,SAAO,EACL,GAAG,YADE;AAEL,OAAG,SAFE;AAGL,OAAG,WAHE;AAIL,OAAG,YAJE;AAKL,OAAG,WALE;AAML,OAAG,YANE;AAQL,OAAG,WARE;AASL,OAAG,kBATE;AAWL,OAAG,kBAAkB,CAAC,WAAW,CAAC,yBAAb,EAAwC,WAAW,CAAC,qBAApD,CAXhB;AAYL,OAAG,kBAAkB,CAAC,WAAW,CAAC,uBAAb,EAAsC,WAAW,CAAC,mBAAlD,EAAuE,OAAvE;AAZhB,GAAP;AAcD,CAjBM","sourceRoot":""}
|
@@ -1,9 +1,18 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import { colorPaletteTokens, generateColorTokens } from '../alias/teamsDark';
|
3
2
|
import { borderRadius, fontSizes, lineHeights, fontFamilies, strokeWidths, fontWeights } from '../global/index';
|
4
3
|
import { createShadowTokens } from './shadows';
|
5
|
-
export
|
6
|
-
|
7
|
-
return
|
4
|
+
export const createTeamsDarkTheme = brand => {
|
5
|
+
const colorTokens = generateColorTokens(brand);
|
6
|
+
return { ...borderRadius,
|
7
|
+
...fontSizes,
|
8
|
+
...lineHeights,
|
9
|
+
...fontFamilies,
|
10
|
+
...fontWeights,
|
11
|
+
...strokeWidths,
|
12
|
+
...colorTokens,
|
13
|
+
...colorPaletteTokens,
|
14
|
+
...createShadowTokens(colorTokens.colorNeutralShadowAmbient, colorTokens.colorNeutralShadowKey),
|
15
|
+
...createShadowTokens(colorTokens.colorBrandShadowAmbient, colorTokens.colorBrandShadowKey, 'Brand')
|
16
|
+
};
|
8
17
|
};
|
9
18
|
//# sourceMappingURL=createTeamsDarkTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/utils/createTeamsDarkTheme.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../src/utils/createTeamsDarkTheme.ts"],"names":[],"mappings":"AAAA,SAAS,kBAAT,EAA6B,mBAA7B,QAAwD,oBAAxD;AACA,SAAS,YAAT,EAAuB,SAAvB,EAAkC,WAAlC,EAA+C,YAA/C,EAA6D,YAA7D,EAA2E,WAA3E,QAA8F,iBAA9F;AACA,SAAS,kBAAT,QAAmC,WAAnC;AAGA,OAAO,MAAM,oBAAoB,GAAoC,KAAK,IAAG;AAC3E,QAAM,WAAW,GAAG,mBAAmB,CAAC,KAAD,CAAvC;AAEA,SAAO,EACL,GAAG,YADE;AAEL,OAAG,SAFE;AAGL,OAAG,WAHE;AAIL,OAAG,YAJE;AAKL,OAAG,WALE;AAML,OAAG,YANE;AAQL,OAAG,WARE;AASL,OAAG,kBATE;AAWL,OAAG,kBAAkB,CAAC,WAAW,CAAC,yBAAb,EAAwC,WAAW,CAAC,qBAApD,CAXhB;AAYL,OAAG,kBAAkB,CAAC,WAAW,CAAC,uBAAb,EAAsC,WAAW,CAAC,mBAAlD,EAAuE,OAAvE;AAZhB,GAAP;AAcD,CAjBM","sourceRoot":""}
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/index.js
CHANGED
package/lib/utils/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
package/lib/utils/mergeThemes.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/utils/mergeThemes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../src/utils/mergeThemes.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,WAAV,CAAsB,CAAtB,EAA4C,CAA5C,EAA+E;AACnF;AACA,MAAI,CAAC,IAAI,CAAT,EAAY;AACV,WAAO,EAAE,GAAG,CAAL;AAAQ,SAAG;AAAX,KAAP;AACD;;AAED,MAAI,CAAJ,EAAO;AACL,WAAO,CAAP;AACD;;AAED,SAAO,CAAP;AACD","sourceRoot":""}
|
package/lib/utils/shadows.d.ts
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import type { ShadowTokens } from '../types';
|
1
|
+
import type { ShadowBrandTokens, ShadowTokens } from '../types';
|
2
|
+
export declare function createShadowTokens(ambientColor: string, keyColor: string, tokenSuffix: 'Brand'): ShadowBrandTokens;
|
2
3
|
export declare function createShadowTokens(ambientColor: string, keyColor: string): ShadowTokens;
|
package/lib/utils/shadows.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
export function createShadowTokens(ambientColor, keyColor) {
|
1
|
+
export function createShadowTokens(ambientColor, keyColor, tokenSuffix = '') {
|
2
2
|
return {
|
3
|
-
shadow2:
|
4
|
-
shadow4:
|
5
|
-
shadow8:
|
6
|
-
shadow16:
|
7
|
-
shadow28:
|
8
|
-
shadow64:
|
3
|
+
[`shadow2${tokenSuffix}`]: `0 0 2px ${ambientColor}, 0 1px 2px ${keyColor}`,
|
4
|
+
[`shadow4${tokenSuffix}`]: `0 0 2px ${ambientColor}, 0 2px 4px ${keyColor}`,
|
5
|
+
[`shadow8${tokenSuffix}`]: `0 0 2px ${ambientColor}, 0 4px 8px ${keyColor}`,
|
6
|
+
[`shadow16${tokenSuffix}`]: `0 0 2px ${ambientColor}, 0 8px 16px ${keyColor}`,
|
7
|
+
[`shadow28${tokenSuffix}`]: `0 0 8px ${ambientColor}, 0 14px 28px ${keyColor}`,
|
8
|
+
[`shadow64${tokenSuffix}`]: `0 0 8px ${ambientColor}, 0 32px 64px ${keyColor}`
|
9
9
|
};
|
10
10
|
}
|
11
11
|
//# sourceMappingURL=shadows.js.map
|
package/lib/utils/shadows.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/utils/shadows.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../src/utils/shadows.ts"],"names":[],"mappings":"AAKA,OAAM,SAAU,kBAAV,CAA6B,YAA7B,EAAmD,QAAnD,EAAqE,WAAA,GAA4B,EAAjG,EAAmG;AACvG,SAAO;AACL,KAAC,UAAU,WAAW,EAAtB,GAA2B,WAAW,YAAY,eAAe,QAAQ,EADpE;AAEL,KAAC,UAAU,WAAW,EAAtB,GAA2B,WAAW,YAAY,eAAe,QAAQ,EAFpE;AAGL,KAAC,UAAU,WAAW,EAAtB,GAA2B,WAAW,YAAY,eAAe,QAAQ,EAHpE;AAIL,KAAC,WAAW,WAAW,EAAvB,GAA4B,WAAW,YAAY,gBAAgB,QAAQ,EAJtE;AAKL,KAAC,WAAW,WAAW,EAAvB,GAA4B,WAAW,YAAY,iBAAiB,QAAQ,EALvE;AAML,KAAC,WAAW,WAAW,EAAvB,GAA4B,WAAW,YAAY,iBAAiB,QAAQ;AANvE,GAAP;AAQD","sourceRoot":""}
|