@splunk/themes 0.23.0 → 1.0.0-beta.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/CHANGELOG.md +3 -0
- package/CHANGELOG.v1.md +70 -0
- package/design-tokens/colors.js +495 -0
- package/design-tokens/dataViz.js +486 -0
- package/design-tokens/deprecated.js +249 -0
- package/design-tokens/elevation.js +44 -0
- package/design-tokens/index.js +23 -0
- package/design-tokens/spacing-sizing.js +39 -0
- package/design-tokens/typography.js +67 -0
- package/enterprise/comfortable.js +20 -10
- package/enterprise/compact.js +20 -14
- package/enterprise/dark.js +182 -40
- package/enterprise/dataViz.js +491 -0
- package/enterprise/index.js +1 -6
- package/enterprise/light.js +317 -265
- package/index.js +8 -0
- package/mixins/index.js +39 -1
- package/mixins/layout.js +42 -0
- package/mixins/prose.js +67 -0
- package/mixins/tests/prose.unit.js +49 -0
- package/mixins/tests/typography.unit.js +15 -18
- package/mixins/tests/utilityMixins.unit.js +1 -1
- package/mixins/typography.js +141 -144
- package/mixins/utilityMixins.js +2 -5
- package/package.json +5 -8
- package/prisma/base.js +22 -23
- package/prisma/comfortable.js +1 -7
- package/prisma/compact.js +1 -7
- package/prisma/dark.js +77 -19
- package/prisma/dataViz.js +33 -38
- package/prisma/light.js +78 -20
- package/splunk-magnetic/index.js +178 -0
- package/splunk-magnetic/magneticTokensDark.js +706 -0
- package/splunk-magnetic/magneticTokensLight.js +706 -0
- package/storybook-addon-splunk-themes/withSplunkTheme.js +8 -4
- package/types/design-tokens/colors.d.ts +875 -0
- package/types/design-tokens/dataViz.d.ts +433 -0
- package/types/design-tokens/deprecated.d.ts +468 -0
- package/types/design-tokens/elevation.d.ts +49 -0
- package/types/design-tokens/index.d.ts +541 -0
- package/types/design-tokens/spacing-sizing.d.ts +39 -0
- package/types/design-tokens/typography.d.ts +79 -0
- package/types/enterprise/comfortable.d.ts +11 -17
- package/types/enterprise/compact.d.ts +11 -21
- package/types/enterprise/dark.d.ts +412 -113
- package/types/enterprise/dataViz.d.ts +14 -0
- package/types/enterprise/index.d.ts +1 -2
- package/types/enterprise/light.d.ts +439 -139
- package/types/index.d.ts +1 -0
- package/types/mixins/index.d.ts +8 -0
- package/types/mixins/layout.d.ts +21 -0
- package/types/mixins/prose.d.ts +41 -0
- package/types/mixins/tests/prose.unit.d.ts +1 -0
- package/types/mixins/typography.d.ts +5 -12
- package/types/prisma/base.d.ts +12 -16
- package/types/prisma/comfortable.d.ts +2 -17
- package/types/prisma/compact.d.ts +2 -17
- package/types/prisma/dark.d.ts +60 -9
- package/types/prisma/dataViz.d.ts +8 -426
- package/types/prisma/light.d.ts +62 -11
- package/types/splunk-magnetic/index.d.ts +2941 -0
- package/types/splunk-magnetic/magneticTokensDark.d.ts +700 -0
- package/types/splunk-magnetic/magneticTokensLight.d.ts +700 -0
- package/types/storybook-addon-splunk-themes/SplunkThemesTool.d.ts +1 -1
- package/enterprise/prismaAliases.js +0 -95
- package/types/enterprise/prismaAliases.d.ts +0 -47
package/prisma/dark.js
CHANGED
|
@@ -30,6 +30,18 @@ var backgroundColors = {
|
|
|
30
30
|
backgroundColorScrim: 'rgba(0, 0, 0, 0.8)'
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* ## Border colors
|
|
35
|
+
*
|
|
36
|
+
* @colorSet verbose
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
var borderColors = {
|
|
40
|
+
borderColor: '#717275',
|
|
41
|
+
borderColorWeak: '#3d3e43',
|
|
42
|
+
borderColorStrong: '#97989b'
|
|
43
|
+
};
|
|
44
|
+
|
|
33
45
|
/**
|
|
34
46
|
* ## Content colors
|
|
35
47
|
* Content colors should be used for text, icons and dividers.
|
|
@@ -38,16 +50,65 @@ var backgroundColors = {
|
|
|
38
50
|
*/
|
|
39
51
|
|
|
40
52
|
var contentColors = {
|
|
53
|
+
contentBackgroundColorNegativeWeak: 'rgba(160, 29, 38, 0.28)',
|
|
54
|
+
contentColorAccent: '#3d95ff',
|
|
55
|
+
contentColorAccentStrong: '#9ecaff',
|
|
56
|
+
contentColorAccentWeak: '#14437b',
|
|
41
57
|
contentColorActive: '#fafafa',
|
|
42
58
|
contentColorDefault: '#b5b5b5',
|
|
43
59
|
contentColorDisabled: '#6b6b6b',
|
|
60
|
+
contentColorInfo: '#61cafa',
|
|
44
61
|
contentColorInverted: '#000000',
|
|
45
|
-
contentColorMuted: '#909090'
|
|
62
|
+
contentColorMuted: '#909090',
|
|
63
|
+
contentColorNegative: '#ff5252',
|
|
64
|
+
contentColorNegativeStrong: '#ff9e9e',
|
|
65
|
+
contentColorNegativeWeak: '#561a1a',
|
|
66
|
+
contentColorPositive: '#85f415',
|
|
67
|
+
contentColorWarning: '#f49106',
|
|
68
|
+
contentColorLink: '#3993ff'
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* ## Action colors
|
|
73
|
+
* Action colors should be used for buttons.
|
|
74
|
+
*
|
|
75
|
+
* @colorSet verbose
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
var actionColors = {
|
|
79
|
+
actionColorBackgroundPrimary: '#3993ff',
|
|
80
|
+
actionColorBackgroundPrimaryActive: '#6baeff',
|
|
81
|
+
actionColorBackgroundPrimaryDisabled: '#103460',
|
|
82
|
+
actionColorBackgroundPrimaryHover: '#6baeff',
|
|
83
|
+
actionColorBackgroundSecondary: 'transparent',
|
|
84
|
+
actionColorBackgroundSecondaryActive: '#45464f',
|
|
85
|
+
actionColorBackgroundSecondaryDisabled: 'transparent',
|
|
86
|
+
actionColorBackgroundSecondaryHover: '#45464f',
|
|
87
|
+
actionColorBackgroundSubtle: 'transparent',
|
|
88
|
+
actionColorBackgroundSubtleActive: '#0a2f5c',
|
|
89
|
+
actionColorBackgroundSubtleDisabled: 'transparent',
|
|
90
|
+
actionColorBackgroundSubtleHover: '#0a2f5c',
|
|
91
|
+
actionColorBackgroundDestructive: '#ff4242',
|
|
92
|
+
actionColorBackgroundDestructiveActive: '#ff6b6b',
|
|
93
|
+
actionColorBackgroundDestructiveDisabled: '#561a1a',
|
|
94
|
+
actionColorBackgroundDestructiveHover: '#ff6b6b',
|
|
95
|
+
actionColorBackgroundDestructiveSecondary: 'transparent',
|
|
96
|
+
actionColorBackgroundDestructiveSecondaryActive: '#471f1f',
|
|
97
|
+
actionColorBackgroundDestructiveSecondaryDisabled: 'transparent',
|
|
98
|
+
actionColorBackgroundDestructiveSecondaryHover: '#471f1f',
|
|
99
|
+
actionColorBorderSecondary: '#858585',
|
|
100
|
+
actionColorBorderSecondaryActive: '#b2b4bd',
|
|
101
|
+
actionColorBorderSecondaryDisabled: '#42454d',
|
|
102
|
+
actionColorBorderSecondaryHover: '#b2b4bd',
|
|
103
|
+
actionColorBorderDestructiveSecondary: '#ff4242',
|
|
104
|
+
actionColorBorderDestructiveSecondaryActive: '#ff6b6b',
|
|
105
|
+
actionColorBorderDestructiveSecondaryDisabled: '#561a1a',
|
|
106
|
+
actionColorBorderDestructiveSecondaryHover: '#ff6b6b'
|
|
46
107
|
};
|
|
47
108
|
|
|
48
109
|
/**
|
|
49
110
|
* ## Interactive colors
|
|
50
|
-
* Interactive colors are specifically chosen for borders and backgrounds of controls
|
|
111
|
+
* Interactive colors are specifically chosen for borders and backgrounds of controls.
|
|
51
112
|
* "Overlay" colors are intended to be placed over the default background color, such as interactiveColorPrimary.
|
|
52
113
|
* If the default background color is not transparent, the `blend` mixin can be used to create a new color that combines the two.
|
|
53
114
|
*
|
|
@@ -64,8 +125,11 @@ var interactiveColors = {
|
|
|
64
125
|
interactiveColorOverlayHover: 'rgba(255, 255, 255, 0.05)',
|
|
65
126
|
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.2)',
|
|
66
127
|
interactiveColorOverlayDrag: 'rgba(57, 147, 255, 0.16)',
|
|
67
|
-
interactiveColorBackground: '#
|
|
68
|
-
interactiveColorBackgroundDisabled: '
|
|
128
|
+
interactiveColorBackground: '#111215',
|
|
129
|
+
interactiveColorBackgroundDisabled: '#111215',
|
|
130
|
+
interactiveColorAccent: '#3993ff',
|
|
131
|
+
interactiveColorAccentError: '#ff4242',
|
|
132
|
+
interactiveColorAccentErrorStrong: '#ff878b'
|
|
69
133
|
};
|
|
70
134
|
|
|
71
135
|
/**
|
|
@@ -82,7 +146,8 @@ var neutralColors = {
|
|
|
82
146
|
neutral300: '#505158',
|
|
83
147
|
neutral400: '#818285',
|
|
84
148
|
neutral500: '#acacad',
|
|
85
|
-
white: '#ffffff'
|
|
149
|
+
white: '#ffffff',
|
|
150
|
+
transparent: 'transparent'
|
|
86
151
|
};
|
|
87
152
|
|
|
88
153
|
/**
|
|
@@ -112,19 +177,6 @@ var statusColors = {
|
|
|
112
177
|
statusColorCriticalStrong: (0, _tinycolor["default"])('#ff3361').lighten(10).toHexString()
|
|
113
178
|
};
|
|
114
179
|
|
|
115
|
-
/**
|
|
116
|
-
* ## Accent colors
|
|
117
|
-
* Accent colors aid and categorize the visual communication of the system response.
|
|
118
|
-
*
|
|
119
|
-
* @colorSet verbose
|
|
120
|
-
*/
|
|
121
|
-
var accentColors = {
|
|
122
|
-
accentColorPositive: statusColors.statusColorNormal,
|
|
123
|
-
accentColorWarning: statusColors.statusColorMedium,
|
|
124
|
-
accentColorAlert: '#f0581f',
|
|
125
|
-
accentColorNegative: statusColors.statusColorHigh
|
|
126
|
-
};
|
|
127
|
-
|
|
128
180
|
/**
|
|
129
181
|
* ## Elevation shadows
|
|
130
182
|
*
|
|
@@ -155,6 +207,12 @@ var syntaxColors = {
|
|
|
155
207
|
syntaxRed: '#e9627f',
|
|
156
208
|
syntaxTeal: '#45d4ba'
|
|
157
209
|
};
|
|
158
|
-
var
|
|
210
|
+
var deprecated = {
|
|
211
|
+
accentColorPositive: statusColors.statusColorNormal,
|
|
212
|
+
accentColorWarning: statusColors.statusColorMedium,
|
|
213
|
+
accentColorAlert: '#c6400d',
|
|
214
|
+
accentColorNegative: statusColors.statusColorHigh
|
|
215
|
+
};
|
|
216
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), statusColors), elevationShadows), backgroundColors), borderColors), contentColors), neutralColors), interactiveColors), syntaxColors), deprecated);
|
|
159
217
|
var _default = theme;
|
|
160
218
|
exports["default"] = _default;
|
package/prisma/dataViz.js
CHANGED
|
@@ -11,12 +11,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
12
|
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); }
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* Colors should be used in their prescribed order.
|
|
17
|
-
* Don't mix-and-match between sets in the same visualization.
|
|
18
|
-
*
|
|
19
|
-
* ### Static colors
|
|
14
|
+
* #### Static colors
|
|
20
15
|
*
|
|
21
16
|
* @colorSet verbose
|
|
22
17
|
*/
|
|
@@ -44,7 +39,7 @@ var staticColors = {
|
|
|
44
39
|
};
|
|
45
40
|
|
|
46
41
|
/**
|
|
47
|
-
*
|
|
42
|
+
* #### Categorical 1D
|
|
48
43
|
*
|
|
49
44
|
* @colorSet verbose
|
|
50
45
|
*/
|
|
@@ -60,7 +55,7 @@ var categorical1D = {
|
|
|
60
55
|
};
|
|
61
56
|
|
|
62
57
|
/**
|
|
63
|
-
*
|
|
58
|
+
* #### Categorical 1L
|
|
64
59
|
*
|
|
65
60
|
* @colorSet verbose
|
|
66
61
|
*/
|
|
@@ -75,7 +70,7 @@ var categorical1L = {
|
|
|
75
70
|
};
|
|
76
71
|
|
|
77
72
|
/**
|
|
78
|
-
*
|
|
73
|
+
* #### Categorical 2D
|
|
79
74
|
*
|
|
80
75
|
* @colorSet verbose
|
|
81
76
|
*/
|
|
@@ -90,7 +85,7 @@ var categorical2D = {
|
|
|
90
85
|
};
|
|
91
86
|
|
|
92
87
|
/**
|
|
93
|
-
*
|
|
88
|
+
* #### Categorical 2L
|
|
94
89
|
*
|
|
95
90
|
* @colorSet verbose
|
|
96
91
|
*/
|
|
@@ -106,7 +101,7 @@ var categorical2L = {
|
|
|
106
101
|
var categorical = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, categorical1D), categorical1L), categorical2D), categorical2L);
|
|
107
102
|
|
|
108
103
|
/**
|
|
109
|
-
*
|
|
104
|
+
* #### Divergent 1D
|
|
110
105
|
*
|
|
111
106
|
* @colorSet verbose
|
|
112
107
|
*/
|
|
@@ -122,7 +117,7 @@ var divergent1D = {
|
|
|
122
117
|
};
|
|
123
118
|
|
|
124
119
|
/**
|
|
125
|
-
*
|
|
120
|
+
* #### Divergent 1L
|
|
126
121
|
*
|
|
127
122
|
* @colorSet verbose
|
|
128
123
|
*/
|
|
@@ -137,7 +132,7 @@ var divergent1L = {
|
|
|
137
132
|
};
|
|
138
133
|
|
|
139
134
|
/**
|
|
140
|
-
*
|
|
135
|
+
* #### Divergent 2D
|
|
141
136
|
*
|
|
142
137
|
* @colorSet verbose
|
|
143
138
|
*/
|
|
@@ -152,7 +147,7 @@ var divergent2D = {
|
|
|
152
147
|
};
|
|
153
148
|
|
|
154
149
|
/**
|
|
155
|
-
*
|
|
150
|
+
* #### Divergent 2L
|
|
156
151
|
*
|
|
157
152
|
* @colorSet verbose
|
|
158
153
|
*/
|
|
@@ -167,7 +162,7 @@ var divergent2L = {
|
|
|
167
162
|
};
|
|
168
163
|
|
|
169
164
|
/**
|
|
170
|
-
*
|
|
165
|
+
* #### Divergent 3D
|
|
171
166
|
*
|
|
172
167
|
* @colorSet verbose
|
|
173
168
|
*/
|
|
@@ -182,7 +177,7 @@ var divergent3D = {
|
|
|
182
177
|
};
|
|
183
178
|
|
|
184
179
|
/**
|
|
185
|
-
*
|
|
180
|
+
* #### Divergent 3L
|
|
186
181
|
*
|
|
187
182
|
* @colorSet verbose
|
|
188
183
|
*/
|
|
@@ -197,7 +192,7 @@ var divergent3L = {
|
|
|
197
192
|
};
|
|
198
193
|
|
|
199
194
|
/**
|
|
200
|
-
*
|
|
195
|
+
* #### Divergent 4D
|
|
201
196
|
*
|
|
202
197
|
* @colorSet verbose
|
|
203
198
|
*/
|
|
@@ -212,7 +207,7 @@ var divergent4D = {
|
|
|
212
207
|
};
|
|
213
208
|
|
|
214
209
|
/**
|
|
215
|
-
*
|
|
210
|
+
* #### Divergent 4L
|
|
216
211
|
*
|
|
217
212
|
* @colorSet verbose
|
|
218
213
|
*/
|
|
@@ -228,7 +223,7 @@ var divergent4L = {
|
|
|
228
223
|
var divergent = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, divergent1D), divergent1L), divergent2D), divergent2L), divergent3D), divergent3L), divergent4D), divergent4L);
|
|
229
224
|
|
|
230
225
|
/**
|
|
231
|
-
*
|
|
226
|
+
* #### Sequential 1D
|
|
232
227
|
*
|
|
233
228
|
* @colorSet verbose
|
|
234
229
|
*/
|
|
@@ -244,7 +239,7 @@ var sequential1D = {
|
|
|
244
239
|
};
|
|
245
240
|
|
|
246
241
|
/**
|
|
247
|
-
*
|
|
242
|
+
* #### Sequential 1L
|
|
248
243
|
*
|
|
249
244
|
* @colorSet verbose
|
|
250
245
|
*/
|
|
@@ -259,7 +254,7 @@ var sequential1L = {
|
|
|
259
254
|
};
|
|
260
255
|
|
|
261
256
|
/**
|
|
262
|
-
*
|
|
257
|
+
* #### Sequential 2D
|
|
263
258
|
*
|
|
264
259
|
* @colorSet verbose
|
|
265
260
|
*/
|
|
@@ -274,7 +269,7 @@ var sequential2D = {
|
|
|
274
269
|
};
|
|
275
270
|
|
|
276
271
|
/**
|
|
277
|
-
*
|
|
272
|
+
* #### Sequential 2L
|
|
278
273
|
*
|
|
279
274
|
* @colorSet verbose
|
|
280
275
|
*/
|
|
@@ -289,7 +284,7 @@ var sequential2L = {
|
|
|
289
284
|
};
|
|
290
285
|
|
|
291
286
|
/**
|
|
292
|
-
*
|
|
287
|
+
* #### Sequential 3D
|
|
293
288
|
*
|
|
294
289
|
* @colorSet verbose
|
|
295
290
|
*/
|
|
@@ -304,7 +299,7 @@ var sequential3D = {
|
|
|
304
299
|
};
|
|
305
300
|
|
|
306
301
|
/**
|
|
307
|
-
*
|
|
302
|
+
* #### Sequential 3L
|
|
308
303
|
*
|
|
309
304
|
* @colorSet verbose
|
|
310
305
|
*/
|
|
@@ -319,7 +314,7 @@ var sequential3L = {
|
|
|
319
314
|
};
|
|
320
315
|
|
|
321
316
|
/**
|
|
322
|
-
*
|
|
317
|
+
* #### Sequential 4D
|
|
323
318
|
*
|
|
324
319
|
* @colorSet verbose
|
|
325
320
|
*/
|
|
@@ -334,7 +329,7 @@ var sequential4D = {
|
|
|
334
329
|
};
|
|
335
330
|
|
|
336
331
|
/**
|
|
337
|
-
*
|
|
332
|
+
* #### Sequential 4L
|
|
338
333
|
*
|
|
339
334
|
* @colorSet verbose
|
|
340
335
|
*/
|
|
@@ -349,7 +344,7 @@ var sequential4L = {
|
|
|
349
344
|
};
|
|
350
345
|
|
|
351
346
|
/**
|
|
352
|
-
*
|
|
347
|
+
* #### Sequential 5D
|
|
353
348
|
*
|
|
354
349
|
* @colorSet verbose
|
|
355
350
|
*/
|
|
@@ -364,7 +359,7 @@ var sequential5D = {
|
|
|
364
359
|
};
|
|
365
360
|
|
|
366
361
|
/**
|
|
367
|
-
*
|
|
362
|
+
* #### Sequential 5L
|
|
368
363
|
*
|
|
369
364
|
* @colorSet verbose
|
|
370
365
|
*/
|
|
@@ -379,7 +374,7 @@ var sequential5L = {
|
|
|
379
374
|
};
|
|
380
375
|
|
|
381
376
|
/**
|
|
382
|
-
*
|
|
377
|
+
* #### Sequential 6D
|
|
383
378
|
*
|
|
384
379
|
* @colorSet verbose
|
|
385
380
|
*/
|
|
@@ -394,7 +389,7 @@ var sequential6D = {
|
|
|
394
389
|
};
|
|
395
390
|
|
|
396
391
|
/**
|
|
397
|
-
*
|
|
392
|
+
* #### Sequential 6L
|
|
398
393
|
*
|
|
399
394
|
* @colorSet verbose
|
|
400
395
|
*/
|
|
@@ -410,7 +405,7 @@ var sequential6L = {
|
|
|
410
405
|
var sequential = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, sequential1D), sequential1L), sequential2D), sequential2L), sequential3D), sequential3L), sequential4D), sequential4L), sequential5D), sequential5L), sequential6D), sequential6L);
|
|
411
406
|
|
|
412
407
|
/**
|
|
413
|
-
*
|
|
408
|
+
* #### High low 1D
|
|
414
409
|
*
|
|
415
410
|
* @colorSet verbose
|
|
416
411
|
*/
|
|
@@ -421,7 +416,7 @@ var highLow1D = {
|
|
|
421
416
|
};
|
|
422
417
|
|
|
423
418
|
/**
|
|
424
|
-
*
|
|
419
|
+
* #### High low 1L
|
|
425
420
|
*
|
|
426
421
|
* @colorSet verbose
|
|
427
422
|
*/
|
|
@@ -431,7 +426,7 @@ var highLow1L = {
|
|
|
431
426
|
};
|
|
432
427
|
|
|
433
428
|
/**
|
|
434
|
-
*
|
|
429
|
+
* #### High low 2D
|
|
435
430
|
*
|
|
436
431
|
* @colorSet verbose
|
|
437
432
|
*/
|
|
@@ -441,7 +436,7 @@ var highLow2D = {
|
|
|
441
436
|
};
|
|
442
437
|
|
|
443
438
|
/**
|
|
444
|
-
*
|
|
439
|
+
* #### High low 2L
|
|
445
440
|
*
|
|
446
441
|
* @colorSet verbose
|
|
447
442
|
*/
|
|
@@ -451,7 +446,7 @@ var highLow2L = {
|
|
|
451
446
|
};
|
|
452
447
|
|
|
453
448
|
/**
|
|
454
|
-
*
|
|
449
|
+
* #### High low 3D
|
|
455
450
|
*
|
|
456
451
|
* @colorSet verbose
|
|
457
452
|
*/
|
|
@@ -461,7 +456,7 @@ var highLow3D = {
|
|
|
461
456
|
};
|
|
462
457
|
|
|
463
458
|
/**
|
|
464
|
-
*
|
|
459
|
+
* #### High low 3L
|
|
465
460
|
*
|
|
466
461
|
* @colorSet verbose
|
|
467
462
|
*/
|
|
@@ -471,7 +466,7 @@ var highLow3L = {
|
|
|
471
466
|
};
|
|
472
467
|
|
|
473
468
|
/**
|
|
474
|
-
*
|
|
469
|
+
* #### High low 4D
|
|
475
470
|
*
|
|
476
471
|
* @colorSet verbose
|
|
477
472
|
*/
|
|
@@ -481,7 +476,7 @@ var highLow4D = {
|
|
|
481
476
|
};
|
|
482
477
|
|
|
483
478
|
/**
|
|
484
|
-
*
|
|
479
|
+
* #### High low 4L
|
|
485
480
|
*
|
|
486
481
|
* @colorSet verbose
|
|
487
482
|
*/
|
package/prisma/light.js
CHANGED
|
@@ -30,6 +30,18 @@ var backgroundColors = {
|
|
|
30
30
|
backgroundColorScrim: 'rgba(255, 255, 255, 0.75)'
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* ## Border colors
|
|
35
|
+
*
|
|
36
|
+
* @colorSet verbose
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
var borderColors = {
|
|
40
|
+
borderColor: ' #8f8f8f',
|
|
41
|
+
borderColorWeak: '#e0e0e0',
|
|
42
|
+
borderColorStrong: '#6b6b6b'
|
|
43
|
+
};
|
|
44
|
+
|
|
33
45
|
/**
|
|
34
46
|
* ## Content colors
|
|
35
47
|
* Content colors should be used for text, icons and dividers.
|
|
@@ -38,16 +50,65 @@ var backgroundColors = {
|
|
|
38
50
|
*/
|
|
39
51
|
|
|
40
52
|
var contentColors = {
|
|
53
|
+
contentBackgroundColorNegativeWeak: 'rgba(235, 70, 81, 0.20)',
|
|
54
|
+
contentColorAccent: '#0264d7',
|
|
55
|
+
contentColorAccentStrong: '#013f88',
|
|
56
|
+
contentColorAccentWeak: '#b3d6fe',
|
|
41
57
|
contentColorActive: '#2c2c2c',
|
|
42
58
|
contentColorDefault: '#4d4d4d',
|
|
43
59
|
contentColorDisabled: '#878787',
|
|
60
|
+
contentColorInfo: '#006be5',
|
|
44
61
|
contentColorInverted: '#ffffff',
|
|
45
|
-
contentColorMuted: '#6b6b6b'
|
|
62
|
+
contentColorMuted: '#6b6b6b',
|
|
63
|
+
contentColorNegative: '#e00000',
|
|
64
|
+
contentColorNegativeStrong: '#7a0000',
|
|
65
|
+
contentColorNegativeWeak: '#ff9999',
|
|
66
|
+
contentColorPositive: '#407a06',
|
|
67
|
+
contentColorWarning: '#c97705',
|
|
68
|
+
contentColorLink: '#0264d7'
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* ## Action colors
|
|
73
|
+
* Action colors should be used for buttons.
|
|
74
|
+
*
|
|
75
|
+
* @colorSet verbose
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
var actionColors = {
|
|
79
|
+
actionColorBackgroundPrimary: '#0264d7',
|
|
80
|
+
actionColorBackgroundPrimaryActive: '#024ba2',
|
|
81
|
+
actionColorBackgroundPrimaryDisabled: '#72b2fe',
|
|
82
|
+
actionColorBackgroundPrimaryHover: '#024ba2',
|
|
83
|
+
actionColorBackgroundSubtle: 'transparent',
|
|
84
|
+
actionColorBackgroundSecondaryActive: '#d6d6d6',
|
|
85
|
+
actionColorBackgroundSubtleDisabled: 'transparent',
|
|
86
|
+
actionColorBackgroundSecondaryHover: '#d6d6d6',
|
|
87
|
+
actionColorBackgroundSecondary: 'transparent',
|
|
88
|
+
actionColorBackgroundSubtleActive: '#cce3ff',
|
|
89
|
+
actionColorBackgroundSecondaryDisabled: 'transparent',
|
|
90
|
+
actionColorBackgroundSubtleHover: '#cce3ff',
|
|
91
|
+
actionColorBackgroundDestructive: '#e00000',
|
|
92
|
+
actionColorBackgroundDestructiveActive: '#a30000',
|
|
93
|
+
actionColorBackgroundDestructiveDisabled: '#ff9999',
|
|
94
|
+
actionColorBackgroundDestructiveHover: '#a30000',
|
|
95
|
+
actionColorBackgroundDestructiveSecondary: 'transparent',
|
|
96
|
+
actionColorBackgroundDestructiveSecondaryActive: '#ffcccc',
|
|
97
|
+
actionColorBackgroundDestructiveSecondaryDisabled: 'transparent',
|
|
98
|
+
actionColorBackgroundDestructiveSecondaryHover: '#ffcccc',
|
|
99
|
+
actionColorBorderSecondary: '#858585',
|
|
100
|
+
actionColorBorderSecondaryActive: '#525252',
|
|
101
|
+
actionColorBorderSecondaryDisabled: '#d6d6d6',
|
|
102
|
+
actionColorBorderSecondaryHover: '#525252',
|
|
103
|
+
actionColorBorderDestructiveSecondary: '#e00000',
|
|
104
|
+
actionColorBorderDestructiveSecondaryActive: '#a30000',
|
|
105
|
+
actionColorBorderDestructiveSecondaryDisabled: '#ff9999',
|
|
106
|
+
actionColorBorderDestructiveSecondaryHover: '#a30000'
|
|
46
107
|
};
|
|
47
108
|
|
|
48
109
|
/**
|
|
49
110
|
* ## Interactive colors
|
|
50
|
-
* Interactive colors are specifically chosen for
|
|
111
|
+
* Interactive colors are specifically chosen for styling controls.
|
|
51
112
|
* "Overlay" colors are intended to be placed over the default background color, such as interactiveColorPrimary.
|
|
52
113
|
* If the default background color is not transparent, the `blend` mixin can be used to create a new color that combines the two.
|
|
53
114
|
*
|
|
@@ -64,8 +125,11 @@ var interactiveColors = {
|
|
|
64
125
|
interactiveColorOverlayHover: 'rgba(0, 0, 0, 0.03)',
|
|
65
126
|
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.07)',
|
|
66
127
|
interactiveColorOverlayDrag: 'rgba(2, 100, 215, 0.16)',
|
|
67
|
-
interactiveColorBackground: '#
|
|
68
|
-
interactiveColorBackgroundDisabled: '
|
|
128
|
+
interactiveColorBackground: '#f9f9f9',
|
|
129
|
+
interactiveColorBackgroundDisabled: '#ffffff',
|
|
130
|
+
interactiveColorAccent: '#0264d7',
|
|
131
|
+
interactiveColorAccentError: '#e00000',
|
|
132
|
+
interactiveColorAccentErrorStrong: '#a01d26'
|
|
69
133
|
};
|
|
70
134
|
|
|
71
135
|
/**
|
|
@@ -82,7 +146,8 @@ var neutralColors = {
|
|
|
82
146
|
neutral300: '#dddddd',
|
|
83
147
|
neutral400: '#cacaca',
|
|
84
148
|
neutral500: '#b8b8b8',
|
|
85
|
-
black: '#000000'
|
|
149
|
+
black: '#000000',
|
|
150
|
+
transparent: 'transparent'
|
|
86
151
|
};
|
|
87
152
|
|
|
88
153
|
/**
|
|
@@ -112,19 +177,6 @@ var statusColors = {
|
|
|
112
177
|
statusColorCriticalStrong: (0, _tinycolor["default"])('#9e1534').darken(10).toHexString()
|
|
113
178
|
};
|
|
114
179
|
|
|
115
|
-
/**
|
|
116
|
-
* ## Accent colors
|
|
117
|
-
* Accent colors aid and categorize the visual communication of the system response.
|
|
118
|
-
*
|
|
119
|
-
* @colorSet verbose
|
|
120
|
-
*/
|
|
121
|
-
var accentColors = {
|
|
122
|
-
accentColorPositive: statusColors.statusColorNormal,
|
|
123
|
-
accentColorWarning: statusColors.statusColorMedium,
|
|
124
|
-
accentColorAlert: '#c6400d',
|
|
125
|
-
accentColorNegative: statusColors.statusColorHigh
|
|
126
|
-
};
|
|
127
|
-
|
|
128
180
|
/**
|
|
129
181
|
* ## Elevation shadows
|
|
130
182
|
*
|
|
@@ -132,7 +184,7 @@ var accentColors = {
|
|
|
132
184
|
*
|
|
133
185
|
*/
|
|
134
186
|
var elevationShadows = {
|
|
135
|
-
embossShadow: '
|
|
187
|
+
embossShadow: '0px 1px 5px rgba(0, 0, 0, 0.07), 0px 0px 1px rgba(0, 0, 0, 0.07)',
|
|
136
188
|
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)',
|
|
137
189
|
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)',
|
|
138
190
|
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)'
|
|
@@ -155,6 +207,12 @@ var syntaxColors = {
|
|
|
155
207
|
syntaxRed: '#db1e47',
|
|
156
208
|
syntaxTeal: '#1d7c6b'
|
|
157
209
|
};
|
|
158
|
-
var
|
|
210
|
+
var deprecated = {
|
|
211
|
+
accentColorPositive: statusColors.statusColorNormal,
|
|
212
|
+
accentColorWarning: statusColors.statusColorMedium,
|
|
213
|
+
accentColorAlert: '#c6400d',
|
|
214
|
+
accentColorNegative: statusColors.statusColorHigh
|
|
215
|
+
};
|
|
216
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), statusColors), elevationShadows), backgroundColors), borderColors), contentColors), neutralColors), interactiveColors), syntaxColors), deprecated);
|
|
159
217
|
var _default = theme;
|
|
160
218
|
exports["default"] = _default;
|