@splunk/themes 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,6 +119,90 @@ declare const actionColors: {
119
119
  * Hover border color for Destructive Secondary Buttons.
120
120
  */
121
121
  actionColorBorderDestructiveSecondaryHover: string;
122
+ /**
123
+ * Default text color for Primary Buttons.
124
+ *
125
+ * @categoryFont
126
+ */
127
+ actionColorContentPrimary: string;
128
+ /**
129
+ * Disabled text color for Primary Buttons.
130
+ *
131
+ * @categoryFont
132
+ */
133
+ actionColorContentPrimaryDisabled: string;
134
+ /**
135
+ * Default text color for Secondary Buttons.
136
+ *
137
+ * @categoryFont
138
+ */
139
+ actionColorContentSecondary: string;
140
+ /**
141
+ * Disabled text color for Secondary Buttons.
142
+ *
143
+ * @categoryFont
144
+ */
145
+ actionColorContentSecondaryDisabled: string;
146
+ /**
147
+ * Active text color for Subtle Buttons.
148
+ *
149
+ * @categoryFont
150
+ */
151
+ actionColorContentSubtleActive: string;
152
+ /**
153
+ * Hover text color for Subtle Buttons.
154
+ *
155
+ * @categoryFont
156
+ */
157
+ actionColorContentSubtleHover: string;
158
+ /**
159
+ * Default text color for Standalone Buttons.
160
+ *
161
+ * @categoryFont
162
+ */
163
+ actionColorContentStandalone: string;
164
+ /**
165
+ * Active (pressed) text color for Standalone Buttons.
166
+ *
167
+ * @categoryFont
168
+ */
169
+ actionColorContentStandaloneActive: string;
170
+ /**
171
+ * Disabled text color for Standalone Buttons.
172
+ *
173
+ * @categoryFont
174
+ */
175
+ actionColorContentStandaloneDisabled: string;
176
+ /**
177
+ * Hover text color for Standalone Buttons.
178
+ *
179
+ * @categoryFont
180
+ */
181
+ actionColorContentStandaloneHover: string;
182
+ /**
183
+ * Default text color for Destructive Buttons.
184
+ *
185
+ * @categoryFont
186
+ */
187
+ actionColorContentDestructive: string;
188
+ /**
189
+ * Disabled text color for Destructive Buttons.
190
+ *
191
+ * @categoryFont
192
+ */
193
+ actionColorContentDestructiveDisabled: string;
194
+ /**
195
+ * Default text color for Destructive Secondary Buttons.
196
+ *
197
+ * @categoryFont
198
+ */
199
+ actionColorContentDestructiveSecondary: string;
200
+ /**
201
+ * Disabled text color for Destructive Secondary Buttons.
202
+ *
203
+ * @categoryFont
204
+ */
205
+ actionColorContentDestructiveSecondaryDisabled: string;
122
206
  };
123
207
  /**
124
208
  * #### Interactive colors
@@ -309,10 +393,6 @@ declare const contentColors: {
309
393
  * Text color for disabled content that does not pass 4.5:1 contrast.
310
394
  */
311
395
  contentColorDisabled: string;
312
- /**
313
- * Text color used to convey informational context or status.
314
- */
315
- contentColorInfo: string;
316
396
  /**
317
397
  * Text color used on top of inverted backgrounds.
318
398
  */
@@ -325,22 +405,10 @@ declare const contentColors: {
325
405
  * Text color for error or negative status messaging.
326
406
  */
327
407
  contentColorNegative: string;
328
- /**
329
- * Stronger negative text color for greater emphasis.
330
- */
331
- contentColorNegativeStrong: string;
332
408
  /**
333
409
  * Disabled negative text color that does not pass 4.5:1 contrast.
334
410
  */
335
411
  contentColorNegativeWeak: string;
336
- /**
337
- * Text color for success or positive status messaging.
338
- */
339
- contentColorPositive: string;
340
- /**
341
- * Text color for cautionary or warning status messaging.
342
- */
343
- contentColorWarning: string;
344
412
  };
345
413
  /**
346
414
  * #### UI Colors
@@ -513,10 +581,6 @@ declare const colors: {
513
581
  * Text color for disabled content that does not pass 4.5:1 contrast.
514
582
  */
515
583
  contentColorDisabled: string;
