@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* #### Action colors
|
|
3
3
|
*
|
|
4
|
-
* Action colors are used **exclusively** for
|
|
4
|
+
* Action colors are used **exclusively** for styling Buttons borders and backgrounds.
|
|
5
5
|
* They define interaction states for primary, secondary, subtle, and destructive buttons.
|
|
6
6
|
*
|
|
7
7
|
* @categoryColor
|
|
@@ -125,13 +125,12 @@ declare const actionColors: {
|
|
|
125
125
|
*
|
|
126
126
|
* Interactive colors should be used **exclusively** for styling Data Entry components: Input, Select, etc.
|
|
127
127
|
*
|
|
128
|
+
* "Overlay" colors are intended to be placed over the default background color, such as `interactiveColorAccent`.
|
|
129
|
+
* If the default background color is not transparent, the `blend` mixin can be used to create a new color that combines the two.
|
|
130
|
+
*
|
|
128
131
|
* @categoryColor
|
|
129
132
|
*/
|
|
130
133
|
declare const interactiveColors: {
|
|
131
|
-
/**
|
|
132
|
-
* Primary color for interactive elements in Data entry components.
|
|
133
|
-
*/
|
|
134
|
-
interactiveColorPrimary: string;
|
|
135
134
|
/**
|
|
136
135
|
* Default border color for Data entry components.
|
|
137
136
|
*/
|
|
@@ -201,6 +200,10 @@ declare const neutralColors: {
|
|
|
201
200
|
/**
|
|
202
201
|
* Least visually emphasized. Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
203
202
|
*/
|
|
203
|
+
neutral50: string;
|
|
204
|
+
/**
|
|
205
|
+
* Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
206
|
+
*/
|
|
204
207
|
neutral100: string;
|
|
205
208
|
/**
|
|
206
209
|
* Not for text, does not pass 3:1 graphical contrast in light & dark color schemes.
|
|
@@ -347,9 +350,53 @@ declare const uiColors: {
|
|
|
347
350
|
*/
|
|
348
351
|
focusColor: string;
|
|
349
352
|
};
|
|
353
|
+
/**
|
|
354
|
+
* #### Notification colors
|
|
355
|
+
*
|
|
356
|
+
* Use notifications colors to communicate messages and guidance directly to users.
|
|
357
|
+
* For example in Message Bars, Toasts, or other notification components to set tone and urgency in a conversational context.
|
|
358
|
+
*
|
|
359
|
+
* Weak variants do not meet graphical or text contrast and should only be used decoratively.
|
|
360
|
+
*
|
|
361
|
+
* @categoryColor
|
|
362
|
+
*/
|
|
363
|
+
declare const notificationColors: {
|
|
364
|
+
notificationColorInfoWeak: string;
|
|
365
|
+
notificationColorInfo: string;
|
|
366
|
+
notificationColorInfoStrong: string;
|
|
367
|
+
notificationColorPositiveWeak: string;
|
|
368
|
+
notificationColorPositive: string;
|
|
369
|
+
notificationColorPositiveStrong: string;
|
|
370
|
+
notificationColorCautionWeak: string;
|
|
371
|
+
notificationColorCaution: string;
|
|
372
|
+
notificationColorCautionStrong: string;
|
|
373
|
+
notificationColorNegativeWeak: string;
|
|
374
|
+
notificationColorNegative: string;
|
|
375
|
+
notificationColorNegativeStrong: string;
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* #### Severity colors
|
|
379
|
+
*
|
|
380
|
+
* Use severity colors for icons, indicators, and visual signals to help users quickly scan for criticality, risk, or state without relying only on text.
|
|
381
|
+
* Severity colors should be used to aid identifying the semantic meaning of an element; not used to communicate tone.
|
|
382
|
+
*
|
|
383
|
+
* @categoryColor
|
|
384
|
+
*/
|
|
385
|
+
declare const severityColors: {
|
|
386
|
+
severityColorCustom: string;
|
|
387
|
+
severityColorUnknown: string;
|
|
388
|
+
severityColorInfo: string;
|
|
389
|
+
severityColorNormal: string;
|
|
390
|
+
severityColorNotice: string;
|
|
391
|
+
severityColorWarning: string;
|
|
392
|
+
severityColorAlert: string;
|
|
393
|
+
severityColorCritical: string;
|
|
394
|
+
severityColorEmergency: string;
|
|
395
|
+
};
|
|
350
396
|
/**
|
|
351
397
|
* #### Status colors
|
|
352
|
-
*
|
|
398
|
+
* Use status colors to convey informative, positive, caution or negative content status.
|
|
399
|
+
* Weak variants do not meet graphical or text contrast and should only be used decoratively.
|
|
353
400
|
*
|
|
354
401
|
* @categoryColor
|
|
355
402
|
*/
|
|
@@ -563,6 +610,27 @@ declare const colors: {
|
|
|
563
610
|
* Brighter, more prominent critical color.
|
|
564
611
|
*/
|
|
565
612
|
statusColorCriticalStrong: string;
|
|
613
|
+
severityColorCustom: string;
|
|
614
|
+
severityColorUnknown: string;
|
|
615
|
+
severityColorInfo: string;
|
|
616
|
+
severityColorNormal: string;
|
|
617
|
+
severityColorNotice: string;
|
|
618
|
+
severityColorWarning: string;
|
|
619
|
+
severityColorAlert: string;
|
|
620
|
+
severityColorCritical: string;
|
|
621
|
+
severityColorEmergency: string;
|
|
622
|
+
notificationColorInfoWeak: string;
|
|
623
|
+
notificationColorInfo: string;
|
|
624
|
+
notificationColorInfoStrong: string;
|
|
625
|
+
notificationColorPositiveWeak: string;
|
|
626
|
+
notificationColorPositive: string;
|
|
627
|
+
notificationColorPositiveStrong: string;
|
|
628
|
+
notificationColorCautionWeak: string;
|
|
629
|
+
notificationColorCaution: string;
|
|
630
|
+
notificationColorCautionStrong: string;
|
|
631
|
+
notificationColorNegativeWeak: string;
|
|
632
|
+
notificationColorNegative: string;
|
|
633
|
+
notificationColorNegativeStrong: string;
|
|
566
634
|
/**
|
|
567
635
|
* Visual focus ring color used for focus box-shadow. Should not be directly applied to UI elements.
|
|
568
636
|
*/
|
|
@@ -667,6 +735,10 @@ declare const colors: {
|
|
|
667
735
|
/**
|
|
668
736
|
* Least visually emphasized. Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
669
737
|
*/
|
|
738
|
+
neutral50: string;
|
|
739
|
+
/**
|
|
740
|
+
* Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
741
|
+
*/
|
|
670
742
|
neutral100: string;
|
|
671
743
|
/**
|
|
672
744
|
* Not for text, does not pass 3:1 graphical contrast in light & dark color schemes.
|
|
@@ -692,10 +764,6 @@ declare const colors: {
|
|
|
692
764
|
* Transparent background color.
|
|
693
765
|
*/
|
|
694
766
|
transparent: string;
|
|
695
|
-
/**
|
|
696
|
-
* Primary color for interactive elements in Data entry components.
|
|
697
|
-
*/
|
|
698
|
-
interactiveColorPrimary: string;
|
|
699
767
|
/**
|
|
700
768
|
* Default border color for Data entry components.
|
|
701
769
|
*/
|
|
@@ -867,9 +935,11 @@ type NeutralColors = typeof neutralColors;
|
|
|
867
935
|
type BackgroundColors = typeof backgroundColors;
|
|
868
936
|
type ContentColors = typeof contentColors;
|
|
869
937
|
type UIColors = typeof uiColors;
|
|
938
|
+
type NotificationColors = typeof notificationColors;
|
|
939
|
+
type SeverityColors = typeof severityColors;
|
|
870
940
|
type StatusColors = typeof statusColors;
|
|
871
941
|
type SyntaxColors = typeof syntaxColors;
|
|
872
942
|
type BorderColors = typeof borderColors;
|
|
873
943
|
type Colors = typeof colors;
|
|
874
944
|
export default colors;
|
|
875
|
-
export type { ActionColors, InteractiveColors, NeutralColors, BackgroundColors, ContentColors, UIColors, StatusColors, SyntaxColors, BorderColors, Colors, };
|
|
945
|
+
export type { ActionColors, InteractiveColors, NeutralColors, BackgroundColors, ContentColors, UIColors, NotificationColors, SeverityColors, StatusColors, SyntaxColors, BorderColors, Colors, };
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
* @categoryValue
|
|
5
5
|
*/
|
|
6
6
|
declare const deprecated: {
|
|
7
|
+
/**
|
|
8
|
+
* Use a more specific token based on the semantic use case:
|
|
9
|
+
* [`interactiveColorAccent`](#interactiveColorAccent), [`contentColorAccent`](#contentColorAccent), or [`focusColor`](#focusColor).
|
|
10
|
+
*/
|
|
11
|
+
interactiveColorPrimary: string;
|
|
7
12
|
/**
|
|
8
13
|
* Use `statusColorNormal`, `accentColor`, or ...
|
|
9
14
|
*/
|
|
@@ -236,6 +241,11 @@ declare const deprecated: {
|
|
|
236
241
|
type Deprecated = typeof deprecated;
|
|
237
242
|
export type { Deprecated };
|
|
238
243
|
declare const _default: {
|
|
244
|
+
/**
|
|
245
|
+
* Use a more specific token based on the semantic use case:
|
|
246
|
+
* [`interactiveColorAccent`](#interactiveColorAccent), [`contentColorAccent`](#contentColorAccent), or [`focusColor`](#focusColor).
|
|
247
|
+
*/
|
|
248
|
+
interactiveColorPrimary: string;
|
|
239
249
|
/**
|
|
240
250
|
* Use `statusColorNormal`, `accentColor`, or ...
|
|
241
251
|
*/
|
|
@@ -250,6 +250,7 @@ declare const designTokens: {
|
|
|
250
250
|
zindexModal: number;
|
|
251
251
|
zindexPopover: number;
|
|
252
252
|
zindexToastMessages: number;
|
|
253
|
+
interactiveColorPrimary: string;
|
|
253
254
|
accentColorPositive: string;
|
|
254
255
|
accentColorWarning: string;
|
|
255
256
|
accentColorAlert: string;
|
|
@@ -460,6 +461,27 @@ declare const designTokens: {
|
|
|
460
461
|
statusColorCritical: string;
|
|
461
462
|
statusColorCriticalWeak: string;
|
|
462
463
|
statusColorCriticalStrong: string;
|
|
464
|
+
severityColorCustom: string;
|
|
465
|
+
severityColorUnknown: string;
|
|
466
|
+
severityColorInfo: string;
|
|
467
|
+
severityColorNormal: string;
|
|
468
|
+
severityColorNotice: string;
|
|
469
|
+
severityColorWarning: string;
|
|
470
|
+
severityColorAlert: string;
|
|
471
|
+
severityColorCritical: string;
|
|
472
|
+
severityColorEmergency: string;
|
|
473
|
+
notificationColorInfoWeak: string;
|
|
474
|
+
notificationColorInfo: string;
|
|
475
|
+
notificationColorInfoStrong: string;
|
|
476
|
+
notificationColorPositiveWeak: string;
|
|
477
|
+
notificationColorPositive: string;
|
|
478
|
+
notificationColorPositiveStrong: string;
|
|
479
|
+
notificationColorCautionWeak: string;
|
|
480
|
+
notificationColorCaution: string;
|
|
481
|
+
notificationColorCautionStrong: string;
|
|
482
|
+
notificationColorNegativeWeak: string;
|
|
483
|
+
notificationColorNegative: string;
|
|
484
|
+
notificationColorNegativeStrong: string;
|
|
463
485
|
focusColor: string;
|
|
464
486
|
contentBackgroundColorNegativeWeak: string;
|
|
465
487
|
contentColorLink: string;
|
|
@@ -486,6 +508,7 @@ declare const designTokens: {
|
|
|
486
508
|
backgroundColorFloating: string;
|
|
487
509
|
backgroundColorScrim: string;
|
|
488
510
|
black: string;
|
|
511
|
+
neutral50: string;
|
|
489
512
|
neutral100: string;
|
|
490
513
|
neutral200: string;
|
|
491
514
|
neutral300: string;
|
|
@@ -493,7 +516,6 @@ declare const designTokens: {
|
|
|
493
516
|
neutral500: string;
|
|
494
517
|
white: string;
|
|
495
518
|
transparent: string;
|
|
496
|
-
interactiveColorPrimary: string;
|
|
497
519
|
interactiveColorBorder: string;
|
|
498
520
|
interactiveColorBorderActive: string;
|
|
499
521
|
interactiveColorBorderHover: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* #### Spacing
|
|
3
3
|
*
|
|
4
|
+
* Use these tokens for adding margin between elements or padding within containers.
|
|
5
|
+
*
|
|
6
|
+
* Just because a spacing token is equal to a pixel value you may need, it does not mean it's appropriate to
|
|
7
|
+
* use the spacing variables.
|
|
8
|
+
*
|
|
4
9
|
* @categorySpacing
|
|
5
10
|
*/
|
|
6
11
|
declare const spacing: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
2
|
draggableBackground: string;
|
|
3
|
+
interactiveColorPrimary: string;
|
|
3
4
|
accentColorPositive: string;
|
|
4
5
|
accentColorWarning: string;
|
|
5
6
|
accentColorAlert: string;
|
|
@@ -14,7 +15,6 @@ declare const theme: {
|
|
|
14
15
|
border: string;
|
|
15
16
|
borderDark: string;
|
|
16
17
|
borderLight: string;
|
|
17
|
-
interactiveColorPrimary: string;
|
|
18
18
|
interactiveColorBorder: string;
|
|
19
19
|
interactiveColorBorderActive: string;
|
|
20
20
|
interactiveColorBorderHover: string;
|
|
@@ -60,6 +60,7 @@ declare const theme: {
|
|
|
60
60
|
syntaxRed: string;
|
|
61
61
|
syntaxTeal: string;
|
|
62
62
|
black: string;
|
|
63
|
+
neutral50: string;
|
|
63
64
|
neutral100: string;
|
|
64
65
|
neutral200: string;
|
|
65
66
|
neutral300: string;
|
|
@@ -93,6 +94,27 @@ declare const theme: {
|
|
|
93
94
|
statusColorCritical: string;
|
|
94
95
|
statusColorCriticalWeak: string;
|
|
95
96
|
statusColorCriticalStrong: string;
|
|
97
|
+
severityColorCustom: string;
|
|
98
|
+
severityColorUnknown: string;
|
|
99
|
+
severityColorInfo: string;
|
|
100
|
+
severityColorNormal: string;
|
|
101
|
+
severityColorNotice: string;
|
|
102
|
+
severityColorWarning: string;
|
|
103
|
+
severityColorAlert: string;
|
|
104
|
+
severityColorCritical: string;
|
|
105
|
+
severityColorEmergency: string;
|
|
106
|
+
notificationColorInfoWeak: string;
|
|
107
|
+
notificationColorInfo: string;
|
|
108
|
+
notificationColorInfoStrong: string;
|
|
109
|
+
notificationColorPositiveWeak: string;
|
|
110
|
+
notificationColorPositive: string;
|
|
111
|
+
notificationColorPositiveStrong: string;
|
|
112
|
+
notificationColorCautionWeak: string;
|
|
113
|
+
notificationColorCaution: string;
|
|
114
|
+
notificationColorCautionStrong: string;
|
|
115
|
+
notificationColorNegativeWeak: string;
|
|
116
|
+
notificationColorNegative: string;
|
|
117
|
+
notificationColorNegativeStrong: string;
|
|
96
118
|
actionColorBackgroundPrimary: string;
|
|
97
119
|
actionColorBackgroundPrimaryActive: string;
|
|
98
120
|
actionColorBackgroundPrimaryDisabled: string;
|
|
@@ -107,12 +129,7 @@ declare const theme: {
|
|
|
107
129
|
actionColorBackgroundSubtleHover: string;
|
|
108
130
|
actionColorBackgroundDestructive: string;
|
|
109
131
|
actionColorBackgroundDestructiveActive: string;
|
|
110
|
-
actionColorBackgroundDestructiveDisabled: string;
|
|
111
|
-
* ## Syntax colors
|
|
112
|
-
* Syntax colors are used only for code blocks.
|
|
113
|
-
*
|
|
114
|
-
* @colorSet verbose alphabetical
|
|
115
|
-
*/
|
|
132
|
+
actionColorBackgroundDestructiveDisabled: string;
|
|
116
133
|
actionColorBackgroundDestructiveHover: string;
|
|
117
134
|
actionColorBackgroundDestructiveSecondary: string;
|
|
118
135
|
actionColorBackgroundDestructiveSecondaryActive: string;
|
|
@@ -295,12 +312,7 @@ declare const theme: {
|
|
|
295
312
|
sequential6D4: string;
|
|
296
313
|
sequential6D5: string;
|
|
297
314
|
sequential6D6: string;
|
|
298
|
-
sequential6D7: string;
|
|
299
|
-
* ## Background colors
|
|
300
|
-
* Background colors should be used only for backgrounds of higher level sections & containers of a UI.
|
|
301
|
-
*
|
|
302
|
-
* @colorSet verbose
|
|
303
|
-
*/
|
|
315
|
+
sequential6D7: string;
|
|
304
316
|
sequential5L1: string;
|
|
305
317
|
sequential5L2: string;
|
|
306
318
|
sequential5L3: string;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { Categorical, DataViz, Divergent, HighLow, Sequential, StaticColors } from '../design-tokens/dataViz';
|
|
2
|
-
/**
|
|
3
|
-
* #### Static colors
|
|
4
|
-
*
|
|
5
|
-
* @colorSet verbose
|
|
6
|
-
*/
|
|
7
2
|
declare const staticColors: StaticColors;
|
|
8
3
|
declare const categorical: Categorical;
|
|
9
4
|
declare const divergent: Divergent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
+
interactiveColorPrimary: string;
|
|
2
3
|
accentColorPositive: string;
|
|
3
4
|
accentColorWarning: string;
|
|
4
5
|
accentColorAlert: string;
|
|
@@ -293,12 +294,7 @@ declare const theme: {
|
|
|
293
294
|
divergent1L3: string;
|
|
294
295
|
divergent1L4: string;
|
|
295
296
|
divergent1L5: string;
|
|
296
|
-
divergent1L6: string;
|
|
297
|
-
* ## Neutral colors
|
|
298
|
-
* Neutrals are used for dividers and as backup colors that can sparingly be used for cases, when the other defined colors are not enough.
|
|
299
|
-
*
|
|
300
|
-
* @colorSet verbose
|
|
301
|
-
*/
|
|
297
|
+
divergent1L6: string;
|
|
302
298
|
divergent1L7: string;
|
|
303
299
|
divergent1D1: string;
|
|
304
300
|
divergent1D2: string;
|
|
@@ -361,7 +357,6 @@ declare const theme: {
|
|
|
361
357
|
zindexModal: number;
|
|
362
358
|
zindexPopover: number;
|
|
363
359
|
zindexToastMessages: number;
|
|
364
|
-
interactiveColorPrimary: string;
|
|
365
360
|
interactiveColorBorder: string;
|
|
366
361
|
interactiveColorBorderActive: string;
|
|
367
362
|
interactiveColorBorderHover: string;
|
|
@@ -443,19 +438,35 @@ declare const theme: {
|
|
|
443
438
|
statusColorMedium: string;
|
|
444
439
|
statusColorMediumWeak: string;
|
|
445
440
|
statusColorMediumStrong: string;
|
|
446
|
-
/**
|
|
447
|
-
* ## Layers
|
|
448
|
-
* If a variable does not suit your purpose, set a value relatively, such as zindexModal +1.
|
|
449
|
-
*
|
|
450
|
-
* @valueSet
|
|
451
|
-
*/
|
|
452
441
|
statusColorHigh: string;
|
|
453
442
|
statusColorHighWeak: string;
|
|
454
443
|
statusColorHighStrong: string;
|
|
455
444
|
statusColorCritical: string;
|
|
456
445
|
statusColorCriticalWeak: string;
|
|
457
446
|
statusColorCriticalStrong: string;
|
|
447
|
+
severityColorCustom: string;
|
|
448
|
+
severityColorUnknown: string;
|
|
449
|
+
severityColorInfo: string;
|
|
450
|
+
severityColorNormal: string;
|
|
451
|
+
severityColorNotice: string;
|
|
452
|
+
severityColorWarning: string;
|
|
453
|
+
severityColorAlert: string;
|
|
454
|
+
severityColorCritical: string;
|
|
455
|
+
severityColorEmergency: string;
|
|
456
|
+
notificationColorInfoWeak: string;
|
|
457
|
+
notificationColorInfo: string;
|
|
458
|
+
notificationColorInfoStrong: string;
|
|
459
|
+
notificationColorPositiveWeak: string;
|
|
460
|
+
notificationColorPositive: string;
|
|
461
|
+
notificationColorPositiveStrong: string;
|
|
462
|
+
notificationColorCautionWeak: string;
|
|
463
|
+
notificationColorCaution: string;
|
|
464
|
+
notificationColorCautionStrong: string;
|
|
465
|
+
notificationColorNegativeWeak: string;
|
|
466
|
+
notificationColorNegative: string;
|
|
467
|
+
notificationColorNegativeStrong: string;
|
|
458
468
|
black: string;
|
|
469
|
+
neutral50: string;
|
|
459
470
|
neutral100: string;
|
|
460
471
|
neutral200: string;
|
|
461
472
|
neutral300: string;
|
|
@@ -159,10 +159,10 @@ type ColorParameter<T extends AnyTheme> = string | TemplateFunction<T>;
|
|
|
159
159
|
* ```js
|
|
160
160
|
* import styled from 'styled-components';
|
|
161
161
|
* import { overlayColors } from '@splunk/themes/mixins';
|
|
162
|
-
* import {
|
|
162
|
+
* import { interactiveColorAccent, interactiveColorOverlaySelected } from '@splunk/themes/variables';
|
|
163
163
|
*
|
|
164
164
|
* const myButton = styled.button`
|
|
165
|
-
* background: ${overlayColors(
|
|
165
|
+
* background: ${overlayColors(interactiveColorAccent, interactiveColorOverlaySelected)};
|
|
166
166
|
* `
|
|
167
167
|
* ```
|
|
168
168
|
* @name overlayColors
|
|
@@ -179,10 +179,10 @@ export declare function overlayColors<T extends AnyTheme>(c1: ColorParameter<T>,
|
|
|
179
179
|
* ```js
|
|
180
180
|
* import styled from 'styled-components';
|
|
181
181
|
* import { colorWithAlpha } from '@splunk/themes/mixins';
|
|
182
|
-
* import {
|
|
182
|
+
* import { actionColorBackgroundPrimary } from '@splunk/themes/variables';
|
|
183
183
|
*
|
|
184
184
|
* const myButton = styled.button`
|
|
185
|
-
* background: ${colorWithAlpha(
|
|
185
|
+
* background: ${colorWithAlpha(actionColorBackgroundPrimary, 0.5)};
|
|
186
186
|
* `
|
|
187
187
|
* ```
|
|
188
188
|
* @name colorWithAlpha
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { SpacingSizing } from '../design-tokens';
|
|
2
|
-
/**
|
|
3
|
-
* ## Measures
|
|
4
|
-
* Spacing is used for margin on any element or padding on containers, but can be used for other
|
|
5
|
-
* properties that position elements.
|
|
6
|
-
*
|
|
7
|
-
* @valueSet
|
|
8
|
-
*/
|
|
9
2
|
declare const measures: SpacingSizing;
|
|
10
3
|
type Comfortable = typeof measures;
|
|
11
4
|
export default measures;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import { SpacingSizing } from '../design-tokens';
|
|
2
|
-
/**
|
|
3
|
-
* ## Measures
|
|
4
|
-
* Spacing is used for margin on any element or padding on containers, but can be used for other
|
|
5
|
-
* properties that position elements.
|
|
6
|
-
* * Larger containers, such as `Card` or `Modal`, use `spacing`.
|
|
7
|
-
* * `spacingHalf` and `spacingQuarter` are primarily for horizontal spacing between smaller elements.
|
|
8
|
-
* * Just because a desired value equals 20, 10, or 5 pixels, does not mean it's appropriate to
|
|
9
|
-
* use spacing variables.
|
|
10
|
-
*
|
|
11
|
-
* @valueSet
|
|
12
|
-
*/
|
|
13
2
|
declare const measures: SpacingSizing;
|
|
14
3
|
type Compact = typeof measures;
|
|
15
4
|
export default measures;
|
package/types/prisma/dark.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
+
interactiveColorPrimary: string;
|
|
2
3
|
accentColorPositive: string;
|
|
3
4
|
accentColorWarning: string;
|
|
4
5
|
accentColorAlert: string;
|
|
@@ -12,7 +13,6 @@ declare const theme: {
|
|
|
12
13
|
syntaxPurple: string;
|
|
13
14
|
syntaxRed: string;
|
|
14
15
|
syntaxTeal: string;
|
|
15
|
-
interactiveColorPrimary: string;
|
|
16
16
|
interactiveColorBorder: string;
|
|
17
17
|
interactiveColorBorderActive: string;
|
|
18
18
|
interactiveColorBorderHover: string;
|
|
@@ -27,6 +27,7 @@ declare const theme: {
|
|
|
27
27
|
interactiveColorAccentError: string;
|
|
28
28
|
interactiveColorAccentErrorStrong: string;
|
|
29
29
|
black: string;
|
|
30
|
+
neutral50: string;
|
|
30
31
|
neutral100: string;
|
|
31
32
|
neutral200: string;
|
|
32
33
|
neutral300: string;
|
|
@@ -83,12 +84,28 @@ declare const theme: {
|
|
|
83
84
|
statusColorCritical: string;
|
|
84
85
|
statusColorCriticalWeak: string;
|
|
85
86
|
statusColorCriticalStrong: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
severityColorCustom: string;
|
|
88
|
+
severityColorUnknown: string;
|
|
89
|
+
severityColorInfo: string;
|
|
90
|
+
severityColorNormal: string;
|
|
91
|
+
severityColorNotice: string;
|
|
92
|
+
severityColorWarning: string;
|
|
93
|
+
severityColorAlert: string;
|
|
94
|
+
severityColorCritical: string;
|
|
95
|
+
severityColorEmergency: string;
|
|
96
|
+
notificationColorInfoWeak: string;
|
|
97
|
+
notificationColorInfo: string;
|
|
98
|
+
notificationColorInfoStrong: string;
|
|
99
|
+
notificationColorPositiveWeak: string;
|
|
100
|
+
notificationColorPositive: string;
|
|
101
|
+
notificationColorPositiveStrong: string;
|
|
102
|
+
notificationColorCautionWeak: string;
|
|
103
|
+
notificationColorCaution: string;
|
|
104
|
+
notificationColorCautionStrong: string;
|
|
105
|
+
notificationColorNegativeWeak: string;
|
|
106
|
+
notificationColorNegative: string;
|
|
107
|
+
notificationColorNegativeStrong: string;
|
|
108
|
+
actionColorBackgroundPrimary: string;
|
|
92
109
|
actionColorBackgroundPrimaryActive: string;
|
|
93
110
|
actionColorBackgroundPrimaryDisabled: string;
|
|
94
111
|
actionColorBackgroundPrimaryHover: string;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { Categorical, DataViz, Divergent, HighLow, Sequential, StaticColors } from '../design-tokens/dataViz';
|
|
2
|
-
/**
|
|
3
|
-
* #### Static colors
|
|
4
|
-
*
|
|
5
|
-
* @colorSet verbose
|
|
6
|
-
*/
|
|
7
2
|
declare const staticColors: StaticColors;
|
|
8
3
|
declare const categorical: Categorical;
|
|
9
4
|
declare const divergent: Divergent;
|
package/types/prisma/light.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
+
interactiveColorPrimary: string;
|
|
2
3
|
accentColorPositive: string;
|
|
3
4
|
accentColorWarning: string;
|
|
4
5
|
accentColorAlert: string;
|
|
@@ -12,7 +13,6 @@ declare const theme: {
|
|
|
12
13
|
syntaxPurple: string;
|
|
13
14
|
syntaxRed: string;
|
|
14
15
|
syntaxTeal: string;
|
|
15
|
-
interactiveColorPrimary: string;
|
|
16
16
|
interactiveColorBorder: string;
|
|
17
17
|
interactiveColorBorderActive: string;
|
|
18
18
|
interactiveColorBorderHover: string;
|
|
@@ -27,6 +27,7 @@ declare const theme: {
|
|
|
27
27
|
interactiveColorAccentError: string;
|
|
28
28
|
interactiveColorAccentErrorStrong: string;
|
|
29
29
|
black: string;
|
|
30
|
+
neutral50: string;
|
|
30
31
|
neutral100: string;
|
|
31
32
|
neutral200: string;
|
|
32
33
|
neutral300: string;
|
|
@@ -83,12 +84,28 @@ declare const theme: {
|
|
|
83
84
|
statusColorCritical: string;
|
|
84
85
|
statusColorCriticalWeak: string;
|
|
85
86
|
statusColorCriticalStrong: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
severityColorCustom: string;
|
|
88
|
+
severityColorUnknown: string;
|
|
89
|
+
severityColorInfo: string;
|
|
90
|
+
severityColorNormal: string;
|
|
91
|
+
severityColorNotice: string;
|
|
92
|
+
severityColorWarning: string;
|
|
93
|
+
severityColorAlert: string;
|
|
94
|
+
severityColorCritical: string;
|
|
95
|
+
severityColorEmergency: string;
|
|
96
|
+
notificationColorInfoWeak: string;
|
|
97
|
+
notificationColorInfo: string;
|
|
98
|
+
notificationColorInfoStrong: string;
|
|
99
|
+
notificationColorPositiveWeak: string;
|
|
100
|
+
notificationColorPositive: string;
|
|
101
|
+
notificationColorPositiveStrong: string;
|
|
102
|
+
notificationColorCautionWeak: string;
|
|
103
|
+
notificationColorCaution: string;
|
|
104
|
+
notificationColorCautionStrong: string;
|
|
105
|
+
notificationColorNegativeWeak: string;
|
|
106
|
+
notificationColorNegative: string;
|
|
107
|
+
notificationColorNegativeStrong: string;
|
|
108
|
+
actionColorBackgroundPrimary: string;
|
|
92
109
|
actionColorBackgroundPrimaryActive: string;
|
|
93
110
|
actionColorBackgroundPrimaryDisabled: string;
|
|
94
111
|
actionColorBackgroundPrimaryHover: string;
|