@automattic/vip-design-system 0.28.0 → 0.28.2
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/.storybook/decorators/withColorMode.jsx +15 -2
- package/README.md +3 -3
- package/build/system/Accordion/Accordion.js +21 -30
- package/build/system/Badge/Badge.stories.js +1 -1
- package/build/system/Dialog/DialogButton.js +1 -1
- package/build/system/Dropdown/Dropdown.stories.js +9 -5
- package/build/system/Form/InlineSelect.js +3 -3
- package/build/system/Form/Input.js +1 -0
- package/build/system/Form/Input.styles.js +2 -2
- package/build/system/Form/Label.js +1 -1
- package/build/system/Form/Radio.stories.js +1 -1
- package/build/system/Form/SearchSelect.js +4 -4
- package/build/system/NewForm/FormAutocomplete.js +12 -2
- package/build/system/NewForm/FormAutocomplete.stories.js +14 -2
- package/build/system/NewForm/FormSelect.stories.js +3 -1
- package/build/system/Notice/Notice.js +1 -0
- package/build/system/Notice/Notice.stories.js +13 -23
- package/build/system/ResourceList/ResourceList.js +35 -26
- package/build/system/ResourceList/ResourceList.stories.js +2 -0
- package/build/system/Table/Table.stories.js +0 -3
- package/build/system/Tabs/Tabs.stories.js +3 -3
- package/build/system/Wizard/WizardStep.js +5 -3
- package/build/system/theme/colors.js +7 -170
- package/build/system/theme/generated/valet-theme-dark.json +2924 -0
- package/{src/system/theme/generated/valet-theme.json → build/system/theme/generated/valet-theme-light.json} +73 -16
- package/build/system/theme/generated/valet-theme.json +26 -8
- package/build/system/theme/getColor.js +53 -50
- package/build/system/theme/index.js +114 -150
- package/build/system/theme/textStyles.js +51 -0
- package/package.json +7 -3
- package/src/system/Accordion/Accordion.js +8 -6
- package/src/system/Badge/Badge.stories.jsx +2 -2
- package/src/system/Dialog/DialogButton.js +1 -1
- package/src/system/Dropdown/Dropdown.stories.jsx +12 -10
- package/src/system/Form/InlineSelect.js +3 -3
- package/src/system/Form/Input.js +1 -0
- package/src/system/Form/Input.styles.js +2 -2
- package/src/system/Form/Label.js +1 -1
- package/src/system/Form/Radio.stories.jsx +3 -3
- package/src/system/Form/SearchSelect.js +4 -4
- package/src/system/NewForm/FormAutocomplete.js +11 -0
- package/src/system/NewForm/FormAutocomplete.stories.jsx +13 -0
- package/src/system/NewForm/FormSelect.stories.jsx +3 -2
- package/src/system/Notice/Notice.js +3 -1
- package/src/system/Notice/Notice.stories.jsx +8 -12
- package/src/system/Table/Table.stories.jsx +1 -1
- package/src/system/Tabs/Tabs.stories.jsx +3 -3
- package/src/system/Wizard/WizardStep.js +9 -3
- package/src/system/theme/colors.js +5 -171
- package/src/system/theme/generated/valet-theme-dark.json +2924 -0
- package/src/system/theme/generated/valet-theme-light.json +2918 -0
- package/src/system/theme/getColor.js +46 -40
- package/src/system/theme/index.js +150 -172
- package/src/system/theme/textStyles.js +46 -0
- package/tokens/valet-core/$metadata.json +1 -0
- package/tokens/valet-core/$themes.json +15 -91
- package/tokens/valet-core/wpvip-expressive-type.json +8 -8
- package/tokens/valet-core/wpvip-productive-color-dark.json +946 -0
- package/tokens/valet-core/wpvip-productive-color.json +73 -16
- package/.idea/GitLink.xml +0 -6
- package/.idea/codeStyles/Project.xml +0 -69
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/dbnavigator.xml +0 -467
- package/.idea/git_toolbox_prj.xml +0 -15
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/jsLinters/eslint.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/php.xml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.idea/vip-design-system.iml +0 -9
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"type": "color",
|
|
5
5
|
"description": "Use as main application background",
|
|
6
6
|
"value": "#fbfbfb"
|
|
7
|
+
},
|
|
8
|
+
"overlay": {
|
|
9
|
+
"value": "#000000b3",
|
|
10
|
+
"type": "color",
|
|
11
|
+
"description": "Use for modal UI overlay"
|
|
7
12
|
}
|
|
8
13
|
},
|
|
9
14
|
"layer": {
|
|
@@ -38,6 +43,23 @@
|
|
|
38
43
|
"value": "#ffffff",
|
|
39
44
|
"type": "color"
|
|
40
45
|
},
|
|
46
|
+
"label": {
|
|
47
|
+
"default": {
|
|
48
|
+
"value": "#13191e",
|
|
49
|
+
"type": "color"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"text": {
|
|
53
|
+
"default": {
|
|
54
|
+
"value": "#13191e",
|
|
55
|
+
"type": "color"
|
|
56
|
+
},
|
|
57
|
+
"placeholder": {
|
|
58
|
+
"type": "color",
|
|
59
|
+
"value": "#767372",
|
|
60
|
+
"description": "Use for placeholder text in fields"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
41
63
|
"border": {
|
|
42
64
|
"default": {
|
|
43
65
|
"value": "#8f8c8b",
|
|
@@ -179,18 +201,19 @@
|
|
|
179
201
|
"description": "Use for helper text",
|
|
180
202
|
"value": "#6a6766"
|
|
181
203
|
},
|
|
182
|
-
"placeholder": {
|
|
183
|
-
"type": "color",
|
|
184
|
-
"value": "#767372",
|
|
185
|
-
"description": "Use for placeholder text in fields"
|
|
186
|
-
},
|
|
187
204
|
"disabled": {
|
|
188
205
|
"type": "color",
|
|
189
206
|
"value": "#9b9796"
|
|
190
207
|
},
|
|
191
208
|
"inverse": {
|
|
192
209
|
"type": "color",
|
|
193
|
-
"value": "#fbfbfb"
|
|
210
|
+
"value": "#fbfbfb",
|
|
211
|
+
"description": "Use for primary text on an inverse layer"
|
|
212
|
+
},
|
|
213
|
+
"inverse-secondary": {
|
|
214
|
+
"value": "#b3afae",
|
|
215
|
+
"type": "color",
|
|
216
|
+
"description": "Use for secondary text on an inverse layer."
|
|
194
217
|
},
|
|
195
218
|
"accent": {
|
|
196
219
|
"type": "color",
|
|
@@ -625,8 +648,8 @@
|
|
|
625
648
|
"info": {
|
|
626
649
|
"default": {
|
|
627
650
|
"type": "color",
|
|
628
|
-
"
|
|
629
|
-
"
|
|
651
|
+
"value": "#006979",
|
|
652
|
+
"description": "Use for text links"
|
|
630
653
|
},
|
|
631
654
|
"hover": {
|
|
632
655
|
"type": "color",
|
|
@@ -672,14 +695,6 @@
|
|
|
672
695
|
"type": "color"
|
|
673
696
|
}
|
|
674
697
|
},
|
|
675
|
-
"overlay": {
|
|
676
|
-
"type": "color",
|
|
677
|
-
"value": "#767372"
|
|
678
|
-
},
|
|
679
|
-
"interactive": {
|
|
680
|
-
"type": "color",
|
|
681
|
-
"value": "#a66915"
|
|
682
|
-
},
|
|
683
698
|
"tag": {
|
|
684
699
|
"gray": {
|
|
685
700
|
"background": {
|
|
@@ -880,6 +895,48 @@
|
|
|
880
895
|
}
|
|
881
896
|
}
|
|
882
897
|
},
|
|
898
|
+
"toolbar": {
|
|
899
|
+
"background": {
|
|
900
|
+
"value": "#13191e",
|
|
901
|
+
"type": "color",
|
|
902
|
+
"description": "The background color for the top toolbar"
|
|
903
|
+
},
|
|
904
|
+
"text": {
|
|
905
|
+
"default": {
|
|
906
|
+
"value": "#ebe9e8",
|
|
907
|
+
"type": "color",
|
|
908
|
+
"description": "Default text color for the top toolbar's contents"
|
|
909
|
+
},
|
|
910
|
+
"hover": {
|
|
911
|
+
"value": "#ebe9e8",
|
|
912
|
+
"type": "color"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"brand": {
|
|
916
|
+
"value": "#ffffff",
|
|
917
|
+
"type": "color",
|
|
918
|
+
"description": "Use for the logo"
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"logs": {
|
|
922
|
+
"text": {
|
|
923
|
+
"primary": {
|
|
924
|
+
"value": "#ebe9e8",
|
|
925
|
+
"type": "color",
|
|
926
|
+
"description": "Use for monotype output in an invere layer."
|
|
927
|
+
},
|
|
928
|
+
"secondary": {
|
|
929
|
+
"value": "#b3afae",
|
|
930
|
+
"type": "color",
|
|
931
|
+
"description": "Use for timestamp or secondary monotype output in an inverse layer."
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"background": {
|
|
935
|
+
"value": "#13191e",
|
|
936
|
+
"type": "color",
|
|
937
|
+
"description": "Use for the pseudo terminal window background color."
|
|
938
|
+
}
|
|
939
|
+
},
|
|
883
940
|
"rem": {
|
|
884
941
|
"value": 16,
|
|
885
942
|
"type": "other",
|
|
@@ -38,6 +38,23 @@
|
|
|
38
38
|
"value": "#ffffff",
|
|
39
39
|
"type": "color"
|
|
40
40
|
},
|
|
41
|
+
"label": {
|
|
42
|
+
"default": {
|
|
43
|
+
"value": "#13191e",
|
|
44
|
+
"type": "color"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"text": {
|
|
48
|
+
"default": {
|
|
49
|
+
"value": "#13191e",
|
|
50
|
+
"type": "color"
|
|
51
|
+
},
|
|
52
|
+
"placeholder": {
|
|
53
|
+
"type": "color",
|
|
54
|
+
"value": "#767372",
|
|
55
|
+
"description": "Use for placeholder text in fields"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
41
58
|
"border": {
|
|
42
59
|
"default": {
|
|
43
60
|
"value": "#8f8c8b",
|
|
@@ -179,18 +196,19 @@
|
|
|
179
196
|
"description": "Use for helper text",
|
|
180
197
|
"value": "#6a6766"
|
|
181
198
|
},
|
|
182
|
-
"placeholder": {
|
|
183
|
-
"type": "color",
|
|
184
|
-
"value": "#767372",
|
|
185
|
-
"description": "Use for placeholder text in fields"
|
|
186
|
-
},
|
|
187
199
|
"disabled": {
|
|
188
200
|
"type": "color",
|
|
189
201
|
"value": "#9b9796"
|
|
190
202
|
},
|
|
191
203
|
"inverse": {
|
|
192
204
|
"type": "color",
|
|
193
|
-
"value": "#fbfbfb"
|
|
205
|
+
"value": "#fbfbfb",
|
|
206
|
+
"description": "Use for primary text on an inverse layer"
|
|
207
|
+
},
|
|
208
|
+
"inverse-secondary": {
|
|
209
|
+
"value": "#b3afae",
|
|
210
|
+
"type": "color",
|
|
211
|
+
"description": "Use for secondary text on an inverse layer."
|
|
194
212
|
},
|
|
195
213
|
"accent": {
|
|
196
214
|
"type": "color",
|
|
@@ -625,8 +643,8 @@
|
|
|
625
643
|
"info": {
|
|
626
644
|
"default": {
|
|
627
645
|
"type": "color",
|
|
628
|
-
"
|
|
629
|
-
"
|
|
646
|
+
"value": "#006979",
|
|
647
|
+
"description": "Use for text links"
|
|
630
648
|
},
|
|
631
649
|
"hover": {
|
|
632
650
|
"type": "color",
|
|
@@ -3,61 +3,64 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _extends4 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
|
|
10
|
-
var _valetTheme = _interopRequireDefault(require("./generated/valet-theme.json"));
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* Internal dependencies
|
|
14
12
|
*/
|
|
15
|
-
|
|
16
|
-
if (variant === void 0) {
|
|
17
|
-
variant = 'default';
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if (!_valetTheme["default"][color]) {
|
|
21
|
-
return '#000000';
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return _valetTheme["default"][color][variant].value;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports.getColor = getColor;
|
|
28
|
-
|
|
29
|
-
var resolvePath = function resolvePath(object, path, defaultValue) {
|
|
30
|
-
return path.split('.').reduce(function (acc, property) {
|
|
31
|
-
return acc ? acc[property] : defaultValue;
|
|
32
|
-
}, object);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var getVariants = function getVariants(color) {
|
|
36
|
-
var property = resolvePath(_valetTheme["default"], color, {});
|
|
37
|
-
return Object.keys(property).reduce(function (variants, variant) {
|
|
38
|
-
var _extends2;
|
|
39
|
-
|
|
40
|
-
return (0, _extends4["default"])({}, variants, (_extends2 = {}, _extends2[variant] = property[variant].value, _extends2));
|
|
41
|
-
}, {});
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
exports.getVariants = getVariants;
|
|
45
|
-
|
|
46
|
-
var traverse = function traverse(root) {
|
|
47
|
-
if (root.hasOwnProperty('value') && root.hasOwnProperty('type')) {
|
|
48
|
-
return root.value;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return Object.entries(root).reduce(function (acc, _ref) {
|
|
52
|
-
var _extends3;
|
|
53
|
-
|
|
54
|
-
var key = _ref[0],
|
|
55
|
-
value = _ref[1];
|
|
56
|
-
return (0, _extends4["default"])({}, acc, (_extends3 = {}, _extends3[key] = traverse(value), _extends3));
|
|
57
|
-
}, {});
|
|
58
|
-
}; // Valet Theme Productive Theme
|
|
13
|
+
// Valet Theme Productive Theme
|
|
59
14
|
// https://www.figma.com/file/sILtW5Cs2tAnPWrSOEVyER/Productive-Color?node-id=1%3A17&t=4kHdpoprxntk5Ilw-0
|
|
15
|
+
var _default = function _default(theme) {
|
|
16
|
+
var getColor = function getColor(color, variant) {
|
|
17
|
+
if (variant === void 0) {
|
|
18
|
+
variant = 'default';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (!theme[color]) {
|
|
22
|
+
return '#000000';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return theme[color][variant].value;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var resolvePath = function resolvePath(object, path, defaultValue) {
|
|
29
|
+
return path.split('.').reduce(function (acc, property) {
|
|
30
|
+
return acc ? acc[property] : defaultValue;
|
|
31
|
+
}, object);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
var getVariants = function getVariants(color) {
|
|
35
|
+
var property = resolvePath(theme, color, {});
|
|
36
|
+
return Object.keys(property).reduce(function (variants, variant) {
|
|
37
|
+
var _extends2;
|
|
38
|
+
|
|
39
|
+
return (0, _extends4["default"])({}, variants, (_extends2 = {}, _extends2[variant] = property[variant].value, _extends2));
|
|
40
|
+
}, {});
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var traverse = function traverse(root) {
|
|
44
|
+
if (root.hasOwnProperty('value') && root.hasOwnProperty('type')) {
|
|
45
|
+
return root.value;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return Object.entries(root).reduce(function (acc, _ref) {
|
|
49
|
+
var _extends3;
|
|
50
|
+
|
|
51
|
+
var key = _ref[0],
|
|
52
|
+
value = _ref[1];
|
|
53
|
+
return (0, _extends4["default"])({}, acc, (_extends3 = {}, _extends3[key] = traverse(value), _extends3));
|
|
54
|
+
}, {});
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
ValetTheme: traverse(theme),
|
|
59
|
+
getColor: getColor,
|
|
60
|
+
getVariants: getVariants,
|
|
61
|
+
traverse: traverse,
|
|
62
|
+
resolvePath: resolvePath
|
|
63
|
+
};
|
|
64
|
+
};
|
|
60
65
|
|
|
61
|
-
|
|
62
|
-
var ValetTheme = traverse(_valetTheme["default"]);
|
|
63
|
-
exports.ValetTheme = ValetTheme;
|
|
66
|
+
exports["default"] = _default;
|
|
@@ -7,64 +7,38 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
|
|
10
|
-
var _getColor = require("./getColor");
|
|
10
|
+
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _valetThemeLight = _interopRequireDefault(require("./generated/valet-theme-light.json"));
|
|
13
|
+
|
|
14
|
+
var _valetThemeDark = _interopRequireDefault(require("./generated/valet-theme-dark.json"));
|
|
15
|
+
|
|
16
|
+
var _colors = _interopRequireDefault(require("./colors"));
|
|
17
|
+
|
|
18
|
+
var _textStyles = require("./textStyles");
|
|
13
19
|
|
|
14
20
|
/**
|
|
15
21
|
* Internal dependencies
|
|
16
22
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
color: 'heading'
|
|
32
|
-
},
|
|
33
|
-
h3: {
|
|
34
|
-
fontSize: 3,
|
|
35
|
-
marginBottom: 3,
|
|
36
|
-
letterSpacing: '-.005em',
|
|
37
|
-
lineHeight: 1.4,
|
|
38
|
-
fontWeight: 'heading',
|
|
39
|
-
color: 'heading'
|
|
40
|
-
},
|
|
41
|
-
h4: {
|
|
42
|
-
fontSize: 2,
|
|
43
|
-
marginBottom: 1,
|
|
44
|
-
lineHeight: 1.5,
|
|
45
|
-
fontWeight: 'heading',
|
|
46
|
-
color: 'heading'
|
|
47
|
-
},
|
|
48
|
-
h5: {
|
|
49
|
-
fontSize: 1,
|
|
50
|
-
marginBottom: 1,
|
|
51
|
-
lineHeight: 1.5,
|
|
52
|
-
fontWeight: 'heading',
|
|
53
|
-
color: 'heading'
|
|
54
|
-
},
|
|
55
|
-
caps: {
|
|
56
|
-
fontSize: 1,
|
|
57
|
-
marginBottom: 2,
|
|
58
|
-
color: 'muted',
|
|
59
|
-
fontWeight: 'bold',
|
|
60
|
-
letterSpacing: '.05em'
|
|
61
|
-
}
|
|
62
|
-
};
|
|
23
|
+
// Light
|
|
24
|
+
var _ThemeBuilder = (0, _getColor["default"])(_valetThemeLight["default"]),
|
|
25
|
+
getColor = _ThemeBuilder.getColor,
|
|
26
|
+
getVariants = _ThemeBuilder.getVariants,
|
|
27
|
+
ValetTheme = _ThemeBuilder.ValetTheme;
|
|
28
|
+
|
|
29
|
+
var light = (0, _colors["default"])(ValetTheme); // Dark
|
|
30
|
+
|
|
31
|
+
var _ThemeBuilder2 = (0, _getColor["default"])(_valetThemeDark["default"]),
|
|
32
|
+
getColorDark = _ThemeBuilder2.getColor,
|
|
33
|
+
getVariantsDark = _ThemeBuilder2.getVariants,
|
|
34
|
+
ValetThemeDark = _ThemeBuilder2.ValetTheme;
|
|
35
|
+
|
|
36
|
+
var dark = (0, _colors["default"])(ValetThemeDark);
|
|
63
37
|
var outline = {
|
|
64
38
|
outlineStyle: 'solid',
|
|
65
|
-
outlineColor:
|
|
39
|
+
outlineColor: getColor('focus', 'inset'),
|
|
66
40
|
outlineWidth: '1px',
|
|
67
|
-
boxShadow: "0 0 0 1px " +
|
|
41
|
+
boxShadow: "0 0 0 1px " + getColor('focus', 'inset') + ", 0 0 0 3px " + getColor('focus')
|
|
68
42
|
};
|
|
69
43
|
var fonts = {
|
|
70
44
|
body: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
|
|
@@ -72,121 +46,118 @@ var fonts = {
|
|
|
72
46
|
monospace: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',
|
|
73
47
|
serif: 'recoletaregular, Georgia, serif'
|
|
74
48
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
fonts: fonts,
|
|
79
|
-
fontSizes: [10, 12, 14, 19, 32, 40, 56, 64, 96],
|
|
80
|
-
fontWeights: {
|
|
81
|
-
body: 400,
|
|
82
|
-
heading: 500,
|
|
83
|
-
bold: 600
|
|
84
|
-
},
|
|
85
|
-
lineHeights: {
|
|
86
|
-
body: 1.6,
|
|
87
|
-
heading: 1.125
|
|
88
|
-
},
|
|
89
|
-
sizes: {
|
|
90
|
-
sidebar: 260
|
|
91
|
-
},
|
|
92
|
-
radii: [0, 4, 8],
|
|
93
|
-
config: {
|
|
94
|
-
useColorSchemeMediaQuery: false
|
|
95
|
-
},
|
|
96
|
-
initialColorModeName: 'light',
|
|
97
|
-
colors: (0, _extends2["default"])({
|
|
49
|
+
|
|
50
|
+
var getComponentColors = function getComponentColors(theme, gColor, gVariants) {
|
|
51
|
+
return {
|
|
98
52
|
// Valet Theme Colors
|
|
99
53
|
// This has to be in the plural because we already have a flag: text
|
|
100
|
-
texts: (0, _extends2["default"])({},
|
|
54
|
+
texts: (0, _extends2["default"])({}, theme.text, {
|
|
101
55
|
disabled: '#716e6e'
|
|
102
56
|
}),
|
|
103
|
-
button: (0, _extends2["default"])({},
|
|
104
|
-
tag: (0, _extends2["default"])({},
|
|
57
|
+
button: (0, _extends2["default"])({}, theme.button),
|
|
58
|
+
tag: (0, _extends2["default"])({}, theme.tag),
|
|
105
59
|
// Notice
|
|
106
|
-
notice: (0, _extends2["default"])({},
|
|
60
|
+
notice: (0, _extends2["default"])({}, theme.support),
|
|
107
61
|
// layer
|
|
108
|
-
layer: (0, _extends2["default"])({},
|
|
62
|
+
layer: (0, _extends2["default"])({}, theme.layer),
|
|
109
63
|
// icon
|
|
110
|
-
icon: (0, _extends2["default"])({},
|
|
64
|
+
icon: (0, _extends2["default"])({}, theme.icon),
|
|
111
65
|
// Form Controls
|
|
112
|
-
input: (0, _extends2["default"])({},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
66
|
+
input: (0, _extends2["default"])({}, theme.input),
|
|
67
|
+
// Accordion
|
|
68
|
+
accordion: {
|
|
69
|
+
content: {
|
|
70
|
+
background: gColor('layer', '2'),
|
|
71
|
+
text: gColor('text', 'secondary')
|
|
72
|
+
},
|
|
73
|
+
trigger: {
|
|
74
|
+
text: gColor('text', 'primary')
|
|
75
|
+
},
|
|
76
|
+
background: {
|
|
77
|
+
open: gColor('layer', '3'),
|
|
78
|
+
closed: 'transparent',
|
|
79
|
+
hover: gColor('layer', '3')
|
|
80
|
+
}
|
|
81
|
+
},
|
|
116
82
|
optionRow: {
|
|
117
83
|
hover: 'rgba(0,0,0,.02)',
|
|
118
|
-
border: (
|
|
119
|
-
text: (
|
|
120
|
-
textAccent: (
|
|
121
|
-
icon: (
|
|
122
|
-
iconBackground: (
|
|
84
|
+
border: gColor('border', '1'),
|
|
85
|
+
text: gColor('text', 'secondary'),
|
|
86
|
+
textAccent: gColor('link', 'default'),
|
|
87
|
+
icon: gColor('icon', 'primary'),
|
|
88
|
+
iconBackground: gColor('layer', 'accent')
|
|
123
89
|
},
|
|
124
90
|
table: {
|
|
125
|
-
border: (
|
|
126
|
-
heading: (
|
|
127
|
-
text: (
|
|
91
|
+
border: gColor('border', '2'),
|
|
92
|
+
heading: gColor('text', 'primary'),
|
|
93
|
+
text: gColor('text', 'secondary')
|
|
128
94
|
},
|
|
129
95
|
// Common Tokens
|
|
130
|
-
text: (
|
|
131
|
-
heading: (
|
|
132
|
-
background: (
|
|
133
|
-
backgroundSecondary: (
|
|
134
|
-
primary: (
|
|
135
|
-
secondary:
|
|
136
|
-
muted: (
|
|
137
|
-
border: (
|
|
96
|
+
text: gColor('text', 'secondary'),
|
|
97
|
+
heading: gColor('text', 'primary'),
|
|
98
|
+
background: gColor('layer', '2'),
|
|
99
|
+
backgroundSecondary: gColor('layer', '1'),
|
|
100
|
+
primary: gColor('link', 'default'),
|
|
101
|
+
secondary: light.gray['70'],
|
|
102
|
+
muted: gColor('text', 'helper'),
|
|
103
|
+
border: gColor('border', '1'),
|
|
138
104
|
borders: {
|
|
139
|
-
1: (
|
|
140
|
-
2: (
|
|
141
|
-
3: (
|
|
142
|
-
4: (
|
|
143
|
-
inverse: (
|
|
144
|
-
accent: (
|
|
105
|
+
1: gColor('border', '1'),
|
|
106
|
+
2: gColor('border', '2'),
|
|
107
|
+
3: gColor('border', '3'),
|
|
108
|
+
4: gColor('border', '4'),
|
|
109
|
+
inverse: gColor('border', 'inverse'),
|
|
110
|
+
accent: gColor('border', 'accent')
|
|
145
111
|
},
|
|
146
112
|
hover: 'rgba(0,0,0,.02)',
|
|
147
113
|
darken: 'rgba(0,0,0,.05)',
|
|
148
|
-
placeholder: (
|
|
114
|
+
placeholder: gVariants('input.text').placeholder,
|
|
149
115
|
midnight: '#13191E',
|
|
150
|
-
dialog:
|
|
151
|
-
backgroundMuted: (
|
|
116
|
+
dialog: light.gray['0'],
|
|
117
|
+
backgroundMuted: gColor('layer', '1'),
|
|
152
118
|
// Variant colors
|
|
153
|
-
success:
|
|
154
|
-
error:
|
|
155
|
-
warning:
|
|
156
|
-
info:
|
|
119
|
+
success: theme.support.link.success["default"],
|
|
120
|
+
error: theme.support.link.error["default"],
|
|
121
|
+
warning: theme.support.link.warning["default"],
|
|
122
|
+
info: theme.support.link.info["default"],
|
|
157
123
|
// Card
|
|
158
124
|
card: '#fff',
|
|
159
125
|
// Link
|
|
160
|
-
link: (
|
|
126
|
+
link: gColor('link', 'default'),
|
|
161
127
|
links: {
|
|
162
|
-
"default": (
|
|
163
|
-
hover: (
|
|
164
|
-
active: (
|
|
165
|
-
visited: (
|
|
128
|
+
"default": gColor('link', 'default'),
|
|
129
|
+
hover: gColor('link', 'hover'),
|
|
130
|
+
active: gColor('link', 'active'),
|
|
131
|
+
visited: gColor('link', 'visited')
|
|
166
132
|
}
|
|
167
|
-
}
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
var _default = {
|
|
137
|
+
outline: outline,
|
|
138
|
+
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
|
|
139
|
+
fonts: fonts,
|
|
140
|
+
fontSizes: [10, 12, 14, 19, 32, 40, 56, 64, 96],
|
|
141
|
+
fontWeights: {
|
|
142
|
+
body: 400,
|
|
143
|
+
heading: 500,
|
|
144
|
+
bold: 600
|
|
145
|
+
},
|
|
146
|
+
lineHeights: {
|
|
147
|
+
body: 1.6,
|
|
148
|
+
heading: 1.125
|
|
149
|
+
},
|
|
150
|
+
sizes: {
|
|
151
|
+
sidebar: 260
|
|
152
|
+
},
|
|
153
|
+
radii: [0, 4, 8],
|
|
154
|
+
config: {
|
|
155
|
+
useColorSchemeMediaQuery: false
|
|
156
|
+
},
|
|
157
|
+
initialColorModeName: 'light',
|
|
158
|
+
colors: (0, _extends2["default"])({}, getComponentColors(ValetTheme, getColor, getVariants), light, {
|
|
168
159
|
modes: {
|
|
169
|
-
|
|
170
|
-
dark: (0, _extends2["default"])({
|
|
171
|
-
text: _colors.dark.grey['90'],
|
|
172
|
-
heading: _colors.dark.grey['100'],
|
|
173
|
-
background: _colors.dark.grey['5'],
|
|
174
|
-
backgroundSecondary: _colors.dark.grey['10'],
|
|
175
|
-
primary: _colors.light.brand['70'],
|
|
176
|
-
secondary: '#30c',
|
|
177
|
-
muted: _colors.dark.grey['90'],
|
|
178
|
-
link: _colors.dark.brand['90'],
|
|
179
|
-
card: _colors.dark.grey['20'],
|
|
180
|
-
placeholder: _colors.dark.grey['70'],
|
|
181
|
-
border: _colors.dark.grey['30'],
|
|
182
|
-
hover: 'rgba(255,255,255,.02)',
|
|
183
|
-
midnight: _colors.dark.grey['90'],
|
|
184
|
-
success: _colors.dark.green['90'],
|
|
185
|
-
error: _colors.dark.red['90'],
|
|
186
|
-
warning: _colors.dark.yellow['90'],
|
|
187
|
-
dialog: _colors.dark.grey['40'],
|
|
188
|
-
backgroundMuted: _colors.dark.grey['10']
|
|
189
|
-
}, _colors.dark)
|
|
160
|
+
dark: (0, _extends2["default"])({}, getComponentColors(ValetThemeDark, getColorDark, getVariantsDark), dark)
|
|
190
161
|
}
|
|
191
162
|
}),
|
|
192
163
|
shadows: {
|
|
@@ -196,15 +167,8 @@ var _default = {
|
|
|
196
167
|
high: // eslint-disable-next-line max-len
|
|
197
168
|
'0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 100px 80px rgba(0, 0, 0, 0.07)'
|
|
198
169
|
},
|
|
199
|
-
accordion: {
|
|
200
|
-
background: {
|
|
201
|
-
open: (0, _getColor.getVariants)('color.gold')['7'],
|
|
202
|
-
closed: 'transparent',
|
|
203
|
-
hover: (0, _getColor.getVariants)('color.gold')['7']
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
170
|
tag: {
|
|
207
|
-
gold:
|
|
171
|
+
gold: getVariants('tag.gold')
|
|
208
172
|
},
|
|
209
173
|
cards: {
|
|
210
174
|
primary: {
|
|
@@ -336,7 +300,7 @@ var _default = {
|
|
|
336
300
|
}
|
|
337
301
|
}
|
|
338
302
|
},
|
|
339
|
-
text: textStyles,
|
|
303
|
+
text: _textStyles.textStyles,
|
|
340
304
|
dialog: {
|
|
341
305
|
modal: {
|
|
342
306
|
position: 'fixed',
|
|
@@ -376,7 +340,7 @@ var _default = {
|
|
|
376
340
|
fontWeight: 'body',
|
|
377
341
|
fontSize: 2,
|
|
378
342
|
color: 'text',
|
|
379
|
-
backgroundColor:
|
|
343
|
+
backgroundColor: getColor('background', 'primary'),
|
|
380
344
|
'-webkit-font-smoothing': 'antialiased',
|
|
381
345
|
'-moz-osx-font-smoothing': 'grayscale',
|
|
382
346
|
a: {
|
|
@@ -395,7 +359,7 @@ var _default = {
|
|
|
395
359
|
p: {
|
|
396
360
|
color: 'text'
|
|
397
361
|
}
|
|
398
|
-
}, textStyles)
|
|
362
|
+
}, _textStyles.textStyles)
|
|
399
363
|
}
|
|
400
364
|
};
|
|
401
365
|
exports["default"] = _default;
|