516
- /**
517
- * Text color used to convey informational context or status.
518
- */
519
- contentColorInfo: string;
520
584
  /**
521
585
  * Text color used on top of inverted backgrounds.
522
586
  */
@@ -529,22 +593,10 @@ declare const colors: {
529
593
  * Text color for error or negative status messaging.
530
594
  */
531
595
  contentColorNegative: string;
532
- /**
533
- * Stronger negative text color for greater emphasis.
534
- */
535
- contentColorNegativeStrong: string;
536
596
  /**
537
597
  * Disabled negative text color that does not pass 4.5:1 contrast.
538
598
  */
539
599
  contentColorNegativeWeak: string;
540
- /**
541
- * Text color for success or positive status messaging.
542
- */
543
- contentColorPositive: string;
544
- /**
545
- * Text color for cautionary or warning status messaging.
546
- */
547
- contentColorWarning: string;
548
600
  /**
549
601
  * Default background color for the navigation headers.
550
602
  */
@@ -781,6 +833,90 @@ declare const colors: {
781
833
  * Hover border color for Destructive Secondary Buttons.
782
834
  */
783
835
  actionColorBorderDestructiveSecondaryHover: string;
836
+ /**
837
+ * Default text color for Primary Buttons.
838
+ *
839
+ * @categoryFont
840
+ */
841
+ actionColorContentPrimary: string;
842
+ /**
843
+ * Disabled text color for Primary Buttons.
844
+ *
845
+ * @categoryFont
846
+ */
847
+ actionColorContentPrimaryDisabled: string;
848
+ /**
849
+ * Default text color for Secondary Buttons.
850
+ *
851
+ * @categoryFont
852
+ */
853
+ actionColorContentSecondary: string;
854
+ /**
855
+ * Disabled text color for Secondary Buttons.
856
+ *
857
+ * @categoryFont
858
+ */
859
+ actionColorContentSecondaryDisabled: string;
860
+ /**
861
+ * Active text color for Subtle Buttons.
862
+ *
863
+ * @categoryFont
864
+ */
865
+ actionColorContentSubtleActive: string;
866
+ /**
867
+ * Hover text color for Subtle Buttons.
868
+ *
869
+ * @categoryFont
870
+ */
871
+ actionColorContentSubtleHover: string;
872
+ /**
873
+ * Default text color for Standalone Buttons.
874
+ *
875
+ * @categoryFont
876
+ */
877
+ actionColorContentStandalone: string;
878
+ /**
879
+ * Active (pressed) text color for Standalone Buttons.
880
+ *
881
+ * @categoryFont
882
+ */
883
+ actionColorContentStandaloneActive: string;
884
+ /**
885
+ * Disabled text color for Standalone Buttons.
886
+ *
887
+ * @categoryFont
888
+ */
889
+ actionColorContentStandaloneDisabled: string;
890
+ /**
891
+ * Hover text color for Standalone Buttons.
892
+ *
893
+ * @categoryFont
894
+ */
895
+ actionColorContentStandaloneHover: string;
896
+ /**
897
+ * Default text color for Destructive Buttons.
898
+ *
899
+ * @categoryFont
900
+ */
901
+ actionColorContentDestructive: string;
902
+ /**
903
+ * Disabled text color for Destructive Buttons.
904
+ *
905
+ * @categoryFont
906
+ */
907
+ actionColorContentDestructiveDisabled: string;
908
+ /**
909
+ * Default text color for Destructive Secondary Buttons.
910
+ *
911
+ * @categoryFont
912
+ */
913
+ actionColorContentDestructiveSecondary: string;
914
+ /**
915
+ * Disabled text color for Destructive Secondary Buttons.
916
+ *
917
+ * @categoryFont
918
+ */
919
+ actionColorContentDestructiveSecondaryDisabled: string;
784
920
  };
785
921
  type ActionColors = typeof actionColors;
786
922
  type InteractiveColors = typeof interactiveColors;
@@ -4,6 +4,10 @@
4
4
  * @categoryValue
5
5
  */
6
6
  declare const deprecated: {
7
+ contentColorInfo: string;
8
+ contentColorWarning: string;
9
+ contentColorPositive: string;
10
+ contentColorNegativeStrong: string;
7
11
  /**
8
12
  * Use a more specific token based on the semantic use case:
9
13
  * [`interactiveColorAccent`](#interactiveColorAccent), [`contentColorAccent`](#contentColorAccent), or [`focusColor`](#focusColor).
@@ -311,6 +315,10 @@ declare const deprecated: {
311
315
  type Deprecated = typeof deprecated;
312
316
  export type { Deprecated };
313
317
  declare const _default: {
318
+ contentColorInfo: string;
319
+ contentColorWarning: string;
320
+ contentColorPositive: string;
321
+ contentColorNegativeStrong: string;
314
322
  /**
315
323
  * Use a more specific token based on the semantic use case:
316
324
  * [`interactiveColorAccent`](#interactiveColorAccent), [`contentColorAccent`](#contentColorAccent), or [`focusColor`](#focusColor).
@@ -257,6 +257,10 @@ declare const designTokens: {
257
257
  zindexModal: number;
258
258
  zindexPopover: number;
259
259
  zindexToastMessages: number;
260
+ contentColorInfo: string;
261
+ contentColorWarning: string;
262
+ contentColorPositive: string;
263
+ contentColorNegativeStrong: string;
260
264
  interactiveColorPrimary: string;
261
265
  accentColorPositive: string;
262
266
  accentColorWarning: string;
@@ -498,14 +502,10 @@ declare const designTokens: {
498
502
  contentColorActive: string;
499
503
  contentColorDefault: string;
500
504
  contentColorDisabled: string;
501
- contentColorInfo: string;
502
505
  contentColorInverted: string;
503
506
  contentColorMuted: string;
504
507
  contentColorNegative: string;
505
- contentColorNegativeStrong: string;
506
508
  contentColorNegativeWeak: string;
507
- contentColorPositive: string;
508
- contentColorWarning: string;
509
509
  backgroundColorNavigation: string;
510
510
  backgroundColorPage: string;
511
511
  backgroundColorSidebar: string;
@@ -565,6 +565,20 @@ declare const designTokens: {
565
565
  actionColorBorderDestructiveSecondaryActive: string;
566
566
  actionColorBorderDestructiveSecondaryDisabled: string;
567
567
  actionColorBorderDestructiveSecondaryHover: string;
568
+ actionColorContentPrimary: string;
569
+ actionColorContentPrimaryDisabled: string;
570
+ actionColorContentSecondary: string;
571
+ actionColorContentSecondaryDisabled: string;
572
+ actionColorContentSubtleActive: string;
573
+ actionColorContentSubtleHover: string;
574
+ actionColorContentStandalone: string;
575
+ actionColorContentStandaloneActive: string;
576
+ actionColorContentStandaloneDisabled: string;
577
+ actionColorContentStandaloneHover: string;
578
+ actionColorContentDestructive: string;
579
+ actionColorContentDestructiveDisabled: string;
580
+ actionColorContentDestructiveSecondary: string;
581
+ actionColorContentDestructiveSecondaryDisabled: string;
568
582
  };
569
583
  type DesignTokens = typeof designTokens;
570
584
  export type { DesignTokens, Colors, DataViz, Deprecated, Elevation, SpacingSizing, Typography };
@@ -1,5 +1,9 @@
1
1
  declare const theme: {
2
2
  draggableBackground: string;
3
+ contentColorInfo: string;
4
+ contentColorWarning: string;
5
+ contentColorPositive: string;
6
+ contentColorNegativeStrong: string;
3
7
  interactiveColorPrimary: string;
4
8
  accentColorPositive: string;
5
9
  accentColorWarning: string;
@@ -62,14 +66,10 @@ declare const theme: {
62
66
  contentColorActive: string;
63
67
  contentColorDefault: string;
64
68
  contentColorDisabled: string;
65
- contentColorInfo: string;
66
69
  contentColorInverted: string;
67
70
  contentColorMuted: string;
68
71
  contentColorNegative: string;
69
- contentColorNegativeStrong: string;
70
72
  contentColorNegativeWeak: string;
71
- contentColorPositive: string;
72
- contentColorWarning: string;
73
73
  syntaxBlue: string;
74
74
  syntaxBrown: string;
75
75
  syntaxGray: string;
@@ -145,6 +145,20 @@ declare const theme: {
145
145
  actionColorBorderDestructiveSecondaryActive: string;
146
146
  actionColorBorderDestructiveSecondaryDisabled: string;
147
147
  actionColorBorderDestructiveSecondaryHover: string;
148
+ actionColorContentPrimary: string;
149
+ actionColorContentPrimaryDisabled: string;
150
+ actionColorContentSecondary: string;
151
+ actionColorContentSecondaryDisabled: string;
152
+ actionColorContentSubtleActive: string;
153
+ actionColorContentSubtleHover: string;
154
+ actionColorContentStandalone: string;
155
+ actionColorContentStandaloneActive: string;
156
+ actionColorContentStandaloneDisabled: string;
157
+ actionColorContentStandaloneHover: string;
158
+ actionColorContentDestructive: string;
159
+ actionColorContentDestructiveDisabled: string;
160
+ actionColorContentDestructiveSecondary: string;
161
+ actionColorContentDestructiveSecondaryDisabled: string;
148
162
  borderColor: string;
149
163
  borderColorWeak: string;
150
164
  borderColorStrong: string;
@@ -1,4 +1,8 @@
1
1
  declare const theme: {
2
+ contentColorInfo: string;
3
+ contentColorWarning: string;
4
+ contentColorPositive: string;
5
+ contentColorNegativeStrong: string;
2
6
  interactiveColorPrimary: string;
3
7
  accentColorPositive: string;
4
8
  accentColorWarning: string;
@@ -398,14 +402,10 @@ declare const theme: {
398
402
  contentColorActive: string;
399
403
  contentColorDefault: string;
400
404
  contentColorDisabled: string;
401
- contentColorInfo: string;
402
405
  contentColorInverted: string;
403
406
  contentColorMuted: string;
404
407
  contentColorNegative: string;
405
- contentColorNegativeStrong: string;
406
408
  contentColorNegativeWeak: string;
407
- contentColorPositive: string;
408
- contentColorWarning: string;
409
409
  lineLength: string;
410
410
  lineHeight: string;
411
411
  lineHeightSingle: string;
@@ -509,6 +509,20 @@ declare const theme: {
509
509
  actionColorBorderDestructiveSecondaryActive: string;
510
510
  actionColorBorderDestructiveSecondaryDisabled: string;
511
511
  actionColorBorderDestructiveSecondaryHover: string;
512
+ actionColorContentPrimary: string;
513
+ actionColorContentPrimaryDisabled: string;
514
+ actionColorContentSecondary: string;
515
+ actionColorContentSecondaryDisabled: string;
516
+ actionColorContentSubtleActive: string;
517
+ actionColorContentSubtleHover: string;
518
+ actionColorContentStandalone: string;
519
+ actionColorContentStandaloneActive: string;
520
+ actionColorContentStandaloneDisabled: string;
521
+ actionColorContentStandaloneHover: string;
522
+ actionColorContentDestructive: string;
523
+ actionColorContentDestructiveDisabled: string;
524
+ actionColorContentDestructiveSecondary: string;
525
+ actionColorContentDestructiveSecondaryDisabled: string;
512
526
  backgroundColorNavigation: string;
513
527
  backgroundColorPage: string;
514
528
  backgroundColorSidebar: string;
package/types/index.d.ts CHANGED
@@ -10,3 +10,10 @@ export { default as withSplunkTheme } from './withSplunkTheme';
10
10
  export { default as variables } from './variables';
11
11
  export { clearAllCaches } from './clearAllCaches';
12
12
  export * from './types';
13
+ export { default as unstable_designTokens } from './design-tokens';
14
+ export { default as unstable_designTokensColors } from './design-tokens/colors';
15
+ export { default as unstable_designTokensDataViz } from './design-tokens/dataViz';
16
+ export { default as unstable_designTokensDeprecated } from './design-tokens/deprecated';
17
+ export { default as unstable_designTokensElevation } from './design-tokens/elevation';
18
+ export { default as unstable_designTokensSpacingSizing } from './design-tokens/spacing-sizing';
19
+ export { default as unstable_designTokensTypography } from './design-tokens/typography';
@@ -1,6 +1,6 @@
1
1
  import { AnyTheme, Interpolation, ThemedProps } from '../types';
2
2
  declare const typographyVariants: readonly ["body", "title1", "title2", "title3", "title4", "title5", "title6", "largeBody", "smallBody", "monoBody", "monoSmallBody"];
3
- type TypographyVariant = typeof typographyVariants[number];
3
+ type TypographyVariant = (typeof typographyVariants)[number];
4
4
  type TypographyTitleVariant = Extract<TypographyVariant, 'title1' | 'title2' | 'title3' | 'title4' | 'title5' | 'title6' | 'title7'>;
5
5
  interface TypographyParams {
6
6
  /**
@@ -1,4 +1,8 @@
1
1
  declare const theme: {
2
+ contentColorInfo: string;
3
+ contentColorWarning: string;
4
+ contentColorPositive: string;
5
+ contentColorNegativeStrong: string;
2
6
  interactiveColorPrimary: string;
3
7
  accentColorPositive: string;
4
8
  accentColorWarning: string;
@@ -61,14 +65,10 @@ declare const theme: {
61
65
  contentColorActive: string;
62
66
  contentColorDefault: string;
63
67
  contentColorDisabled: string;
64
- contentColorInfo: string;
65
68
  contentColorInverted: string;
66
69
  contentColorMuted: string;
67
70
  contentColorNegative: string;
68
- contentColorNegativeStrong: string;
69
71
  contentColorNegativeWeak: string;
70
- contentColorPositive: string;
71
- contentColorWarning: string;
72
72
  borderColor: string;
73
73
  borderColorWeak: string;
74
74
  borderColorStrong: string;
@@ -133,6 +133,20 @@ declare const theme: {
133
133
  actionColorBorderDestructiveSecondaryActive: string;
134
134
  actionColorBorderDestructiveSecondaryDisabled: string;
135
135
  actionColorBorderDestructiveSecondaryHover: string;
136
+ actionColorContentPrimary: string;
137
+ actionColorContentPrimaryDisabled: string;
138
+ actionColorContentSecondary: string;
139
+ actionColorContentSecondaryDisabled: string;
140
+ actionColorContentSubtleActive: string;
141
+ actionColorContentSubtleHover: string;
142
+ actionColorContentStandalone: string;
143
+ actionColorContentStandaloneActive: string;
144
+ actionColorContentStandaloneDisabled: string;
145
+ actionColorContentStandaloneHover: string;
146
+ actionColorContentDestructive: string;
147
+ actionColorContentDestructiveDisabled: string;
148
+ actionColorContentDestructiveSecondary: string;
149
+ actionColorContentDestructiveSecondaryDisabled: string;
136
150
  };
137
151
  type Dark = typeof theme;
138
152
  export default theme;
@@ -1,4 +1,8 @@
1
1
  declare const theme: {
2
+ contentColorInfo: string;
3
+ contentColorWarning: string;
4
+ contentColorPositive: string;
5
+ contentColorNegativeStrong: string;
2
6
  interactiveColorPrimary: string;
3
7
  accentColorPositive: string;
4
8
  accentColorWarning: string;
@@ -61,14 +65,10 @@ declare const theme: {
61
65
  contentColorActive: string;
62
66
  contentColorDefault: string;
63
67
  contentColorDisabled: string;
64
- contentColorInfo: string;
65
68
  contentColorInverted: string;
66
69
  contentColorMuted: string;
67
70
  contentColorNegative: string;
68
- contentColorNegativeStrong: string;
69
71
  contentColorNegativeWeak: string;
70
- contentColorPositive: string;
71
- contentColorWarning: string;
72
72
  borderColor: string;
73
73
  borderColorWeak: string;
74
74
  borderColorStrong: string;
@@ -133,6 +133,20 @@ declare const theme: {
133
133
  actionColorBorderDestructiveSecondaryActive: string;
134
134
  actionColorBorderDestructiveSecondaryDisabled: string;
135
135
  actionColorBorderDestructiveSecondaryHover: string;
136
+ actionColorContentPrimary: string;
137
+ actionColorContentPrimaryDisabled: string;
138
+ actionColorContentSecondary: string;
139
+ actionColorContentSecondaryDisabled: string;
140
+ actionColorContentSubtleActive: string;
141
+ actionColorContentSubtleHover: string;
142
+ actionColorContentStandalone: string;
143
+ actionColorContentStandaloneActive: string;
144
+ actionColorContentStandaloneDisabled: string;
145
+ actionColorContentStandaloneHover: string;
146
+ actionColorContentDestructive: string;
147
+ actionColorContentDestructiveDisabled: string;
148
+ actionColorContentDestructiveSecondary: string;
149
+ actionColorContentDestructiveSecondaryDisabled: string;
136
150
  };
137
151
  type Light = typeof theme;
138
152
  export default theme;