@splunk/themes 1.0.0-beta.2 → 1.0.0-beta.3
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.v1.md +14 -1
- package/design-tokens/colors.js +56 -7
- package/design-tokens/deprecated.js +5 -0
- package/design-tokens/elevation.js +2 -0
- package/design-tokens/spacing-sizing.js +5 -0
- package/enterprise/comfortable.js +0 -7
- package/enterprise/compact.js +0 -7
- package/enterprise/dark.js +31 -68
- package/enterprise/dataViz.js +0 -77
- package/enterprise/light.js +31 -94
- package/mixins/tests/utilityMixins.unit.js +1 -1
- package/mixins/utilityMixins.js +4 -4
- package/package.json +2 -2
- package/prisma/base.js +0 -39
- package/prisma/comfortable.js +0 -7
- package/prisma/compact.js +0 -11
- package/prisma/dark.js +31 -74
- package/prisma/dataViz.js +0 -197
- package/prisma/light.js +31 -74
- package/types/design-tokens/colors.d.ts +81 -11
- package/types/design-tokens/deprecated.d.ts +10 -0
- package/types/design-tokens/elevation.d.ts +2 -0
- package/types/design-tokens/index.d.ts +23 -1
- package/types/design-tokens/spacing-sizing.d.ts +5 -0
- package/types/enterprise/dark.d.ts +25 -13
- package/types/enterprise/dataViz.d.ts +0 -5
- package/types/enterprise/light.d.ts +24 -13
- package/types/mixins/utilityMixins.d.ts +4 -4
- package/types/prisma/comfortable.d.ts +0 -7
- package/types/prisma/compact.d.ts +0 -11
- package/types/prisma/dark.d.ts +24 -7
- package/types/prisma/dataViz.d.ts +0 -5
- package/types/prisma/light.d.ts +24 -7
- package/types/splunk-magnetic/index.d.ts +138 -6
package/enterprise/light.js
CHANGED
|
@@ -47,16 +47,9 @@ var deprecatedEnterpriseColors = {
|
|
|
47
47
|
errorColorD20: '#b23d30',
|
|
48
48
|
brandColor: '#5cc05c'
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* ## Neutral colors
|
|
53
|
-
* Neutrals are used for dividers and as backup colors that can sparingly be used for cases, when the other defined colors are not enough.
|
|
54
|
-
*
|
|
55
|
-
* @colorSet verbose
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
50
|
var neutralColors = {
|
|
59
51
|
white: '#ffffff',
|
|
52
|
+
neutral50: '#f1f2f4',
|
|
60
53
|
neutral100: deprecatedEnterpriseColors.gray98,
|
|
61
54
|
neutral200: deprecatedEnterpriseColors.gray96,
|
|
62
55
|
neutral300: deprecatedEnterpriseColors.gray92,
|
|
@@ -65,12 +58,6 @@ var neutralColors = {
|
|
|
65
58
|
black: '#000000',
|
|
66
59
|
transparent: 'transparent'
|
|
67
60
|
};
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* ## Usage-based colors
|
|
71
|
-
*
|
|
72
|
-
* @colorSet verbose
|
|
73
|
-
*/
|
|
74
61
|
var usageColors = {
|
|
75
62
|
borderActiveColor: "rgba(0,0,0, 0.5)",
|
|
76
63
|
borderColor: '#8c8c8c',
|
|
@@ -79,13 +66,31 @@ var usageColors = {
|
|
|
79
66
|
focusColor: deprecatedEnterpriseColors.accentColorD10,
|
|
80
67
|
backgroundColorHover: deprecatedEnterpriseColors.gray96
|
|
81
68
|
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
69
|
+
var notificationColors = {
|
|
70
|
+
notificationColorInfoWeak: '#F0E5FF',
|
|
71
|
+
notificationColorInfo: '#8C4CEB',
|
|
72
|
+
notificationColorInfoStrong: '#40226D',
|
|
73
|
+
notificationColorPositiveWeak: '#CCEEFF',
|
|
74
|
+
notificationColorPositive: '#0076B2',
|
|
75
|
+
notificationColorPositiveStrong: '#054362',
|
|
76
|
+
notificationColorCautionWeak: '#FEE7B9',
|
|
77
|
+
notificationColorCaution: '#996600',
|
|
78
|
+
notificationColorCautionStrong: '#664400',
|
|
79
|
+
notificationColorNegativeWeak: '#FFE5E5',
|
|
80
|
+
notificationColorNegative: '#CF1717',
|
|
81
|
+
notificationColorNegativeStrong: '#5D0A0A'
|
|
82
|
+
};
|
|
83
|
+
var severityColors = {
|
|
84
|
+
severityColorCustom: '#5D6596',
|
|
85
|
+
severityColorUnknown: '#656C75',
|
|
86
|
+
severityColorInfo: '#864AE0',
|
|
87
|
+
severityColorNormal: '#017580',
|
|
88
|
+
severityColorNotice: '#A65503',
|
|
89
|
+
severityColorWarning: '#BD410B',
|
|
90
|
+
severityColorAlert: '#CC2D37',
|
|
91
|
+
severityColorCritical: '#C2306F',
|
|
92
|
+
severityColorEmergency: '#B53394'
|
|
93
|
+
};
|
|
89
94
|
var statusColors = {
|
|
90
95
|
statusColorInfo: deprecatedEnterpriseColors.infoColor,
|
|
91
96
|
statusColorInfoWeak: deprecatedEnterpriseColors.infoColorL10,
|
|
@@ -106,26 +111,12 @@ var statusColors = {
|
|
|
106
111
|
statusColorCriticalWeak: deprecatedEnterpriseColors.errorColor,
|
|
107
112
|
statusColorCriticalStrong: deprecatedEnterpriseColors.errorColorD20
|
|
108
113
|
};
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* ## Elevation shadows
|
|
112
|
-
*
|
|
113
|
-
* @shadowSet
|
|
114
|
-
*
|
|
115
|
-
*/
|
|
116
114
|
var elevationShadows = {
|
|
117
115
|
embossShadow: '0px 1px 5px rgba(0, 0, 0, 0.07), 0px 0px 1px rgba(0, 0, 0, 0.07)',
|
|
118
116
|
overlayShadow: '0px 26px 103px rgba(0, 0, 0, 0.13), 0px 11px 18px rgba(0, 0, 0, 0.06), 0px 3px 6px rgba(0, 0, 0, 0.06)',
|
|
119
117
|
dragShadow: '0px 26px 103px rgba(0, 0, 0, 0.13), 0px 11px 18px rgba(0, 0, 0, 0.06), 0px 3px 6px rgba(0, 0, 0, 0.06)',
|
|
120
118
|
modalShadow: '0px 50px 200px rgba(0, 0, 0, 0.3), 0px 29px 66px rgba(0, 0, 0, 0.08), 0px 29px 47px rgba(0, 0, 0, 0.08), 0px 5px 10px rgba(0, 0, 0, 0.03)'
|
|
121
119
|
};
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* ## Syntax colors
|
|
125
|
-
* The following colors should only be used for syntax coloring of code.
|
|
126
|
-
*
|
|
127
|
-
* @colorSet verbose alphabetical
|
|
128
|
-
*/
|
|
129
120
|
var syntaxColors = {
|
|
130
121
|
syntaxBlue: '#006aa3',
|
|
131
122
|
syntaxBrown: '#905b04',
|
|
@@ -137,13 +128,6 @@ var syntaxColors = {
|
|
|
137
128
|
syntaxRed: '#ca163d',
|
|
138
129
|
syntaxTeal: '#1a7060'
|
|
139
130
|
};
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* ## Background colors
|
|
143
|
-
* Background colors should be used only for backgrounds of higher level sections & containers of a UI.
|
|
144
|
-
*
|
|
145
|
-
* @colorSet verbose
|
|
146
|
-
*/
|
|
147
131
|
var backgroundColors = {
|
|
148
132
|
backgroundColorDialog: neutralColors.white,
|
|
149
133
|
backgroundColorFloating: neutralColors.black,
|
|
@@ -154,23 +138,10 @@ var backgroundColors = {
|
|
|
154
138
|
backgroundColorSection: neutralColors.white,
|
|
155
139
|
backgroundColorSidebar: deprecatedEnterpriseColors.gray98
|
|
156
140
|
};
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* ## Interactive state shadows
|
|
160
|
-
*
|
|
161
|
-
* @shadowSet
|
|
162
|
-
*/
|
|
163
141
|
var shadows = {
|
|
164
142
|
focusShadow: "0 0 0 2px ".concat(backgroundColors.backgroundColorPage, ", 0 0 0 5px ").concat(usageColors.focusColor),
|
|
165
143
|
focusShadowInset: "inset 0 0 0 3px ".concat(usageColors.focusColor)
|
|
166
144
|
};
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* ## Content colors
|
|
170
|
-
* Content colors should be used for text, icons and dividers.
|
|
171
|
-
*
|
|
172
|
-
* @colorSet verbose
|
|
173
|
-
*/
|
|
174
145
|
var contentColors = {
|
|
175
146
|
contentBackgroundColorNegativeWeak: 'rgba(235, 70, 81, 0.20)',
|
|
176
147
|
contentColorActive: deprecatedEnterpriseColors.gray30,
|
|
@@ -189,14 +160,6 @@ var contentColors = {
|
|
|
189
160
|
contentColorWarning: '#7d600f',
|
|
190
161
|
contentColorLink: deprecatedEnterpriseColors.accentColorD10
|
|
191
162
|
};
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* ## Action colors
|
|
195
|
-
* Action colors should be used for buttons.
|
|
196
|
-
*
|
|
197
|
-
* @colorSet verbose
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
163
|
var actionColors = {
|
|
201
164
|
actionColorBackgroundPrimary: '#1a8929',
|
|
202
165
|
actionColorBackgroundPrimaryActive: '#125e1c',
|
|
@@ -227,15 +190,7 @@ var actionColors = {
|
|
|
227
190
|
actionColorBorderDestructiveSecondaryDisabled: '#f5aca3',
|
|
228
191
|
actionColorBorderDestructiveSecondaryHover: '#a1382b'
|
|
229
192
|
};
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* ## Interactive colors
|
|
233
|
-
* Interactive colors are specifically chosen for borders and backgrounds of controls and other interactive content.
|
|
234
|
-
*
|
|
235
|
-
* @colorSet verbose
|
|
236
|
-
*/
|
|
237
193
|
var interactiveColors = {
|
|
238
|
-
interactiveColorPrimary: deprecatedEnterpriseColors.brandColor,
|
|
239
194
|
interactiveColorBorder: deprecatedEnterpriseColors.gray60,
|
|
240
195
|
interactiveColorBorderActive: deprecatedEnterpriseColors.gray45,
|
|
241
196
|
interactiveColorBorderHover: 'rgba(0, 0, 0, 0.6)',
|
|
@@ -244,28 +199,16 @@ var interactiveColors = {
|
|
|
244
199
|
interactiveColorOverlayHover: 'rgba(0, 0, 0, 0.03)',
|
|
245
200
|
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.07)',
|
|
246
201
|
interactiveColorOverlayDrag: 'rgba(2, 100, 215, 0.16)',
|
|
247
|
-
interactiveColorBackground:
|
|
248
|
-
interactiveColorBackgroundDisabled:
|
|
202
|
+
interactiveColorBackground: 'transparent',
|
|
203
|
+
interactiveColorBackgroundDisabled: 'transparent',
|
|
249
204
|
interactiveColorAccent: '#1A8929',
|
|
250
205
|
interactiveColorAccentError: deprecatedEnterpriseColors.errorColorD20,
|
|
251
206
|
interactiveColorAccentErrorStrong: '#852d24'
|
|
252
207
|
};
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* ## Backgrounds
|
|
256
|
-
*
|
|
257
|
-
* @colorSet verbose
|
|
258
|
-
*/
|
|
259
208
|
var backgrounds = {
|
|
260
209
|
draggableBackground: "url('data:image/png;base64,".concat(dragHandle, "') 0 0 / 8px 8px repeat")
|
|
261
210
|
};
|
|
262
211
|
var sansFontFamily = "'Splunk Platform Sans', 'Proxima Nova', Roboto, Droid, 'Helvetica Neue', Helvetica, Arial, sans-serif";
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* ## Typography
|
|
266
|
-
*
|
|
267
|
-
* @private
|
|
268
|
-
*/
|
|
269
212
|
var typography = {
|
|
270
213
|
sansFontFamily: sansFontFamily,
|
|
271
214
|
serifFontFamily: "Georgia, 'Times New Roman', Times, serif",
|
|
@@ -286,13 +229,6 @@ var typography = {
|
|
|
286
229
|
lineHeight: '1.5',
|
|
287
230
|
lineLength: '80ch'
|
|
288
231
|
};
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* ## Layers
|
|
292
|
-
* If a variable does not suit your purpose, set a value relatively, such as zindexModal +1.
|
|
293
|
-
*
|
|
294
|
-
* @valueSet
|
|
295
|
-
*/
|
|
296
232
|
var zindexes = {
|
|
297
233
|
zindexLayer: 1000,
|
|
298
234
|
zindexFixedNavbar: 1030,
|
|
@@ -452,8 +388,9 @@ var deprecated = {
|
|
|
452
388
|
syntaxBlueLight: '#006d9c',
|
|
453
389
|
syntaxGreenLight: '#5ba383',
|
|
454
390
|
syntaxPurpleLight: '#b19cd9',
|
|
455
|
-
syntaxRedLight: '#af575a'
|
|
391
|
+
syntaxRedLight: '#af575a',
|
|
392
|
+
interactiveColorPrimary: deprecatedEnterpriseColors.brandColor
|
|
456
393
|
};
|
|
457
|
-
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, deprecatedEnterpriseColors), backgroundColors), actionColors), neutralColors), statusColors), elevationShadows), syntaxColors), usageColors), backgrounds), shadows), typography), contentColors), interactiveColors), zindexes), _dataViz["default"]), deprecated);
|
|
394
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, deprecatedEnterpriseColors), backgroundColors), actionColors), neutralColors), notificationColors), severityColors), statusColors), elevationShadows), syntaxColors), usageColors), backgrounds), shadows), typography), contentColors), interactiveColors), zindexes), _dataViz["default"]), deprecated);
|
|
458
395
|
var _default = theme;
|
|
459
396
|
exports["default"] = _default;
|
|
@@ -69,7 +69,7 @@ describe('overlayColors', function () {
|
|
|
69
69
|
expect(result).toBe('rgb(0, 0, 0)');
|
|
70
70
|
});
|
|
71
71
|
it('uses default theme variables', function () {
|
|
72
|
-
var result = (0, _utilityMixins.overlayColors)(_variables["default"].
|
|
72
|
+
var result = (0, _utilityMixins.overlayColors)(_variables["default"].interactiveColorAccent, _variables["default"].interactiveColorOverlayHover)(defaultProps);
|
|
73
73
|
expect(result).toBe('rgb(67, 152, 255)');
|
|
74
74
|
});
|
|
75
75
|
var enterpriseLightProps = {
|
package/mixins/utilityMixins.js
CHANGED
|
@@ -252,10 +252,10 @@ function screenReaderContent() {
|
|
|
252
252
|
* ```js
|
|
253
253
|
* import styled from 'styled-components';
|
|
254
254
|
* import { overlayColors } from '@splunk/themes/mixins';
|
|
255
|
-
* import {
|
|
255
|
+
* import { interactiveColorAccent, interactiveColorOverlaySelected } from '@splunk/themes/variables';
|
|
256
256
|
*
|
|
257
257
|
* const myButton = styled.button`
|
|
258
|
-
* background: ${overlayColors(
|
|
258
|
+
* background: ${overlayColors(interactiveColorAccent, interactiveColorOverlaySelected)};
|
|
259
259
|
* `
|
|
260
260
|
* ```
|
|
261
261
|
* @name overlayColors
|
|
@@ -280,10 +280,10 @@ function overlayColors(c1, c2) {
|
|
|
280
280
|
* ```js
|
|
281
281
|
* import styled from 'styled-components';
|
|
282
282
|
* import { colorWithAlpha } from '@splunk/themes/mixins';
|
|
283
|
-
* import {
|
|
283
|
+
* import { actionColorBackgroundPrimary } from '@splunk/themes/variables';
|
|
284
284
|
*
|
|
285
285
|
* const myButton = styled.button`
|
|
286
|
-
* background: ${colorWithAlpha(
|
|
286
|
+
* background: ${colorWithAlpha(actionColorBackgroundPrimary, 0.5)};
|
|
287
287
|
* `
|
|
288
288
|
* ```
|
|
289
289
|
* @name colorWithAlpha
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/themes",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"description": "Theme variables and mixins for the Splunk design language",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"babel": "babel src -d . --ignore src/babel-plugin-base64-png,src/tests --ignore \"**/docs\" --extensions .js,.ts,.tsx",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@storybook/react": ">= 7.x",
|
|
28
28
|
"@storybook/theming": ">= 7.x",
|
|
29
29
|
"@types/lodash": "^4.14.156",
|
|
30
|
-
"@types/react": "^
|
|
30
|
+
"@types/react": "^18.2.0",
|
|
31
31
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
32
32
|
"styled-components": "^5.3.10"
|
|
33
33
|
},
|
package/prisma/base.js
CHANGED
|
@@ -21,55 +21,23 @@ function createPrismaBase(_ref) {
|
|
|
21
21
|
light: _light["default"],
|
|
22
22
|
dark: _dark["default"]
|
|
23
23
|
}[colorScheme];
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* ## Misc. colors
|
|
27
|
-
*
|
|
28
|
-
* @colorSet verbose
|
|
29
|
-
*/
|
|
30
24
|
var usageColors = {
|
|
31
25
|
focusColor: colorSchemeVars.interactiveColorPrimary
|
|
32
26
|
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* ## Interactive state shadows
|
|
36
|
-
*
|
|
37
|
-
* @shadowSet
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
27
|
var shadows = {
|
|
41
28
|
hoverShadow: "0 0 0 2px ".concat(colorSchemeVars.backgroundColorPage, ", 0 0 0 5px ").concat(colorSchemeVars.interactiveColorOverlayHover),
|
|
42
29
|
focusShadow: "0 0 0 2px ".concat(colorSchemeVars.backgroundColorPage, ", 0 0 0 5px ").concat(usageColors.focusColor),
|
|
43
30
|
focusShadowInset: "inset 0 0 0 3px ".concat(usageColors.focusColor)
|
|
44
31
|
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* ## Borders
|
|
48
|
-
*
|
|
49
|
-
* @borderSet
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
32
|
var borders = {
|
|
53
33
|
borderColor: "".concat(colorSchemeVars.borderColor),
|
|
54
34
|
borderColorWeak: "".concat(colorSchemeVars.borderColorWeak),
|
|
55
35
|
borderColorStrong: "".concat(colorSchemeVars.borderColorStrong)
|
|
56
36
|
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* ## Backgrounds
|
|
60
|
-
*
|
|
61
|
-
* @colorSet verbose
|
|
62
|
-
*/
|
|
63
37
|
var backgrounds = {
|
|
64
38
|
draggableBackground: "radial-gradient(circle at 1px 1px, ".concat(colorSchemeVars.contentColorMuted, ", ").concat(colorSchemeVars.contentColorMuted, " 1px, transparent 1px) 0 0 / 4px 6px")
|
|
65
39
|
};
|
|
66
40
|
var sansFontFamily = "'Splunk Platform Sans', 'Splunk Data Sans', Roboto, Droid, 'Helvetica Neue', Helvetica, Arial, sans-serif";
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* ## Typography
|
|
70
|
-
*
|
|
71
|
-
* @private
|
|
72
|
-
*/
|
|
73
41
|
var typography = {
|
|
74
42
|
sansFontFamily: sansFontFamily,
|
|
75
43
|
serifFontFamily: "Georgia, 'Times New Roman', Times, serif",
|
|
@@ -90,13 +58,6 @@ function createPrismaBase(_ref) {
|
|
|
90
58
|
lineHeight: '1.5',
|
|
91
59
|
lineLength: '80ch'
|
|
92
60
|
};
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* ## Layers
|
|
96
|
-
* If a variable does not suit your purpose, set a value relatively, such as zindexModal +1.
|
|
97
|
-
*
|
|
98
|
-
* @valueSet
|
|
99
|
-
*/
|
|
100
61
|
var zindexes = {
|
|
101
62
|
zindexLayer: 1000,
|
|
102
63
|
zindexFixedNavbar: 1030,
|
package/prisma/comfortable.js
CHANGED
|
@@ -4,13 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* ## Measures
|
|
9
|
-
* Spacing is used for margin on any element or padding on containers, but can be used for other
|
|
10
|
-
* properties that position elements.
|
|
11
|
-
*
|
|
12
|
-
* @valueSet
|
|
13
|
-
*/
|
|
14
7
|
var measures = {
|
|
15
8
|
spacingXSmall: '4px',
|
|
16
9
|
spacingSmall: '8px',
|
package/prisma/compact.js
CHANGED
|
@@ -4,17 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* ## Measures
|
|
9
|
-
* Spacing is used for margin on any element or padding on containers, but can be used for other
|
|
10
|
-
* properties that position elements.
|
|
11
|
-
* * Larger containers, such as `Card` or `Modal`, use `spacing`.
|
|
12
|
-
* * `spacingHalf` and `spacingQuarter` are primarily for horizontal spacing between smaller elements.
|
|
13
|
-
* * Just because a desired value equals 20, 10, or 5 pixels, does not mean it's appropriate to
|
|
14
|
-
* use spacing variables.
|
|
15
|
-
*
|
|
16
|
-
* @valueSet
|
|
17
|
-
*/
|
|
18
7
|
var measures = {
|
|
19
8
|
spacingXSmall: '4px',
|
|
20
9
|
spacingSmall: '8px',
|
package/prisma/dark.js
CHANGED
|
@@ -12,13 +12,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
12
12
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
|
-
/**
|
|
16
|
-
* ## Background colors
|
|
17
|
-
* Background colors should be used only for backgrounds of higher level sections & containers of a UI.
|
|
18
|
-
*
|
|
19
|
-
* @colorSet verbose
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
15
|
var backgroundColors = {
|
|
23
16
|
backgroundColorPopup: '#27292e',
|
|
24
17
|
backgroundColorSection: '#1a1c20',
|
|
@@ -29,26 +22,11 @@ var backgroundColors = {
|
|
|
29
22
|
backgroundColorDialog: '#1e2024',
|
|
30
23
|
backgroundColorScrim: 'rgba(0, 0, 0, 0.8)'
|
|
31
24
|
};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* ## Border colors
|
|
35
|
-
*
|
|
36
|
-
* @colorSet verbose
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
25
|
var borderColors = {
|
|
40
26
|
borderColor: '#717275',
|
|
41
27
|
borderColorWeak: '#3d3e43',
|
|
42
28
|
borderColorStrong: '#97989b'
|
|
43
29
|
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* ## Content colors
|
|
47
|
-
* Content colors should be used for text, icons and dividers.
|
|
48
|
-
*
|
|
49
|
-
* @colorSet verbose
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
30
|
var contentColors = {
|
|
53
31
|
contentBackgroundColorNegativeWeak: 'rgba(160, 29, 38, 0.28)',
|
|
54
32
|
contentColorAccent: '#3d95ff',
|
|
@@ -67,14 +45,6 @@ var contentColors = {
|
|
|
67
45
|
contentColorWarning: '#f49106',
|
|
68
46
|
contentColorLink: '#3993ff'
|
|
69
47
|
};
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* ## Action colors
|
|
73
|
-
* Action colors should be used for buttons.
|
|
74
|
-
*
|
|
75
|
-
* @colorSet verbose
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
48
|
var actionColors = {
|
|
79
49
|
actionColorBackgroundPrimary: '#3993ff',
|
|
80
50
|
actionColorBackgroundPrimaryActive: '#6baeff',
|
|
@@ -105,18 +75,7 @@ var actionColors = {
|
|
|
105
75
|
actionColorBorderDestructiveSecondaryDisabled: '#561a1a',
|
|
106
76
|
actionColorBorderDestructiveSecondaryHover: '#ff6b6b'
|
|
107
77
|
};
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* ## Interactive colors
|
|
111
|
-
* Interactive colors are specifically chosen for borders and backgrounds of controls.
|
|
112
|
-
* "Overlay" colors are intended to be placed over the default background color, such as interactiveColorPrimary.
|
|
113
|
-
* If the default background color is not transparent, the `blend` mixin can be used to create a new color that combines the two.
|
|
114
|
-
*
|
|
115
|
-
* @colorSet verbose
|
|
116
|
-
*/
|
|
117
|
-
|
|
118
78
|
var interactiveColors = {
|
|
119
|
-
interactiveColorPrimary: '#3993FF',
|
|
120
79
|
interactiveColorBorder: 'rgba(255, 255, 255, 0.5)',
|
|
121
80
|
interactiveColorBorderActive: 'rgba(225, 225, 225, 0.5)',
|
|
122
81
|
interactiveColorBorderHover: 'rgba(255, 255, 255, 0.7)',
|
|
@@ -125,22 +84,15 @@ var interactiveColors = {
|
|
|
125
84
|
interactiveColorOverlayHover: 'rgba(255, 255, 255, 0.05)',
|
|
126
85
|
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.2)',
|
|
127
86
|
interactiveColorOverlayDrag: 'rgba(57, 147, 255, 0.16)',
|
|
128
|
-
interactiveColorBackground: '
|
|
129
|
-
interactiveColorBackgroundDisabled: '
|
|
87
|
+
interactiveColorBackground: 'transparent',
|
|
88
|
+
interactiveColorBackgroundDisabled: 'transparent',
|
|
130
89
|
interactiveColorAccent: '#3993ff',
|
|
131
90
|
interactiveColorAccentError: '#ff4242',
|
|
132
91
|
interactiveColorAccentErrorStrong: '#ff878b'
|
|
133
92
|
};
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* ## Neutral colors
|
|
137
|
-
* Neutrals are used for dividers and as backup colors that can sparingly be used for cases, when the other defined colors are not enough.
|
|
138
|
-
*
|
|
139
|
-
* @colorSet verbose
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
93
|
var neutralColors = {
|
|
143
94
|
black: '#000000',
|
|
95
|
+
neutral50: '#232429',
|
|
144
96
|
neutral100: '#33343b',
|
|
145
97
|
neutral200: '#43454b',
|
|
146
98
|
neutral300: '#505158',
|
|
@@ -149,13 +101,31 @@ var neutralColors = {
|
|
|
149
101
|
white: '#ffffff',
|
|
150
102
|
transparent: 'transparent'
|
|
151
103
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
104
|
+
var notificationColors = {
|
|
105
|
+
notificationColorInfoWeak: '#2E1B4B',
|
|
106
|
+
notificationColorInfo: '#AC75FF',
|
|
107
|
+
notificationColorInfoStrong: '#D1B2FF',
|
|
108
|
+
notificationColorPositiveWeak: '#092635',
|
|
109
|
+
notificationColorPositive: '#1AB2FF',
|
|
110
|
+
notificationColorPositiveStrong: '#99DDFF',
|
|
111
|
+
notificationColorCautionWeak: '#331E00',
|
|
112
|
+
notificationColorCaution: '#FFAF0F',
|
|
113
|
+
notificationColorCautionStrong: '#FDDC9B',
|
|
114
|
+
notificationColorNegativeWeak: '#391313',
|
|
115
|
+
notificationColorNegative: '#FF5252',
|
|
116
|
+
notificationColorNegativeStrong: '#FF9999'
|
|
117
|
+
};
|
|
118
|
+
var severityColors = {
|
|
119
|
+
severityColorCustom: '#868EC2',
|
|
120
|
+
severityColorUnknown: '#889099',
|
|
121
|
+
severityColorInfo: '#A974F7',
|
|
122
|
+
severityColorNormal: '#04A4B0',
|
|
123
|
+
severityColorNotice: '#D6900D',
|
|
124
|
+
severityColorWarning: '#F26722',
|
|
125
|
+
severityColorAlert: '#FA5762',
|
|
126
|
+
severityColorCritical: '#F2638C',
|
|
127
|
+
severityColorEmergency: '#E85FC6'
|
|
128
|
+
};
|
|
159
129
|
var statusColors = {
|
|
160
130
|
statusColorInfo: '#61cafa',
|
|
161
131
|
statusColorInfoWeak: (0, _tinycolor["default"])('#61cafa').darken(10).toHexString(),
|
|
@@ -176,26 +146,12 @@ var statusColors = {
|
|
|
176
146
|
statusColorCriticalWeak: (0, _tinycolor["default"])('#ff3361').darken(10).toHexString(),
|
|
177
147
|
statusColorCriticalStrong: (0, _tinycolor["default"])('#ff3361').lighten(10).toHexString()
|
|
178
148
|
};
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* ## Elevation shadows
|
|
182
|
-
*
|
|
183
|
-
* @shadowSet
|
|
184
|
-
*
|
|
185
|
-
*/
|
|
186
149
|
var elevationShadows = {
|
|
187
150
|
embossShadow: '0px 1px 5px rgba(0, 0, 0, 0.35), 0px 0px 1px rgba(0, 0, 0, 0.35)',
|
|
188
151
|
overlayShadow: '0px 26px 103px rgba(0, 0, 0, 0.64), 0px 11px 18px rgba(0, 0, 0, 0.32), 0px 3px 6px rgba(0, 0, 0, 0.3)',
|
|
189
152
|
dragShadow: '0px 26px 103px rgba(0, 0, 0, 0.64), 0px 11px 18px rgba(0, 0, 0, 0.32), 0px 3px 6px rgba(0, 0, 0, 0.3)',
|
|
190
153
|
modalShadow: '0px 50px 200px #000000, 0px 29px 66px rgba(0, 0, 0, 0.41), 0px 14px 47px rgba(0, 0, 0, 0.17), 0px 5px 10px rgba(0, 0, 0, 0.15)'
|
|
191
154
|
};
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* ## Syntax colors
|
|
195
|
-
* Syntax colors are used only for code blocks.
|
|
196
|
-
*
|
|
197
|
-
* @colorSet verbose alphabetical
|
|
198
|
-
*/
|
|
199
155
|
var syntaxColors = {
|
|
200
156
|
syntaxBlue: '#6cd0f0',
|
|
201
157
|
syntaxBrown: '#fccf87',
|
|
@@ -211,8 +167,9 @@ var deprecated = {
|
|
|
211
167
|
accentColorPositive: statusColors.statusColorNormal,
|
|
212
168
|
accentColorWarning: statusColors.statusColorMedium,
|
|
213
169
|
accentColorAlert: '#c6400d',
|
|
214
|
-
accentColorNegative: statusColors.statusColorHigh
|
|
170
|
+
accentColorNegative: statusColors.statusColorHigh,
|
|
171
|
+
interactiveColorPrimary: '#3993FF'
|
|
215
172
|
};
|
|
216
|
-
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), statusColors), elevationShadows), backgroundColors), borderColors), contentColors), neutralColors), interactiveColors), syntaxColors), deprecated);
|
|
173
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), notificationColors), severityColors), statusColors), elevationShadows), backgroundColors), borderColors), contentColors), neutralColors), interactiveColors), syntaxColors), deprecated);
|
|
217
174
|
var _default = theme;
|
|
218
175
|
exports["default"] = _default;
|