@fluentui-react-native/default-theme 0.21.0 → 0.22.0
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 +55 -1
- package/CHANGELOG.md +22 -2
- package/lib/defaultColors.d.ts +0 -2
- package/lib/defaultColors.d.ts.map +1 -1
- package/lib/defaultColors.js +1 -95
- package/lib/defaultColors.js.map +1 -1
- package/lib/defaultTheme.d.ts.map +1 -1
- package/lib/defaultTheme.js +2 -1
- package/lib/defaultTheme.js.map +1 -1
- package/lib/stockWebPalette.d.ts +4 -0
- package/lib/stockWebPalette.d.ts.map +1 -0
- package/lib/stockWebPalette.js +102 -0
- package/lib/stockWebPalette.js.map +1 -0
- package/lib/stockWebPalette.macos.d.ts +4 -0
- package/lib/stockWebPalette.macos.d.ts.map +1 -0
- package/lib/stockWebPalette.macos.js +80 -0
- package/lib/stockWebPalette.macos.js.map +1 -0
- package/lib/stockWebPalette.win32.d.ts +4 -0
- package/lib/stockWebPalette.win32.d.ts.map +1 -0
- package/lib/stockWebPalette.win32.js +80 -0
- package/lib/stockWebPalette.win32.js.map +1 -0
- package/lib-commonjs/defaultColors.d.ts +0 -2
- package/lib-commonjs/defaultColors.d.ts.map +1 -1
- package/lib-commonjs/defaultColors.js +2 -98
- package/lib-commonjs/defaultColors.js.map +1 -1
- package/lib-commonjs/defaultTheme.d.ts.map +1 -1
- package/lib-commonjs/defaultTheme.js +3 -2
- package/lib-commonjs/defaultTheme.js.map +1 -1
- package/lib-commonjs/stockWebPalette.d.ts +4 -0
- package/lib-commonjs/stockWebPalette.d.ts.map +1 -0
- package/lib-commonjs/stockWebPalette.js +107 -0
- package/lib-commonjs/stockWebPalette.js.map +1 -0
- package/lib-commonjs/stockWebPalette.macos.d.ts +4 -0
- package/lib-commonjs/stockWebPalette.macos.d.ts.map +1 -0
- package/lib-commonjs/stockWebPalette.macos.js +85 -0
- package/lib-commonjs/stockWebPalette.macos.js.map +1 -0
- package/lib-commonjs/stockWebPalette.win32.d.ts +4 -0
- package/lib-commonjs/stockWebPalette.win32.d.ts.map +1 -0
- package/lib-commonjs/stockWebPalette.win32.js +85 -0
- package/lib-commonjs/stockWebPalette.win32.js.map +1 -0
- package/package.json +5 -5
- package/src/__tests__/__snapshots__/default-theme.test.ts.snap +0 -42
- package/src/defaultColors.ts +0 -114
- package/src/defaultTheme.ts +2 -1
- package/src/stockWebPalette.macos.ts +82 -0
- package/src/stockWebPalette.ts +106 -0
- package/src/stockWebPalette.win32.ts +82 -0
- package/lib/defaultColors.macos.d.ts +0 -12
- package/lib/defaultColors.macos.d.ts.map +0 -1
- package/lib/defaultColors.macos.js +0 -255
- package/lib/defaultColors.macos.js.map +0 -1
- package/lib/defaultColors.win32.d.ts +0 -12
- package/lib/defaultColors.win32.d.ts.map +0 -1
- package/lib/defaultColors.win32.js +0 -255
- package/lib/defaultColors.win32.js.map +0 -1
- package/lib-commonjs/defaultColors.macos.d.ts +0 -12
- package/lib-commonjs/defaultColors.macos.d.ts.map +0 -1
- package/lib-commonjs/defaultColors.macos.js +0 -262
- package/lib-commonjs/defaultColors.macos.js.map +0 -1
- package/lib-commonjs/defaultColors.win32.d.ts +0 -12
- package/lib-commonjs/defaultColors.win32.d.ts.map +0 -1
- package/lib-commonjs/defaultColors.win32.js +0 -262
- package/lib-commonjs/defaultColors.win32.js.map +0 -1
- package/src/defaultColors.macos.ts +0 -485
- package/src/defaultColors.win32.ts +0 -485
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getStockWebDarkPalette = exports.getStockWebPalette = void 0;
|
|
15
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
16
|
+
var theme_tokens_1 = require("@fluentui-react-native/theme-tokens");
|
|
17
|
+
var createAliasTokens_1 = require("./createAliasTokens");
|
|
18
|
+
var defaultColors_1 = require("./defaultColors");
|
|
19
|
+
function getStockWebPalette() {
|
|
20
|
+
return __assign(__assign({}, (0, defaultColors_1.paletteFromFabricColors)({
|
|
21
|
+
black: theme_tokens_1.globalTokens.color.black,
|
|
22
|
+
neutralDark: '#201f1e',
|
|
23
|
+
neutralPrimary: '#323130',
|
|
24
|
+
neutralPrimaryAlt: '#3b3a39',
|
|
25
|
+
neutralSecondary: '#605e5c',
|
|
26
|
+
neutralSecondaryAlt: '#8a8886',
|
|
27
|
+
neutralTertiary: '#a19f9d',
|
|
28
|
+
neutralTertiaryAlt: '#c8c6c4',
|
|
29
|
+
neutralQuaternary: '#d2d0ce',
|
|
30
|
+
neutralQuaternaryAlt: '#e1dfdd',
|
|
31
|
+
neutralLight: '#edebe9',
|
|
32
|
+
neutralLighter: '#f3f2f1',
|
|
33
|
+
neutralLighterAlt: '#faf9f8',
|
|
34
|
+
white: theme_tokens_1.globalTokens.color.white,
|
|
35
|
+
// Shared Colors
|
|
36
|
+
red: theme_tokens_1.globalTokens.color.red.primary,
|
|
37
|
+
redDark: theme_tokens_1.globalTokens.color.burgundy.primary,
|
|
38
|
+
themeDarker: theme_tokens_1.globalTokens.color.brand.shade40,
|
|
39
|
+
themeDark: theme_tokens_1.globalTokens.color.brand.shade20,
|
|
40
|
+
themeDarkAlt: theme_tokens_1.globalTokens.color.brand.shade10,
|
|
41
|
+
themePrimary: theme_tokens_1.globalTokens.color.brand.primary,
|
|
42
|
+
themeSecondary: '#2b88d8',
|
|
43
|
+
themeTertiary: '#71afe5',
|
|
44
|
+
themeLight: theme_tokens_1.globalTokens.color.brand.tint40,
|
|
45
|
+
themeLighter: theme_tokens_1.globalTokens.color.brand.tint50,
|
|
46
|
+
themeLighterAlt: theme_tokens_1.globalTokens.color.brand.tint60,
|
|
47
|
+
accent: theme_tokens_1.globalTokens.color.brand.primary,
|
|
48
|
+
blackTranslucent40: 'rgba(0,0,0,.4)',
|
|
49
|
+
})), (0, createAliasTokens_1.createColorAliasTokens)('light'));
|
|
50
|
+
}
|
|
51
|
+
exports.getStockWebPalette = getStockWebPalette;
|
|
52
|
+
function getStockWebDarkPalette() {
|
|
53
|
+
return __assign(__assign({}, (0, defaultColors_1.paletteFromFabricColors)({
|
|
54
|
+
// colors taken from fluentui DarkCustomizations.ts
|
|
55
|
+
themeDarker: '#82c7ff',
|
|
56
|
+
themeDark: theme_tokens_1.globalTokens.color.brand.tint30,
|
|
57
|
+
themeDarkAlt: theme_tokens_1.globalTokens.color.brand.tint20,
|
|
58
|
+
themePrimary: theme_tokens_1.globalTokens.color.brand.tint10,
|
|
59
|
+
themeSecondary: theme_tokens_1.globalTokens.color.brand.primary,
|
|
60
|
+
themeTertiary: '#235a85',
|
|
61
|
+
themeLight: theme_tokens_1.globalTokens.color.brand.shade30,
|
|
62
|
+
themeLighter: theme_tokens_1.globalTokens.color.brand.shade50,
|
|
63
|
+
themeLighterAlt: theme_tokens_1.globalTokens.color.brand.shade60,
|
|
64
|
+
black: theme_tokens_1.globalTokens.color.white,
|
|
65
|
+
neutralDark: '#faf9f8',
|
|
66
|
+
neutralPrimary: '#f3f2f1',
|
|
67
|
+
neutralPrimaryAlt: '#c8c6c4',
|
|
68
|
+
neutralSecondary: '#a19f9d',
|
|
69
|
+
neutralSecondaryAlt: '#979693',
|
|
70
|
+
neutralTertiary: '#797775',
|
|
71
|
+
neutralTertiaryAlt: '#484644',
|
|
72
|
+
neutralQuaternary: '#3b3a39',
|
|
73
|
+
neutralQuaternaryAlt: '#323130',
|
|
74
|
+
neutralLight: '#292827',
|
|
75
|
+
neutralLighter: '#252423',
|
|
76
|
+
neutralLighterAlt: '#201f1e',
|
|
77
|
+
white: '#1b1a19',
|
|
78
|
+
red: theme_tokens_1.globalTokens.color.red.primary,
|
|
79
|
+
accent: theme_tokens_1.globalTokens.color.brand.primary,
|
|
80
|
+
redDark: '#f1707b',
|
|
81
|
+
blackTranslucent40: 'rgba(0,0,0,.4)',
|
|
82
|
+
}, true)), (0, createAliasTokens_1.createColorAliasTokens)('dark'));
|
|
83
|
+
}
|
|
84
|
+
exports.getStockWebDarkPalette = getStockWebDarkPalette;
|
|
85
|
+
//# sourceMappingURL=stockWebPalette.win32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stockWebPalette.win32.js","sourceRoot":"","sources":["../src/stockWebPalette.win32.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/default-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Typing only package for fluentui-react-native theme types",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@fluentui-react-native/memo-cache": "^1.3.1",
|
|
31
|
-
"@fluentui-react-native/theme": ">=0.10.
|
|
32
|
-
"@fluentui-react-native/theme-tokens": "^0.26.
|
|
33
|
-
"@fluentui-react-native/theme-types": ">=0.
|
|
34
|
-
"@fluentui-react-native/theming-utils": ">=0.25.
|
|
31
|
+
"@fluentui-react-native/theme": ">=0.10.2 <1.0.0",
|
|
32
|
+
"@fluentui-react-native/theme-tokens": "^0.26.2",
|
|
33
|
+
"@fluentui-react-native/theme-types": ">=0.35.0 <1.0.0",
|
|
34
|
+
"@fluentui-react-native/theming-utils": ">=0.25.2 <1.0.0",
|
|
35
35
|
"assert-never": "^1.2.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -1045,7 +1045,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dark', defaultAppe
|
|
|
1045
1045
|
"accentButtonBackground": "#185abd",
|
|
1046
1046
|
"accentButtonText": "#1b1a19",
|
|
1047
1047
|
"actionLink": "#f3f2f1",
|
|
1048
|
-
"actionLinkHovered": "#faf9f8",
|
|
1049
1048
|
"background": "#1b1a19",
|
|
1050
1049
|
"blockingBackground": "rgba(234, 67, 0, .5)",
|
|
1051
1050
|
"bodyDivider": "#292827",
|
|
@@ -1090,7 +1089,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dark', defaultAppe
|
|
|
1090
1089
|
"brandedSecondaryContent": "#201f1e",
|
|
1091
1090
|
"buttonBackground": "#252423",
|
|
1092
1091
|
"buttonBackgroundChecked": "#484644",
|
|
1093
|
-
"buttonBackgroundCheckedHovered": "#292827",
|
|
1094
1092
|
"buttonBackgroundDisabled": "#252423",
|
|
1095
1093
|
"buttonBackgroundHovered": "#292827",
|
|
1096
1094
|
"buttonBackgroundPressed": "#292827",
|
|
@@ -1155,9 +1153,7 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dark', defaultAppe
|
|
|
1155
1153
|
"defaultPressedSecondaryContent": "#797775",
|
|
1156
1154
|
"defaultStateBackground": "#201f1e",
|
|
1157
1155
|
"disabledBackground": "#323130",
|
|
1158
|
-
"disabledBodySubtext": "#484644",
|
|
1159
1156
|
"disabledBodyText": "#797775",
|
|
1160
|
-
"disabledSubtext": "#3b3a39",
|
|
1161
1157
|
"disabledText": "#797775",
|
|
1162
1158
|
"errorBackground": "rgba(232, 17, 35, .5)",
|
|
1163
1159
|
"errorText": "#ff5f5f",
|
|
@@ -1200,7 +1196,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dark', defaultAppe
|
|
|
1200
1196
|
"inputForegroundChecked": "#1b1a19",
|
|
1201
1197
|
"inputPlaceholderText": "#a19f9d",
|
|
1202
1198
|
"inputText": "#f3f2f1",
|
|
1203
|
-
"inputTextHovered": "#faf9f8",
|
|
1204
1199
|
"link": "#2e6ac5",
|
|
1205
1200
|
"linkHovered": "#82c7ff",
|
|
1206
1201
|
"linkPressed": "#aec6eb",
|
|
@@ -1354,7 +1349,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dark', defaultAppe
|
|
|
1354
1349
|
"warningForeground3": "#fdea3d",
|
|
1355
1350
|
"warningForegroundInverted": "#817400",
|
|
1356
1351
|
"warningHighlight": "#fff100",
|
|
1357
|
-
"warningText": "#ffffff",
|
|
1358
1352
|
},
|
|
1359
1353
|
"components": {},
|
|
1360
1354
|
"host": {
|
|
@@ -1707,7 +1701,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dynamic', defaultA
|
|
|
1707
1701
|
"accentButtonBackground": "#185abd",
|
|
1708
1702
|
"accentButtonText": "#1b1a19",
|
|
1709
1703
|
"actionLink": "#f3f2f1",
|
|
1710
|
-
"actionLinkHovered": "#faf9f8",
|
|
1711
1704
|
"background": "#1b1a19",
|
|
1712
1705
|
"blockingBackground": "rgba(234, 67, 0, .5)",
|
|
1713
1706
|
"bodyDivider": "#292827",
|
|
@@ -1752,7 +1745,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dynamic', defaultA
|
|
|
1752
1745
|
"brandedSecondaryContent": "#201f1e",
|
|
1753
1746
|
"buttonBackground": "#252423",
|
|
1754
1747
|
"buttonBackgroundChecked": "#484644",
|
|
1755
|
-
"buttonBackgroundCheckedHovered": "#292827",
|
|
1756
1748
|
"buttonBackgroundDisabled": "#252423",
|
|
1757
1749
|
"buttonBackgroundHovered": "#292827",
|
|
1758
1750
|
"buttonBackgroundPressed": "#292827",
|
|
@@ -1817,9 +1809,7 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dynamic', defaultA
|
|
|
1817
1809
|
"defaultPressedSecondaryContent": "#797775",
|
|
1818
1810
|
"defaultStateBackground": "#201f1e",
|
|
1819
1811
|
"disabledBackground": "#323130",
|
|
1820
|
-
"disabledBodySubtext": "#484644",
|
|
1821
1812
|
"disabledBodyText": "#797775",
|
|
1822
|
-
"disabledSubtext": "#3b3a39",
|
|
1823
1813
|
"disabledText": "#797775",
|
|
1824
1814
|
"errorBackground": "rgba(232, 17, 35, .5)",
|
|
1825
1815
|
"errorText": "#ff5f5f",
|
|
@@ -1862,7 +1852,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dynamic', defaultA
|
|
|
1862
1852
|
"inputForegroundChecked": "#1b1a19",
|
|
1863
1853
|
"inputPlaceholderText": "#a19f9d",
|
|
1864
1854
|
"inputText": "#f3f2f1",
|
|
1865
|
-
"inputTextHovered": "#faf9f8",
|
|
1866
1855
|
"link": "#2e6ac5",
|
|
1867
1856
|
"linkHovered": "#82c7ff",
|
|
1868
1857
|
"linkPressed": "#aec6eb",
|
|
@@ -2016,7 +2005,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'dynamic', defaultA
|
|
|
2016
2005
|
"warningForeground3": "#fdea3d",
|
|
2017
2006
|
"warningForegroundInverted": "#817400",
|
|
2018
2007
|
"warningHighlight": "#fff100",
|
|
2019
|
-
"warningText": "#ffffff",
|
|
2020
2008
|
},
|
|
2021
2009
|
"components": {},
|
|
2022
2010
|
"host": {
|
|
@@ -2369,7 +2357,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'highContrast', def
|
|
|
2369
2357
|
"accentButtonBackground": "#000000",
|
|
2370
2358
|
"accentButtonText": "#ffffff",
|
|
2371
2359
|
"actionLink": "#ffff00",
|
|
2372
|
-
"actionLinkHovered": "#ffffff",
|
|
2373
2360
|
"background": "#000000",
|
|
2374
2361
|
"blockingBackground": "#000000",
|
|
2375
2362
|
"bodyDivider": "#ffffff",
|
|
@@ -2470,7 +2457,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'highContrast', def
|
|
|
2470
2457
|
"brandedSecondaryContent": "#ffffff",
|
|
2471
2458
|
"buttonBackground": "#000000",
|
|
2472
2459
|
"buttonBackgroundChecked": "#1aebff",
|
|
2473
|
-
"buttonBackgroundCheckedHovered": "#1aebff",
|
|
2474
2460
|
"buttonBackgroundDisabled": "#000000",
|
|
2475
2461
|
"buttonBackgroundHovered": "#1aebff",
|
|
2476
2462
|
"buttonBackgroundPressed": "#1aebff",
|
|
@@ -2611,9 +2597,7 @@ exports[`createDefaultTheme test themeOption - { appearance: 'highContrast', def
|
|
|
2611
2597
|
"defaultPressedSecondaryContent": "#000000",
|
|
2612
2598
|
"defaultStateBackground": "#000000",
|
|
2613
2599
|
"disabledBackground": "#000000",
|
|
2614
|
-
"disabledBodySubtext": "#3ff23f",
|
|
2615
2600
|
"disabledBodyText": "#3ff23f",
|
|
2616
|
-
"disabledSubtext": "#3ff23f",
|
|
2617
2601
|
"disabledText": "#3ff23f",
|
|
2618
2602
|
"errorBackground": "#000000",
|
|
2619
2603
|
"errorText": "#ffffff",
|
|
@@ -2656,7 +2640,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'highContrast', def
|
|
|
2656
2640
|
"inputForegroundChecked": "#000000",
|
|
2657
2641
|
"inputPlaceholderText": "#ffffff",
|
|
2658
2642
|
"inputText": "#ffffff",
|
|
2659
|
-
"inputTextHovered": "#000000",
|
|
2660
2643
|
"link": "#ffff00",
|
|
2661
2644
|
"linkHovered": "#ffffff",
|
|
2662
2645
|
"linkPressed": "#ffffff",
|
|
@@ -3246,7 +3229,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'highContrast', def
|
|
|
3246
3229
|
],
|
|
3247
3230
|
},
|
|
3248
3231
|
"warningHighlight": "#ffffff",
|
|
3249
|
-
"warningText": "#ffffff",
|
|
3250
3232
|
},
|
|
3251
3233
|
"components": {},
|
|
3252
3234
|
"host": {
|
|
@@ -3599,7 +3581,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'light', defaultApp
|
|
|
3599
3581
|
"accentButtonBackground": "#185abd",
|
|
3600
3582
|
"accentButtonText": "#ffffff",
|
|
3601
3583
|
"actionLink": "#323130",
|
|
3602
|
-
"actionLinkHovered": "#201f1e",
|
|
3603
3584
|
"background": "#ffffff",
|
|
3604
3585
|
"blockingBackground": "rgba(250, 65, 0, .2)",
|
|
3605
3586
|
"bodyDivider": "#edebe9",
|
|
@@ -3644,7 +3625,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'light', defaultApp
|
|
|
3644
3625
|
"brandedSecondaryContent": "#faf9f8",
|
|
3645
3626
|
"buttonBackground": "#f3f2f1",
|
|
3646
3627
|
"buttonBackgroundChecked": "#c8c6c4",
|
|
3647
|
-
"buttonBackgroundCheckedHovered": "#edebe9",
|
|
3648
3628
|
"buttonBackgroundDisabled": "#f3f2f1",
|
|
3649
3629
|
"buttonBackgroundHovered": "#edebe9",
|
|
3650
3630
|
"buttonBackgroundPressed": "#edebe9",
|
|
@@ -3709,9 +3689,7 @@ exports[`createDefaultTheme test themeOption - { appearance: 'light', defaultApp
|
|
|
3709
3689
|
"defaultPressedSecondaryContent": "#a19f9d",
|
|
3710
3690
|
"defaultStateBackground": "#faf9f8",
|
|
3711
3691
|
"disabledBackground": "#f3f2f1",
|
|
3712
|
-
"disabledBodySubtext": "#c8c6c4",
|
|
3713
3692
|
"disabledBodyText": "#a19f9d",
|
|
3714
|
-
"disabledSubtext": "#d2d0ce",
|
|
3715
3693
|
"disabledText": "#a19f9d",
|
|
3716
3694
|
"errorBackground": "rgba(245, 135, 145, .2)",
|
|
3717
3695
|
"errorText": "#a4262c",
|
|
@@ -3754,7 +3732,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'light', defaultApp
|
|
|
3754
3732
|
"inputForegroundChecked": "#ffffff",
|
|
3755
3733
|
"inputPlaceholderText": "#605e5c",
|
|
3756
3734
|
"inputText": "#323130",
|
|
3757
|
-
"inputTextHovered": "#201f1e",
|
|
3758
3735
|
"link": "#185abd",
|
|
3759
3736
|
"linkHovered": "#004578",
|
|
3760
3737
|
"linkPressed": "#13458f",
|
|
@@ -3908,7 +3885,6 @@ exports[`createDefaultTheme test themeOption - { appearance: 'light', defaultApp
|
|
|
3908
3885
|
"warningForeground3": "#fde300",
|
|
3909
3886
|
"warningForegroundInverted": "#fef7b2",
|
|
3910
3887
|
"warningHighlight": "#ffb900",
|
|
3911
|
-
"warningText": "#333333",
|
|
3912
3888
|
},
|
|
3913
3889
|
"components": {},
|
|
3914
3890
|
"host": {
|
|
@@ -4261,7 +4237,6 @@ exports[`createDefaultTheme test themeOption - { appearance: undefined, defaultA
|
|
|
4261
4237
|
"accentButtonBackground": "#185abd",
|
|
4262
4238
|
"accentButtonText": "#ffffff",
|
|
4263
4239
|
"actionLink": "#323130",
|
|
4264
|
-
"actionLinkHovered": "#201f1e",
|
|
4265
4240
|
"background": "#ffffff",
|
|
4266
4241
|
"blockingBackground": "rgba(250, 65, 0, .2)",
|
|
4267
4242
|
"bodyDivider": "#edebe9",
|
|
@@ -4306,7 +4281,6 @@ exports[`createDefaultTheme test themeOption - { appearance: undefined, defaultA
|
|
|
4306
4281
|
"brandedSecondaryContent": "#faf9f8",
|
|
4307
4282
|
"buttonBackground": "#f3f2f1",
|
|
4308
4283
|
"buttonBackgroundChecked": "#c8c6c4",
|
|
4309
|
-
"buttonBackgroundCheckedHovered": "#edebe9",
|
|
4310
4284
|
"buttonBackgroundDisabled": "#f3f2f1",
|
|
4311
4285
|
"buttonBackgroundHovered": "#edebe9",
|
|
4312
4286
|
"buttonBackgroundPressed": "#edebe9",
|
|
@@ -4371,9 +4345,7 @@ exports[`createDefaultTheme test themeOption - { appearance: undefined, defaultA
|
|
|
4371
4345
|
"defaultPressedSecondaryContent": "#a19f9d",
|
|
4372
4346
|
"defaultStateBackground": "#faf9f8",
|
|
4373
4347
|
"disabledBackground": "#f3f2f1",
|
|
4374
|
-
"disabledBodySubtext": "#c8c6c4",
|
|
4375
4348
|
"disabledBodyText": "#a19f9d",
|
|
4376
|
-
"disabledSubtext": "#d2d0ce",
|
|
4377
4349
|
"disabledText": "#a19f9d",
|
|
4378
4350
|
"errorBackground": "rgba(245, 135, 145, .2)",
|
|
4379
4351
|
"errorText": "#a4262c",
|
|
@@ -4416,7 +4388,6 @@ exports[`createDefaultTheme test themeOption - { appearance: undefined, defaultA
|
|
|
4416
4388
|
"inputForegroundChecked": "#ffffff",
|
|
4417
4389
|
"inputPlaceholderText": "#605e5c",
|
|
4418
4390
|
"inputText": "#323130",
|
|
4419
|
-
"inputTextHovered": "#201f1e",
|
|
4420
4391
|
"link": "#185abd",
|
|
4421
4392
|
"linkHovered": "#004578",
|
|
4422
4393
|
"linkPressed": "#13458f",
|
|
@@ -4570,7 +4541,6 @@ exports[`createDefaultTheme test themeOption - { appearance: undefined, defaultA
|
|
|
4570
4541
|
"warningForeground3": "#fde300",
|
|
4571
4542
|
"warningForegroundInverted": "#fef7b2",
|
|
4572
4543
|
"warningHighlight": "#ffb900",
|
|
4573
|
-
"warningText": "#333333",
|
|
4574
4544
|
},
|
|
4575
4545
|
"components": {},
|
|
4576
4546
|
"host": {
|
|
@@ -5442,7 +5412,6 @@ exports[`defaultFluentDarkTheme test 1`] = `
|
|
|
5442
5412
|
"accentButtonBackground": "#185abd",
|
|
5443
5413
|
"accentButtonText": "#1b1a19",
|
|
5444
5414
|
"actionLink": "#f3f2f1",
|
|
5445
|
-
"actionLinkHovered": "#faf9f8",
|
|
5446
5415
|
"background": "#1b1a19",
|
|
5447
5416
|
"blockingBackground": "rgba(234, 67, 0, .5)",
|
|
5448
5417
|
"bodyDivider": "#292827",
|
|
@@ -5487,7 +5456,6 @@ exports[`defaultFluentDarkTheme test 1`] = `
|
|
|
5487
5456
|
"brandedSecondaryContent": "#201f1e",
|
|
5488
5457
|
"buttonBackground": "#252423",
|
|
5489
5458
|
"buttonBackgroundChecked": "#484644",
|
|
5490
|
-
"buttonBackgroundCheckedHovered": "#292827",
|
|
5491
5459
|
"buttonBackgroundDisabled": "#252423",
|
|
5492
5460
|
"buttonBackgroundHovered": "#292827",
|
|
5493
5461
|
"buttonBackgroundPressed": "#292827",
|
|
@@ -5552,9 +5520,7 @@ exports[`defaultFluentDarkTheme test 1`] = `
|
|
|
5552
5520
|
"defaultPressedSecondaryContent": "#797775",
|
|
5553
5521
|
"defaultStateBackground": "#201f1e",
|
|
5554
5522
|
"disabledBackground": "#323130",
|
|
5555
|
-
"disabledBodySubtext": "#484644",
|
|
5556
5523
|
"disabledBodyText": "#797775",
|
|
5557
|
-
"disabledSubtext": "#3b3a39",
|
|
5558
5524
|
"disabledText": "#797775",
|
|
5559
5525
|
"errorBackground": "rgba(232, 17, 35, .5)",
|
|
5560
5526
|
"errorText": "#ff5f5f",
|
|
@@ -5597,7 +5563,6 @@ exports[`defaultFluentDarkTheme test 1`] = `
|
|
|
5597
5563
|
"inputForegroundChecked": "#1b1a19",
|
|
5598
5564
|
"inputPlaceholderText": "#a19f9d",
|
|
5599
5565
|
"inputText": "#f3f2f1",
|
|
5600
|
-
"inputTextHovered": "#faf9f8",
|
|
5601
5566
|
"link": "#2e6ac5",
|
|
5602
5567
|
"linkHovered": "#82c7ff",
|
|
5603
5568
|
"linkPressed": "#aec6eb",
|
|
@@ -5751,7 +5716,6 @@ exports[`defaultFluentDarkTheme test 1`] = `
|
|
|
5751
5716
|
"warningForeground3": "#fdea3d",
|
|
5752
5717
|
"warningForegroundInverted": "#817400",
|
|
5753
5718
|
"warningHighlight": "#fff100",
|
|
5754
|
-
"warningText": "#ffffff",
|
|
5755
5719
|
},
|
|
5756
5720
|
"components": {},
|
|
5757
5721
|
"host": {
|
|
@@ -6104,7 +6068,6 @@ exports[`defaultFluentTheme test 1`] = `
|
|
|
6104
6068
|
"accentButtonBackground": "#185abd",
|
|
6105
6069
|
"accentButtonText": "#ffffff",
|
|
6106
6070
|
"actionLink": "#323130",
|
|
6107
|
-
"actionLinkHovered": "#201f1e",
|
|
6108
6071
|
"background": "#ffffff",
|
|
6109
6072
|
"blockingBackground": "rgba(250, 65, 0, .2)",
|
|
6110
6073
|
"bodyDivider": "#edebe9",
|
|
@@ -6149,7 +6112,6 @@ exports[`defaultFluentTheme test 1`] = `
|
|
|
6149
6112
|
"brandedSecondaryContent": "#faf9f8",
|
|
6150
6113
|
"buttonBackground": "#f3f2f1",
|
|
6151
6114
|
"buttonBackgroundChecked": "#c8c6c4",
|
|
6152
|
-
"buttonBackgroundCheckedHovered": "#edebe9",
|
|
6153
6115
|
"buttonBackgroundDisabled": "#f3f2f1",
|
|
6154
6116
|
"buttonBackgroundHovered": "#edebe9",
|
|
6155
6117
|
"buttonBackgroundPressed": "#edebe9",
|
|
@@ -6214,9 +6176,7 @@ exports[`defaultFluentTheme test 1`] = `
|
|
|
6214
6176
|
"defaultPressedSecondaryContent": "#a19f9d",
|
|
6215
6177
|
"defaultStateBackground": "#faf9f8",
|
|
6216
6178
|
"disabledBackground": "#f3f2f1",
|
|
6217
|
-
"disabledBodySubtext": "#c8c6c4",
|
|
6218
6179
|
"disabledBodyText": "#a19f9d",
|
|
6219
|
-
"disabledSubtext": "#d2d0ce",
|
|
6220
6180
|
"disabledText": "#a19f9d",
|
|
6221
6181
|
"errorBackground": "rgba(245, 135, 145, .2)",
|
|
6222
6182
|
"errorText": "#a4262c",
|
|
@@ -6259,7 +6219,6 @@ exports[`defaultFluentTheme test 1`] = `
|
|
|
6259
6219
|
"inputForegroundChecked": "#ffffff",
|
|
6260
6220
|
"inputPlaceholderText": "#605e5c",
|
|
6261
6221
|
"inputText": "#323130",
|
|
6262
|
-
"inputTextHovered": "#201f1e",
|
|
6263
6222
|
"link": "#185abd",
|
|
6264
6223
|
"linkHovered": "#004578",
|
|
6265
6224
|
"linkPressed": "#13458f",
|
|
@@ -6413,7 +6372,6 @@ exports[`defaultFluentTheme test 1`] = `
|
|
|
6413
6372
|
"warningForeground3": "#fde300",
|
|
6414
6373
|
"warningForegroundInverted": "#fef7b2",
|
|
6415
6374
|
"warningHighlight": "#ffb900",
|
|
6416
|
-
"warningText": "#333333",
|
|
6417
6375
|
},
|
|
6418
6376
|
"components": {},
|
|
6419
6377
|
"host": {
|
package/src/defaultColors.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
2
|
-
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
3
1
|
import type { Palette, FabricWebPalette, ThemeColorDefinition } from '@fluentui-react-native/theme-types';
|
|
4
2
|
|
|
5
3
|
import { createColorAliasTokens } from './createAliasTokens';
|
|
@@ -24,8 +22,6 @@ export function paletteFromFabricColors(p: FabricWebPalette, isInverted?: boolea
|
|
|
24
22
|
disabledBackground: isInverted ? p.neutralQuaternaryAlt : p.neutralLighter,
|
|
25
23
|
disabledText: p.neutralTertiary,
|
|
26
24
|
disabledBodyText: p.neutralTertiary,
|
|
27
|
-
disabledSubtext: p.neutralQuaternary,
|
|
28
|
-
disabledBodySubtext: p.neutralTertiaryAlt,
|
|
29
25
|
|
|
30
26
|
focusBorder: p.neutralSecondary,
|
|
31
27
|
variantBorder: p.neutralLight,
|
|
@@ -33,7 +29,6 @@ export function paletteFromFabricColors(p: FabricWebPalette, isInverted?: boolea
|
|
|
33
29
|
defaultStateBackground: p.neutralLighterAlt,
|
|
34
30
|
|
|
35
31
|
errorText: !isInverted ? p.redDark : '#ff5f5f',
|
|
36
|
-
warningText: !isInverted ? globalTokens.color.grey20 : globalTokens.color.white,
|
|
37
32
|
errorBackground: !isInverted ? 'rgba(245, 135, 145, .2)' : 'rgba(232, 17, 35, .5)',
|
|
38
33
|
blockingBackground: !isInverted ? 'rgba(250, 65, 0, .2)' : 'rgba(234, 67, 0, .5)',
|
|
39
34
|
warningBackground: !isInverted ? 'rgba(255, 200, 10, .2)' : 'rgba(255, 251, 0, .6)',
|
|
@@ -49,13 +44,11 @@ export function paletteFromFabricColors(p: FabricWebPalette, isInverted?: boolea
|
|
|
49
44
|
inputFocusBorderAlt: p.themePrimary,
|
|
50
45
|
smallInputBorder: p.neutralSecondary,
|
|
51
46
|
inputText: p.neutralPrimary,
|
|
52
|
-
inputTextHovered: p.neutralDark,
|
|
53
47
|
inputPlaceholderText: p.neutralSecondary,
|
|
54
48
|
|
|
55
49
|
buttonBackground: p.neutralLighter,
|
|
56
50
|
buttonBackgroundChecked: p.neutralTertiaryAlt,
|
|
57
51
|
buttonBackgroundHovered: p.neutralLight,
|
|
58
|
-
buttonBackgroundCheckedHovered: p.neutralLight,
|
|
59
52
|
buttonBackgroundPressed: p.neutralLight,
|
|
60
53
|
buttonBackgroundDisabled: p.neutralLighter,
|
|
61
54
|
buttonBorder: p.neutralSecondaryAlt,
|
|
@@ -101,7 +94,6 @@ export function paletteFromFabricColors(p: FabricWebPalette, isInverted?: boolea
|
|
|
101
94
|
listHeaderBackgroundPressed: p.neutralLight,
|
|
102
95
|
|
|
103
96
|
actionLink: p.neutralPrimary,
|
|
104
|
-
actionLinkHovered: p.neutralDark,
|
|
105
97
|
link: p.themePrimary,
|
|
106
98
|
linkHovered: p.themeDarker,
|
|
107
99
|
linkPressed: p.themeDark,
|
|
@@ -209,106 +201,6 @@ export function paletteFromFabricColors(p: FabricWebPalette, isInverted?: boolea
|
|
|
209
201
|
};
|
|
210
202
|
}
|
|
211
203
|
|
|
212
|
-
export function getStockWebPalette(): ThemeColorDefinition {
|
|
213
|
-
return {
|
|
214
|
-
...paletteFromFabricColors({
|
|
215
|
-
black: globalTokens.color.black,
|
|
216
|
-
neutralDark: '#201f1e',
|
|
217
|
-
neutralPrimary: '#323130',
|
|
218
|
-
neutralPrimaryAlt: '#3b3a39',
|
|
219
|
-
neutralSecondary: '#605e5c',
|
|
220
|
-
neutralSecondaryAlt: '#8a8886',
|
|
221
|
-
neutralTertiary: '#a19f9d',
|
|
222
|
-
neutralTertiaryAlt: '#c8c6c4',
|
|
223
|
-
neutralQuaternary: '#d2d0ce',
|
|
224
|
-
neutralQuaternaryAlt: '#e1dfdd',
|
|
225
|
-
neutralLight: '#edebe9',
|
|
226
|
-
neutralLighter: '#f3f2f1',
|
|
227
|
-
neutralLighterAlt: '#faf9f8',
|
|
228
|
-
white: globalTokens.color.white,
|
|
229
|
-
// Shared Colors
|
|
230
|
-
red: globalTokens.color.red.primary,
|
|
231
|
-
redDark: globalTokens.color.burgundy.primary,
|
|
232
|
-
|
|
233
|
-
// @ts-ignore
|
|
234
|
-
accent: globalTokens.color.brand80,
|
|
235
|
-
blackTranslucent40: 'rgba(0,0,0,.4)',
|
|
236
|
-
|
|
237
|
-
// Colors to be deprecated
|
|
238
|
-
// @ts-ignore
|
|
239
|
-
themeDarker: globalTokens.color.brand40,
|
|
240
|
-
// @ts-ignore
|
|
241
|
-
themeDark: globalTokens.color.brand60,
|
|
242
|
-
// @ts-ignore
|
|
243
|
-
themeDarkAlt: globalTokens.color.brand70,
|
|
244
|
-
// @ts-ignore
|
|
245
|
-
themePrimary: globalTokens.color.brand80,
|
|
246
|
-
// @ts-ignore
|
|
247
|
-
themeSecondary: globalTokens.color.brand90,
|
|
248
|
-
// @ts-ignore
|
|
249
|
-
themeTertiary: globalTokens.color.brand120,
|
|
250
|
-
// @ts-ignore
|
|
251
|
-
themeLight: globalTokens.color.brand140,
|
|
252
|
-
// @ts-ignore
|
|
253
|
-
themeLighter: globalTokens.color.brand150,
|
|
254
|
-
// @ts-ignore
|
|
255
|
-
themeLighterAlt: globalTokens.color.brand160,
|
|
256
|
-
}),
|
|
257
|
-
...createColorAliasTokens('light'),
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export function getStockWebDarkPalette(): ThemeColorDefinition {
|
|
262
|
-
return {
|
|
263
|
-
...paletteFromFabricColors(
|
|
264
|
-
{
|
|
265
|
-
// colors taken from fluentui DarkCustomizations.ts
|
|
266
|
-
black: globalTokens.color.white,
|
|
267
|
-
neutralDark: '#faf9f8',
|
|
268
|
-
neutralPrimary: '#f3f2f1',
|
|
269
|
-
neutralPrimaryAlt: '#c8c6c4',
|
|
270
|
-
neutralSecondary: '#a19f9d',
|
|
271
|
-
neutralSecondaryAlt: '#979693',
|
|
272
|
-
neutralTertiary: '#797775',
|
|
273
|
-
neutralTertiaryAlt: '#484644',
|
|
274
|
-
neutralQuaternary: '#3b3a39',
|
|
275
|
-
neutralQuaternaryAlt: '#323130',
|
|
276
|
-
neutralLight: '#292827',
|
|
277
|
-
neutralLighter: '#252423',
|
|
278
|
-
neutralLighterAlt: '#201f1e',
|
|
279
|
-
white: '#1b1a19',
|
|
280
|
-
red: globalTokens.color.red.primary,
|
|
281
|
-
// @ts-ignore
|
|
282
|
-
accent: globalTokens.color.brand40,
|
|
283
|
-
redDark: '#f1707b',
|
|
284
|
-
blackTranslucent40: 'rgba(0,0,0,.4)',
|
|
285
|
-
|
|
286
|
-
// Colors to be deprecated
|
|
287
|
-
// @ts-ignore
|
|
288
|
-
themeDarker: globalTokens.color.brand110,
|
|
289
|
-
// @ts-ignore
|
|
290
|
-
themeDark: globalTokens.color.brand100,
|
|
291
|
-
// @ts-ignore
|
|
292
|
-
themeDarkAlt: globalTokens.color.brand100,
|
|
293
|
-
// @ts-ignore
|
|
294
|
-
themePrimary: globalTokens.color.brand90,
|
|
295
|
-
// @ts-ignore
|
|
296
|
-
themeSecondary: globalTokens.color.brand90,
|
|
297
|
-
// @ts-ignore
|
|
298
|
-
themeTertiary: globalTokens.color.brand60,
|
|
299
|
-
// @ts-ignore
|
|
300
|
-
themeLight: globalTokens.color.brand50,
|
|
301
|
-
// @ts-ignore
|
|
302
|
-
themeLighter: globalTokens.color.brand40,
|
|
303
|
-
// @ts-ignore
|
|
304
|
-
themeLighterAlt: globalTokens.color.brand30,
|
|
305
|
-
},
|
|
306
|
-
true,
|
|
307
|
-
),
|
|
308
|
-
...createColorAliasTokens('dark'),
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
|
|
312
204
|
export function getStockWebHCPalette(): ThemeColorDefinition {
|
|
313
205
|
return {
|
|
314
206
|
background: '#000000',
|
|
@@ -323,8 +215,6 @@ export function getStockWebHCPalette(): ThemeColorDefinition {
|
|
|
323
215
|
disabledBackground: '#000000',
|
|
324
216
|
disabledText: '#3ff23f',
|
|
325
217
|
disabledBodyText: '#3ff23f',
|
|
326
|
-
disabledSubtext: '#3ff23f',
|
|
327
|
-
disabledBodySubtext: '#3ff23f',
|
|
328
218
|
|
|
329
219
|
focusBorder: '#ffffff',
|
|
330
220
|
variantBorder: '#ffffff',
|
|
@@ -332,7 +222,6 @@ export function getStockWebHCPalette(): ThemeColorDefinition {
|
|
|
332
222
|
defaultStateBackground: '#000000',
|
|
333
223
|
|
|
334
224
|
errorText: '#ffffff',
|
|
335
|
-
warningText: '#ffffff',
|
|
336
225
|
errorBackground: '#000000',
|
|
337
226
|
blockingBackground: '#000000',
|
|
338
227
|
warningBackground: '#000000',
|
|
@@ -348,13 +237,11 @@ export function getStockWebHCPalette(): ThemeColorDefinition {
|
|
|
348
237
|
inputFocusBorderAlt: '#ffffff',
|
|
349
238
|
smallInputBorder: '#ffffff',
|
|
350
239
|
inputText: '#ffffff',
|
|
351
|
-
inputTextHovered: '#000000',
|
|
352
240
|
inputPlaceholderText: '#ffffff',
|
|
353
241
|
|
|
354
242
|
buttonBackground: '#000000',
|
|
355
243
|
buttonBackgroundChecked: '#1aebff',
|
|
356
244
|
buttonBackgroundHovered: '#1aebff',
|
|
357
|
-
buttonBackgroundCheckedHovered: '#1aebff',
|
|
358
245
|
buttonBackgroundPressed: '#1aebff',
|
|
359
246
|
buttonBackgroundDisabled: '#000000',
|
|
360
247
|
buttonBorder: '#ffffff',
|
|
@@ -400,7 +287,6 @@ export function getStockWebHCPalette(): ThemeColorDefinition {
|
|
|
400
287
|
listHeaderBackgroundPressed: '#1aebff',
|
|
401
288
|
|
|
402
289
|
actionLink: '#ffff00',
|
|
403
|
-
actionLinkHovered: '#ffffff',
|
|
404
290
|
link: '#ffff00',
|
|
405
291
|
linkHovered: '#ffffff',
|
|
406
292
|
linkPressed: '#ffffff',
|
package/src/defaultTheme.ts
CHANGED
|
@@ -4,7 +4,8 @@ import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
|
4
4
|
import type { Theme, Typography, Spacing, FontWeightValue, FontSize, FontSizes, Variants } from '@fluentui-react-native/theme-types';
|
|
5
5
|
|
|
6
6
|
import { createShadowAliasTokens } from './createAliasTokens';
|
|
7
|
-
import {
|
|
7
|
+
import { getStockWebHCPalette } from './defaultColors';
|
|
8
|
+
import { getStockWebPalette, getStockWebDarkPalette } from './stockWebPalette';
|
|
8
9
|
|
|
9
10
|
function _defaultTypography(): Typography {
|
|
10
11
|
const defaultsDict = {
|