@splunk/themes 1.0.0-beta.2 → 1.0.0-beta.4
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 +34 -1
- package/design-tokens/colors.js +48 -81
- package/design-tokens/deprecated.js +75 -0
- package/design-tokens/elevation.js +2 -1
- package/design-tokens/spacing-sizing.js +6 -0
- package/enterprise/comfortable.js +1 -7
- package/enterprise/compact.js +1 -7
- package/enterprise/dark.js +51 -90
- package/enterprise/dataViz.js +0 -77
- package/enterprise/light.js +51 -116
- package/mixins/tests/utilityMixins.unit.js +1 -1
- package/mixins/utilityMixins.js +4 -4
- package/package.json +5 -5
- package/prisma/base.js +1 -40
- package/prisma/comfortable.js +1 -7
- package/prisma/compact.js +1 -11
- package/prisma/dark.js +53 -95
- package/prisma/dataViz.js +0 -197
- package/prisma/light.js +53 -95
- package/splunk-magnetic/index.js +3 -1
- package/types/design-tokens/colors.d.ts +74 -158
- package/types/design-tokens/deprecated.d.ts +150 -0
- package/types/design-tokens/elevation.d.ts +2 -2
- package/types/design-tokens/index.d.ts +43 -20
- package/types/design-tokens/spacing-sizing.d.ts +7 -0
- package/types/enterprise/comfortable.d.ts +1 -0
- package/types/enterprise/compact.d.ts +1 -0
- package/types/enterprise/dark.d.ts +45 -33
- package/types/enterprise/dataViz.d.ts +0 -5
- package/types/enterprise/light.d.ts +44 -33
- package/types/getTheme.d.ts +0 -1
- package/types/mixins/index.d.ts +1 -1
- package/types/mixins/utilityMixins.d.ts +6 -6
- package/types/prisma/base.d.ts +1 -1
- package/types/prisma/comfortable.d.ts +0 -7
- package/types/prisma/compact.d.ts +0 -11
- package/types/prisma/dark.d.ts +42 -25
- package/types/prisma/dataViz.d.ts +0 -5
- package/types/prisma/light.d.ts +42 -25
- package/types/splunk-magnetic/index.d.ts +196 -58
- package/types/storybook-addon-splunk-themes/constants.d.ts +4 -4
- package/types/storybook-addon-splunk-themes/preview.d.ts +4 -4
- package/types/storybook-addon-splunk-themes/themes.d.ts +3 -4
- package/types/storybook-addon-splunk-themes/withSplunkTheme.d.ts +1 -1
- package/types/utils.d.ts +0 -1
package/prisma/light.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: '#ffffff',
|
|
24
17
|
backgroundColorSection: '#ffffff',
|
|
@@ -29,26 +22,11 @@ var backgroundColors = {
|
|
|
29
22
|
backgroundColorDialog: '#ffffff',
|
|
30
23
|
backgroundColorScrim: 'rgba(255, 255, 255, 0.75)'
|
|
31
24
|
};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* ## Border colors
|
|
35
|
-
*
|
|
36
|
-
* @colorSet verbose
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
25
|
var borderColors = {
|
|
40
26
|
borderColor: ' #8f8f8f',
|
|
41
27
|
borderColorWeak: '#e0e0e0',
|
|
42
28
|
borderColorStrong: '#6b6b6b'
|
|
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(235, 70, 81, 0.20)',
|
|
54
32
|
contentColorAccent: '#0264d7',
|
|
@@ -67,14 +45,6 @@ var contentColors = {
|
|
|
67
45
|
contentColorWarning: '#c97705',
|
|
68
46
|
contentColorLink: '#0264d7'
|
|
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: '#0264d7',
|
|
80
50
|
actionColorBackgroundPrimaryActive: '#024ba2',
|
|
@@ -105,18 +75,7 @@ var actionColors = {
|
|
|
105
75
|
actionColorBorderDestructiveSecondaryDisabled: '#ff9999',
|
|
106
76
|
actionColorBorderDestructiveSecondaryHover: '#a30000'
|
|
107
77
|
};
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* ## Interactive colors
|
|
111
|
-
* Interactive colors are specifically chosen for styling 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: '#0264d7',
|
|
120
79
|
interactiveColorBorder: 'rgba(0, 0, 0, 0.48)',
|
|
121
80
|
interactiveColorBorderActive: 'rgba(0, 0, 0, 0.5)',
|
|
122
81
|
interactiveColorBorderHover: 'rgba(0, 0, 0, 0.6)',
|
|
@@ -125,22 +84,15 @@ var interactiveColors = {
|
|
|
125
84
|
interactiveColorOverlayHover: 'rgba(0, 0, 0, 0.03)',
|
|
126
85
|
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.07)',
|
|
127
86
|
interactiveColorOverlayDrag: 'rgba(2, 100, 215, 0.16)',
|
|
128
|
-
interactiveColorBackground: '
|
|
129
|
-
interactiveColorBackgroundDisabled: '
|
|
87
|
+
interactiveColorBackground: 'transparent',
|
|
88
|
+
interactiveColorBackgroundDisabled: 'transparent',
|
|
130
89
|
interactiveColorAccent: '#0264d7',
|
|
131
90
|
interactiveColorAccentError: '#e00000',
|
|
132
91
|
interactiveColorAccentErrorStrong: '#a01d26'
|
|
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
|
white: '#ffffff',
|
|
95
|
+
neutral50: '#f2f2f2',
|
|
144
96
|
neutral100: '#f0f0f0',
|
|
145
97
|
neutral200: '#e6e6e6',
|
|
146
98
|
neutral300: '#dddddd',
|
|
@@ -149,53 +101,37 @@ var neutralColors = {
|
|
|
149
101
|
black: '#000000',
|
|
150
102
|
transparent: 'transparent'
|
|
151
103
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
statusColorCriticalWeak: (0, _tinycolor["default"])('#9e1534').lighten(10).toHexString(),
|
|
177
|
-
statusColorCriticalStrong: (0, _tinycolor["default"])('#9e1534').darken(10).toHexString()
|
|
104
|
+
var notificationColors = {
|
|
105
|
+
notificationColorInfoWeak: '#F0E5FF',
|
|
106
|
+
notificationColorInfo: '#8C4CEB',
|
|
107
|
+
notificationColorInfoStrong: '#40226D',
|
|
108
|
+
notificationColorPositiveWeak: '#CCEEFF',
|
|
109
|
+
notificationColorPositive: '#0076B2',
|
|
110
|
+
notificationColorPositiveStrong: '#054362',
|
|
111
|
+
notificationColorCautionWeak: '#FEE7B9',
|
|
112
|
+
notificationColorCaution: '#996600',
|
|
113
|
+
notificationColorCautionStrong: '#664400',
|
|
114
|
+
notificationColorNegativeWeak: '#FFE5E5',
|
|
115
|
+
notificationColorNegative: '#CF1717',
|
|
116
|
+
notificationColorNegativeStrong: '#5D0A0A'
|
|
117
|
+
};
|
|
118
|
+
var severityColors = {
|
|
119
|
+
severityColorCustom: '#5D6596',
|
|
120
|
+
severityColorUnknown: '#656C75',
|
|
121
|
+
severityColorInfo: '#864AE0',
|
|
122
|
+
severityColorNormal: '#017580',
|
|
123
|
+
severityColorNotice: '#A65503',
|
|
124
|
+
severityColorWarning: '#BD410B',
|
|
125
|
+
severityColorAlert: '#CC2D37',
|
|
126
|
+
severityColorCritical: '#C2306F',
|
|
127
|
+
severityColorEmergency: '#B53394'
|
|
178
128
|
};
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* ## Elevation shadows
|
|
182
|
-
*
|
|
183
|
-
* @shadowSet
|
|
184
|
-
*
|
|
185
|
-
*/
|
|
186
129
|
var elevationShadows = {
|
|
187
130
|
embossShadow: '0px 1px 5px rgba(0, 0, 0, 0.07), 0px 0px 1px rgba(0, 0, 0, 0.07)',
|
|
188
131
|
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)',
|
|
189
132
|
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)',
|
|
190
133
|
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)'
|
|
191
134
|
};
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* ## Syntax colors
|
|
195
|
-
* Syntax colors are used only for code blocks.
|
|
196
|
-
*
|
|
197
|
-
* @colorSet verbose alphabetical
|
|
198
|
-
*/
|
|
199
135
|
var syntaxColors = {
|
|
200
136
|
syntaxBlue: '#0f7594',
|
|
201
137
|
syntaxBrown: '#9f6404',
|
|
@@ -208,11 +144,33 @@ var syntaxColors = {
|
|
|
208
144
|
syntaxTeal: '#1d7c6b'
|
|
209
145
|
};
|
|
210
146
|
var deprecated = {
|
|
211
|
-
accentColorPositive:
|
|
212
|
-
|
|
147
|
+
accentColorPositive: '#407a06',
|
|
148
|
+
// statusColorNormal
|
|
149
|
+
accentColorWarning: '#c97705',
|
|
150
|
+
// statusColorMedium
|
|
213
151
|
accentColorAlert: '#c6400d',
|
|
214
|
-
accentColorNegative:
|
|
152
|
+
accentColorNegative: '#e00000',
|
|
153
|
+
// statusColorHigh
|
|
154
|
+
interactiveColorPrimary: '#0264d7',
|
|
155
|
+
statusColorInfo: '#006be5',
|
|
156
|
+
statusColorInfoWeak: (0, _tinycolor["default"])('#006be5').lighten(10).toHexString(),
|
|
157
|
+
statusColorInfoStrong: (0, _tinycolor["default"])('#006be5').darken(10).toHexString(),
|
|
158
|
+
statusColorNormal: '#407a06',
|
|
159
|
+
statusColorNormalWeak: (0, _tinycolor["default"])('#407a06').lighten(10).toHexString(),
|
|
160
|
+
statusColorNormalStrong: (0, _tinycolor["default"])('#407a06').darken(10).toHexString(),
|
|
161
|
+
statusColorLow: '#155a4e',
|
|
162
|
+
statusColorLowWeak: (0, _tinycolor["default"])('#155a4e').lighten(10).toHexString(),
|
|
163
|
+
statusColorLowStrong: (0, _tinycolor["default"])('#155a4e').darken(10).toHexString(),
|
|
164
|
+
statusColorMedium: '#c97705',
|
|
165
|
+
statusColorMediumWeak: (0, _tinycolor["default"])('#c97705').lighten(10).toHexString(),
|
|
166
|
+
statusColorMediumStrong: (0, _tinycolor["default"])('#c97705').darken(10).toHexString(),
|
|
167
|
+
statusColorHigh: '#e00000',
|
|
168
|
+
statusColorHighWeak: (0, _tinycolor["default"])('#e00000').lighten(10).toHexString(),
|
|
169
|
+
statusColorHighStrong: (0, _tinycolor["default"])('#e00000').darken(10).toHexString(),
|
|
170
|
+
statusColorCritical: '#9e1534',
|
|
171
|
+
statusColorCriticalWeak: (0, _tinycolor["default"])('#9e1534').lighten(10).toHexString(),
|
|
172
|
+
statusColorCriticalStrong: (0, _tinycolor["default"])('#9e1534').darken(10).toHexString()
|
|
215
173
|
};
|
|
216
|
-
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors),
|
|
174
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), notificationColors), severityColors), elevationShadows), backgroundColors), borderColors), contentColors), neutralColors), interactiveColors), syntaxColors), deprecated);
|
|
217
175
|
var _default = theme;
|
|
218
176
|
exports["default"] = _default;
|
package/splunk-magnetic/index.js
CHANGED
|
@@ -129,7 +129,7 @@ var splunkMagneticThemeCustomizer = function splunkMagneticThemeCustomizer(curre
|
|
|
129
129
|
backgroundColorDialog: pickMagnetic('control-bg-weak-default'),
|
|
130
130
|
backgroundColorInverted: pickMagnetic('inverse-bg-default'),
|
|
131
131
|
backgroundColorPage: pickMagnetic('base-bg-default'),
|
|
132
|
-
backgroundColorNavigation: currentTheme.colorScheme === 'light' ? "linear-gradient(90deg, ".concat(_magneticTokensLight["default"]['inverse-bg-gradient-start'], ", ").concat(_magneticTokensLight["default"]['inverse-bg-gradient-end']) : "linear-gradient(90deg, ".concat(_magneticTokensDark["default"]['inverse-bg-gradient-start'], ", ").concat(_magneticTokensDark["default"]['inverse-bg-gradient-end']),
|
|
132
|
+
backgroundColorNavigation: currentTheme.colorScheme === 'light' ? "linear-gradient(90deg, ".concat(_magneticTokensLight["default"]['inverse-bg-gradient-start'], ", ").concat(_magneticTokensLight["default"]['inverse-bg-gradient-end'], ")") : "linear-gradient(90deg, ".concat(_magneticTokensDark["default"]['inverse-bg-gradient-start'], ", ").concat(_magneticTokensDark["default"]['inverse-bg-gradient-end'], ")"),
|
|
133
133
|
backgroundColorPopup: pickMagnetic('base-bg-weak-default'),
|
|
134
134
|
backgroundColorScrim: pickMagnetic('control-bg-weak-default'),
|
|
135
135
|
backgroundColorSidebar: pickMagnetic('base-bg-default'),
|
|
@@ -137,6 +137,7 @@ var splunkMagneticThemeCustomizer = function splunkMagneticThemeCustomizer(curre
|
|
|
137
137
|
borderColor: pickMagnetic('base-border-default'),
|
|
138
138
|
borderColorStrong: pickMagnetic('base-border-strong-default'),
|
|
139
139
|
borderColorWeak: pickMagnetic('base-border-weak-default'),
|
|
140
|
+
borderRadius: '6px',
|
|
140
141
|
contentBackgroundColorNegativeWeak: pickMagnetic('negative-bg-strong-default'),
|
|
141
142
|
contentColorActive: pickMagnetic('base-text-default'),
|
|
142
143
|
contentColorDefault: pickMagnetic('base-text-default'),
|
|
@@ -147,6 +148,7 @@ var splunkMagneticThemeCustomizer = function splunkMagneticThemeCustomizer(curre
|
|
|
147
148
|
embossShadow: '0px 2px 5px 0px rgba(0, 0, 0, 0.05)',
|
|
148
149
|
focusColor: pickMagnetic('control-border-focus'),
|
|
149
150
|
focusShadow: currentTheme.colorScheme === 'light' ? "0 0 0 2px ".concat(_magneticTokensLight["default"]['interact-bg-weak-active'], ",0 0 0 4px ").concat(_magneticTokensLight["default"]['control-border-focus']) : "0 0 0 2px ".concat(_magneticTokensDark["default"]['interact-bg-weak-active'], ",0 0 0 4px ").concat(_magneticTokensDark["default"]['control-border-focus']),
|
|
151
|
+
inputBorderWidth: '2px',
|
|
150
152
|
interactiveColorAccent: pickMagnetic('control-bg-strong-default'),
|
|
151
153
|
interactiveColorAccentError: pickMagnetic('negative-bg-medium-default'),
|
|
152
154
|
interactiveColorAccentErrorStrong: pickMagnetic('negative-bg-strong-default'),
|
|
@@ -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.
|
|
@@ -348,84 +351,47 @@ declare const uiColors: {
|
|
|
348
351
|
focusColor: string;
|
|
349
352
|
};
|
|
350
353
|
/**
|
|
351
|
-
* ####
|
|
352
|
-
*
|
|
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.
|
|
353
360
|
*
|
|
354
361
|
* @categoryColor
|
|
355
362
|
*/
|
|
356
|
-
declare const
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
statusColorLowWeak: string;
|
|
389
|
-
/**
|
|
390
|
-
* Brighter, more prominent low-priority color.
|
|
391
|
-
*/
|
|
392
|
-
statusColorLowStrong: string;
|
|
393
|
-
/**
|
|
394
|
-
* Default color for medium-priority status messages.
|
|
395
|
-
*/
|
|
396
|
-
statusColorMedium: string;
|
|
397
|
-
/**
|
|
398
|
-
* Weaker, less prominent medium-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
399
|
-
*/
|
|
400
|
-
statusColorMediumWeak: string;
|
|
401
|
-
/**
|
|
402
|
-
* Brighter, more prominent medium-priority color.
|
|
403
|
-
*/
|
|
404
|
-
statusColorMediumStrong: string;
|
|
405
|
-
/**
|
|
406
|
-
* Default color for high-priority status messages.
|
|
407
|
-
*/
|
|
408
|
-
statusColorHigh: string;
|
|
409
|
-
/**
|
|
410
|
-
* Weaker, less prominent high-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
411
|
-
*/
|
|
412
|
-
statusColorHighWeak: string;
|
|
413
|
-
/**
|
|
414
|
-
* Brighter, more prominent high-priority color.
|
|
415
|
-
*/
|
|
416
|
-
statusColorHighStrong: string;
|
|
417
|
-
/**
|
|
418
|
-
* Default color for critical alerts or urgent messages.
|
|
419
|
-
*/
|
|
420
|
-
statusColorCritical: string;
|
|
421
|
-
/**
|
|
422
|
-
* Weaker, less prominent critical color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
423
|
-
*/
|
|
424
|
-
statusColorCriticalWeak: string;
|
|
425
|
-
/**
|
|
426
|
-
* Brighter, more prominent critical color.
|
|
427
|
-
*/
|
|
428
|
-
statusColorCriticalStrong: string;
|
|
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;
|
|
429
395
|
};
|
|
430
396
|
/**
|
|
431
397
|
* #### Syntax colors
|
|
@@ -491,78 +457,27 @@ declare const colors: {
|
|
|
491
457
|
syntaxPurple: string;
|
|
492
458
|
syntaxRed: string;
|
|
493
459
|
syntaxTeal: string;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
* Brighter, more prominent normal color.
|
|
516
|
-
*/
|
|
517
|
-
statusColorNormalStrong: string;
|
|
518
|
-
/**
|
|
519
|
-
* Default color for low-priority status messages.
|
|
520
|
-
*/
|
|
521
|
-
statusColorLow: string;
|
|
522
|
-
/**
|
|
523
|
-
* Weaker, less prominent low-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
524
|
-
*/
|
|
525
|
-
statusColorLowWeak: string;
|
|
526
|
-
/**
|
|
527
|
-
* Brighter, more prominent low-priority color.
|
|
528
|
-
*/
|
|
529
|
-
statusColorLowStrong: string;
|
|
530
|
-
/**
|
|
531
|
-
* Default color for medium-priority status messages.
|
|
532
|
-
*/
|
|
533
|
-
statusColorMedium: string;
|
|
534
|
-
/**
|
|
535
|
-
* Weaker, less prominent medium-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
536
|
-
*/
|
|
537
|
-
statusColorMediumWeak: string;
|
|
538
|
-
/**
|
|
539
|
-
* Brighter, more prominent medium-priority color.
|
|
540
|
-
*/
|
|
541
|
-
statusColorMediumStrong: string;
|
|
542
|
-
/**
|
|
543
|
-
* Default color for high-priority status messages.
|
|
544
|
-
*/
|
|
545
|
-
statusColorHigh: string;
|
|
546
|
-
/**
|
|
547
|
-
* Weaker, less prominent high-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
548
|
-
*/
|
|
549
|
-
statusColorHighWeak: string;
|
|
550
|
-
/**
|
|
551
|
-
* Brighter, more prominent high-priority color.
|
|
552
|
-
*/
|
|
553
|
-
statusColorHighStrong: string;
|
|
554
|
-
/**
|
|
555
|
-
* Default color for critical alerts or urgent messages.
|
|
556
|
-
*/
|
|
557
|
-
statusColorCritical: string;
|
|
558
|
-
/**
|
|
559
|
-
* Weaker, less prominent critical color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
560
|
-
*/
|
|
561
|
-
statusColorCriticalWeak: string;
|
|
562
|
-
/**
|
|
563
|
-
* Brighter, more prominent critical color.
|
|
564
|
-
*/
|
|
565
|
-
statusColorCriticalStrong: string;
|
|
460
|
+
severityColorCustom: string;
|
|
461
|
+
severityColorUnknown: string;
|
|
462
|
+
severityColorInfo: string;
|
|
463
|
+
severityColorNormal: string;
|
|
464
|
+
severityColorNotice: string;
|
|
465
|
+
severityColorWarning: string;
|
|
466
|
+
severityColorAlert: string;
|
|
467
|
+
severityColorCritical: string;
|
|
468
|
+
severityColorEmergency: string;
|
|
469
|
+
notificationColorInfoWeak: string;
|
|
470
|
+
notificationColorInfo: string;
|
|
471
|
+
notificationColorInfoStrong: string;
|
|
472
|
+
notificationColorPositiveWeak: string;
|
|
473
|
+
notificationColorPositive: string;
|
|
474
|
+
notificationColorPositiveStrong: string;
|
|
475
|
+
notificationColorCautionWeak: string;
|
|
476
|
+
notificationColorCaution: string;
|
|
477
|
+
notificationColorCautionStrong: string;
|
|
478
|
+
notificationColorNegativeWeak: string;
|
|
479
|
+
notificationColorNegative: string;
|
|
480
|
+
notificationColorNegativeStrong: string;
|
|
566
481
|
/**
|
|
567
482
|
* Visual focus ring color used for focus box-shadow. Should not be directly applied to UI elements.
|
|
568
483
|
*/
|
|
@@ -667,6 +582,10 @@ declare const colors: {
|
|
|
667
582
|
/**
|
|
668
583
|
* Least visually emphasized. Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
669
584
|
*/
|
|
585
|
+
neutral50: string;
|
|
586
|
+
/**
|
|
587
|
+
* Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
588
|
+
*/
|
|
670
589
|
neutral100: string;
|
|
671
590
|
/**
|
|
672
591
|
* Not for text, does not pass 3:1 graphical contrast in light & dark color schemes.
|
|
@@ -692,10 +611,6 @@ declare const colors: {
|
|
|
692
611
|
* Transparent background color.
|
|
693
612
|
*/
|
|
694
613
|
transparent: string;
|
|
695
|
-
/**
|
|
696
|
-
* Primary color for interactive elements in Data entry components.
|
|
697
|
-
*/
|
|
698
|
-
interactiveColorPrimary: string;
|
|
699
614
|
/**
|
|
700
615
|
* Default border color for Data entry components.
|
|
701
616
|
*/
|
|
@@ -867,9 +782,10 @@ type NeutralColors = typeof neutralColors;
|
|
|
867
782
|
type BackgroundColors = typeof backgroundColors;
|
|
868
783
|
type ContentColors = typeof contentColors;
|
|
869
784
|
type UIColors = typeof uiColors;
|
|
870
|
-
type
|
|
785
|
+
type NotificationColors = typeof notificationColors;
|
|
786
|
+
type SeverityColors = typeof severityColors;
|
|
871
787
|
type SyntaxColors = typeof syntaxColors;
|
|
872
788
|
type BorderColors = typeof borderColors;
|
|
873
789
|
type Colors = typeof colors;
|
|
874
790
|
export default colors;
|
|
875
|
-
export type { ActionColors, InteractiveColors, NeutralColors, BackgroundColors, ContentColors, UIColors,
|
|
791
|
+
export type { ActionColors, InteractiveColors, NeutralColors, BackgroundColors, ContentColors, UIColors, NotificationColors, SeverityColors, SyntaxColors, BorderColors, Colors, };
|