@splunk/themes 0.23.0 → 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.md +3 -0
- package/CHANGELOG.v1.md +83 -0
- package/design-tokens/colors.js +544 -0
- package/design-tokens/dataViz.js +486 -0
- package/design-tokens/deprecated.js +254 -0
- package/design-tokens/elevation.js +46 -0
- package/design-tokens/index.js +23 -0
- package/design-tokens/spacing-sizing.js +44 -0
- package/design-tokens/typography.js +67 -0
- package/enterprise/comfortable.js +20 -17
- package/enterprise/compact.js +20 -21
- package/enterprise/dark.js +163 -58
- package/enterprise/dataViz.js +414 -0
- package/enterprise/index.js +1 -6
- package/enterprise/light.js +254 -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 +2 -2
- package/mixins/typography.js +141 -144
- package/mixins/utilityMixins.js +6 -9
- package/package.json +6 -9
- package/prisma/base.js +19 -59
- package/prisma/comfortable.js +1 -14
- package/prisma/compact.js +1 -18
- package/prisma/dark.js +88 -73
- package/prisma/dataViz.js +0 -202
- package/prisma/light.js +89 -74
- 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 +945 -0
- package/types/design-tokens/dataViz.d.ts +433 -0
- package/types/design-tokens/deprecated.d.ts +478 -0
- package/types/design-tokens/elevation.d.ts +51 -0
- package/types/design-tokens/index.d.ts +563 -0
- package/types/design-tokens/spacing-sizing.d.ts +44 -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 +424 -113
- package/types/enterprise/dataViz.d.ts +9 -0
- package/types/enterprise/index.d.ts +1 -2
- package/types/enterprise/light.d.ts +450 -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/mixins/utilityMixins.d.ts +4 -4
- package/types/prisma/base.d.ts +12 -16
- package/types/prisma/comfortable.d.ts +2 -24
- package/types/prisma/compact.d.ts +2 -28
- package/types/prisma/dark.d.ts +78 -10
- package/types/prisma/dataViz.d.ts +7 -430
- package/types/prisma/light.d.ts +80 -12
- package/types/splunk-magnetic/index.d.ts +3073 -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/CHANGELOG.md
CHANGED
|
@@ -70,6 +70,9 @@ Bug Fixes:
|
|
|
70
70
|
* `title4` it now larger than `title6` in the Enterprise compact theme.
|
|
71
71
|
* `typography`'s mixin's `title5` color has been changed to `active` in prisma theme to match the Splunk Design System.
|
|
72
72
|
|
|
73
|
+
API Changes:
|
|
74
|
+
* `list-style` has been removed for `mixins.reset` (SUI-5622).
|
|
75
|
+
|
|
73
76
|
0.16.1 - June 6, 2023
|
|
74
77
|
----------
|
|
75
78
|
API Changes:
|
package/CHANGELOG.v1.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Change Log
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
1.0.0-beta.3 - April 2, 2025
|
|
5
|
+
----------
|
|
6
|
+
New Features:
|
|
7
|
+
* New `neutral50` variable (SUI-7384).
|
|
8
|
+
* New `notificationColor` variables (SUI-7303).
|
|
9
|
+
* New `severityColor` variables (SUI-7303).
|
|
10
|
+
|
|
11
|
+
Bug Fixes:
|
|
12
|
+
* Updates `interactiveColorBackground` and `interactiveColorBackgroundDisabled` to be transparent in all themes (SUI-7347).
|
|
13
|
+
* The `@types/react` peer dependency is now correctly set to `^18.2.0` (SUI-7548).
|
|
14
|
+
|
|
15
|
+
Deprecations:
|
|
16
|
+
* `interactiveColorPrimary` has been deprecated (SUI-3568).
|
|
17
|
+
|
|
18
|
+
1.0.0-beta.2 - March 5, 2025
|
|
19
|
+
----------
|
|
20
|
+
New Features:
|
|
21
|
+
* New `contentColorLink` variable (SUI-3568).
|
|
22
|
+
* The data-viz variables are supported in all themes (SUI-3568).
|
|
23
|
+
|
|
24
|
+
Deprecations:
|
|
25
|
+
* `linkColor` and `linkColorHover` have been deprecated. Instead use `contentColorLink` (SUI-3568).
|
|
26
|
+
|
|
27
|
+
API Changes:
|
|
28
|
+
* `accentColor` variable has been removed from Prisma themes (SUI-3568).
|
|
29
|
+
* `borderColor`, `borderColorStrong`, and `borderColorWeak` have had alpha removed from their values (SUI-7340).
|
|
30
|
+
* `embossShadow`, `overlayShadow`, `dragShadow`, and `modalShadow` variables have been updated in Enterprise themes to match Prisma (SUI-7334).
|
|
31
|
+
* Enterprise only tokens have been deprecated: `brandColor*`, `gray*`, `accentColor*`, `errorColor*`, `alertColor*`, `warningColor*`, `successColor*`, `infoColor*`, `diverging*Color*`, and `cat*Color*`.
|
|
32
|
+
|
|
33
|
+
1.0.0-beta.1 - February 20, 2025
|
|
34
|
+
----------
|
|
35
|
+
New Features:
|
|
36
|
+
* Enterprise themes now support the `interactiveColorOverlayHover` Prisma alias (SUI-6289).
|
|
37
|
+
* All themes now support color variable `interactiveColorAccent` (SUI-6304).
|
|
38
|
+
* All themes now support color variable `interactiveColorAccentError` (SUI-6395).
|
|
39
|
+
* Enterprise themes now support the `interactiveColorOverlaySelected` Prisma alias.
|
|
40
|
+
* All themes now support color variable `contentBackgroundColorNegativeWeak` (SUI-6395).
|
|
41
|
+
* Enterprise themes now support color variable `contentColorInverted` (SUI-6530).
|
|
42
|
+
* All themes now support color variable `contentColorNegative` (SUI-6408).
|
|
43
|
+
* Prisma themes now support color variable `accentColor` (SUI-6657).
|
|
44
|
+
* All themes now support new `actionColor` tokens (SUI-6616).
|
|
45
|
+
* All themes now support color variable `contentColorAccent` (SUI-6711).
|
|
46
|
+
* All themes now support color variables `contentColorInfo`, `contentColorPositive`, and `contentColorWarning` (SUI-6830).
|
|
47
|
+
* Enterprise themes now support the `interactiveColorOverlayActive` (SUI-6870).
|
|
48
|
+
* All themes now support color variable `interactiveColorAccentErrorStrong` (SUI-6869).
|
|
49
|
+
* All themes now support color variable `interactiveColorBackground` (SUI-6983).
|
|
50
|
+
* New `layout` mixin (SUI-6678).
|
|
51
|
+
* Enterprise themes now support color variable `backgroundColorSidebar` (SUI-7102).
|
|
52
|
+
|
|
53
|
+
Deprecations:
|
|
54
|
+
* Enterprise theme tokens `textColor`, `textGray`, and `textDisabledColor` have been deprecated (SUI-6160).
|
|
55
|
+
* Enterprise theme token `backgroundColor` has been deprecated (SUI-6656).
|
|
56
|
+
* `accentColorPositive`, `accentColorWarning`, `accentColorAlert`, and `accentColorNegative` have been deprecated (SUI-3658).
|
|
57
|
+
|
|
58
|
+
API Changes:
|
|
59
|
+
* `react` and `react-dom` peer dependencies are now `"^16.8.0 || ^17.0.0 || ^18.0.0"`.
|
|
60
|
+
* `px` sizing for `variables.fontSize*` and `mixins.typography` have been replaced with `rem` sizing (SUI-5509).
|
|
61
|
+
* This results in minor differences in text sizing; but is required to meet WCAG 1.4.4 and WCAG 1.4.10.
|
|
62
|
+
* `typography` `size` param no longer supports `56` `36` `32` and `10`.
|
|
63
|
+
* `variables.lineHeight` is no longer defined in `px` to improve readability of font at all scales (SUI-5509).
|
|
64
|
+
* `typography`'s mixin for `Title5`'s has been updated to text color `variables.contentColorActive` in Prisma theme (SUI-5685).
|
|
65
|
+
* This change affects `Heading` and `Typography` components.
|
|
66
|
+
* The font size and line height no longer change with density. The default font-size in Enterprise Compact now is 14px (SUI-5508).
|
|
67
|
+
* `typography`'s `line-height`, `size`, and `font-weight` values have been consolidated between Enterprise and Prisma themes (SUI-5684).
|
|
68
|
+
* `typography`'s `withReset` prop has been removed (SUI-5686).
|
|
69
|
+
* `variables.activeBorder` has been removed (SUI-6362).
|
|
70
|
+
* Spacing variables in Enterprise themes are now aligned with Prisma themes (SUI-6530).
|
|
71
|
+
* `spacingXSmall`, `spacingSmall`, `spacingMedium`, `spacingLarge`, `spacingXLarge`, `spacingXXLarge`, `spacingXXXLarge` have been updated to match Prisma themes.
|
|
72
|
+
* `spacingQuarter`, `spacingHalf`, and `spacing` are deprecated and should not be used.
|
|
73
|
+
* Enterprise theme `statusColor*` variables have been shifted to align brightness values with Prisma themes (SUI-6348).
|
|
74
|
+
* Enterprise theme's `focusShadow` variable has been updated to match Prisma (SUI-6481).
|
|
75
|
+
* Enterprise theme's `focusShadowInset` variable has been updated to match Prisma (SUI-6487).
|
|
76
|
+
* `typography` supports a new scale for line-height that uses unitless values (SUI-6593).
|
|
77
|
+
* `typography` no longer support pixel values for line-height (SUI-6593).
|
|
78
|
+
* `typography` no longer supports the `title7` and `footnote` variants (SUI-6593).
|
|
79
|
+
* `typography` parameters now supports `family: "title"`.
|
|
80
|
+
* `fontSizeXLarge` size has been changed (SUI-6593).
|
|
81
|
+
* Enterprise themes support the `contentColorActive`, `contentColorDefault`, `contentColorDisabled`, `contentColorInverted`, and `contentColorMuted` tokens (SUI-6160).
|
|
82
|
+
|
|
83
|
+
----------
|
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
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; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
/**
|
|
14
|
+
* #### Action colors
|
|
15
|
+
*
|
|
16
|
+
* Action colors are used **exclusively** for styling Buttons borders and backgrounds.
|
|
17
|
+
* They define interaction states for primary, secondary, subtle, and destructive buttons.
|
|
18
|
+
*
|
|
19
|
+
* @categoryColor
|
|
20
|
+
*/
|
|
21
|
+
var actionColors = {
|
|
22
|
+
/**
|
|
23
|
+
* Default background for Primary Buttons.
|
|
24
|
+
*/
|
|
25
|
+
actionColorBackgroundPrimary: '',
|
|
26
|
+
/**
|
|
27
|
+
* Active (pressed) background for Primary Buttons.
|
|
28
|
+
*/
|
|
29
|
+
actionColorBackgroundPrimaryActive: '',
|
|
30
|
+
/**
|
|
31
|
+
* Disabled background for Primary Buttons.
|
|
32
|
+
*/
|
|
33
|
+
actionColorBackgroundPrimaryDisabled: '',
|
|
34
|
+
/**
|
|
35
|
+
* Hover background for Primary Buttons.
|
|
36
|
+
*/
|
|
37
|
+
actionColorBackgroundPrimaryHover: '',
|
|
38
|
+
/**
|
|
39
|
+
* Default background for Secondary Buttons.
|
|
40
|
+
*/
|
|
41
|
+
actionColorBackgroundSecondary: '',
|
|
42
|
+
/**
|
|
43
|
+
* Active (pressed) background for Secondary Buttons.
|
|
44
|
+
*/
|
|
45
|
+
actionColorBackgroundSecondaryActive: '',
|
|
46
|
+
/**
|
|
47
|
+
* Disabled background for Secondary Buttons.
|
|
48
|
+
*/
|
|
49
|
+
actionColorBackgroundSecondaryDisabled: '',
|
|
50
|
+
/**
|
|
51
|
+
* Hover background for Secondary Buttons.
|
|
52
|
+
*/
|
|
53
|
+
actionColorBackgroundSecondaryHover: '',
|
|
54
|
+
/**
|
|
55
|
+
* Default background for Subtle Buttons.
|
|
56
|
+
*/
|
|
57
|
+
actionColorBackgroundSubtle: '',
|
|
58
|
+
/**
|
|
59
|
+
* Active (pressed) background for Subtle Buttons.
|
|
60
|
+
*/
|
|
61
|
+
actionColorBackgroundSubtleActive: '',
|
|
62
|
+
/**
|
|
63
|
+
* Disabled background for Subtle Buttons.
|
|
64
|
+
*/
|
|
65
|
+
actionColorBackgroundSubtleDisabled: '',
|
|
66
|
+
/**
|
|
67
|
+
* Hover background for Subtle Buttons.
|
|
68
|
+
*/
|
|
69
|
+
actionColorBackgroundSubtleHover: '',
|
|
70
|
+
/**
|
|
71
|
+
* Default background for Destructive Buttons.
|
|
72
|
+
*/
|
|
73
|
+
actionColorBackgroundDestructive: '',
|
|
74
|
+
/**
|
|
75
|
+
* Active (pressed) background for Destructive Buttons.
|
|
76
|
+
*/
|
|
77
|
+
actionColorBackgroundDestructiveActive: '',
|
|
78
|
+
/**
|
|
79
|
+
* Disabled background for Destructive Buttons.
|
|
80
|
+
*/
|
|
81
|
+
actionColorBackgroundDestructiveDisabled: '',
|
|
82
|
+
/**
|
|
83
|
+
* Hover background for Destructive Buttons.
|
|
84
|
+
*/
|
|
85
|
+
actionColorBackgroundDestructiveHover: '',
|
|
86
|
+
/**
|
|
87
|
+
* Default background for Destructive Secondary Buttons.
|
|
88
|
+
*/
|
|
89
|
+
actionColorBackgroundDestructiveSecondary: '',
|
|
90
|
+
/**
|
|
91
|
+
* Active (pressed) background for Destructive Secondary Buttons
|
|
92
|
+
*/
|
|
93
|
+
actionColorBackgroundDestructiveSecondaryActive: '',
|
|
94
|
+
/**
|
|
95
|
+
* Disabled background for Destructive Secondary Buttons.
|
|
96
|
+
*/
|
|
97
|
+
actionColorBackgroundDestructiveSecondaryDisabled: '',
|
|
98
|
+
/**
|
|
99
|
+
* Hover background for Destructive Secondary Buttons.
|
|
100
|
+
*/
|
|
101
|
+
actionColorBackgroundDestructiveSecondaryHover: '',
|
|
102
|
+
/**
|
|
103
|
+
* Default border color for Secondary Buttons.
|
|
104
|
+
*/
|
|
105
|
+
actionColorBorderSecondary: '',
|
|
106
|
+
/**
|
|
107
|
+
* Active (pressed) border color for Secondary Buttons.
|
|
108
|
+
*/
|
|
109
|
+
actionColorBorderSecondaryActive: '',
|
|
110
|
+
/**
|
|
111
|
+
* Disabled border color for Secondary Buttons.
|
|
112
|
+
*/
|
|
113
|
+
actionColorBorderSecondaryDisabled: '',
|
|
114
|
+
/**
|
|
115
|
+
* Hover border color for Secondary Buttons.
|
|
116
|
+
*/
|
|
117
|
+
actionColorBorderSecondaryHover: '',
|
|
118
|
+
/**
|
|
119
|
+
* Default border color for Destructive Secondary Buttons.
|
|
120
|
+
*/
|
|
121
|
+
actionColorBorderDestructiveSecondary: '',
|
|
122
|
+
/**
|
|
123
|
+
* Active (pressed) border color for Destructive Secondary Buttons.
|
|
124
|
+
*/
|
|
125
|
+
actionColorBorderDestructiveSecondaryActive: '',
|
|
126
|
+
/**
|
|
127
|
+
* Disabled border color for Destructive Secondary Buttons.
|
|
128
|
+
*/
|
|
129
|
+
actionColorBorderDestructiveSecondaryDisabled: '',
|
|
130
|
+
/**
|
|
131
|
+
* Hover border color for Destructive Secondary Buttons.
|
|
132
|
+
*/
|
|
133
|
+
actionColorBorderDestructiveSecondaryHover: ''
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* #### Interactive colors
|
|
138
|
+
*
|
|
139
|
+
* Interactive colors should be used **exclusively** for styling Data Entry components: Input, Select, etc.
|
|
140
|
+
*
|
|
141
|
+
* "Overlay" colors are intended to be placed over the default background color, such as `interactiveColorAccent`.
|
|
142
|
+
* If the default background color is not transparent, the `blend` mixin can be used to create a new color that combines the two.
|
|
143
|
+
*
|
|
144
|
+
* @categoryColor
|
|
145
|
+
*/
|
|
146
|
+
var interactiveColors = {
|
|
147
|
+
/**
|
|
148
|
+
* Default border color for Data entry components.
|
|
149
|
+
*/
|
|
150
|
+
interactiveColorBorder: '',
|
|
151
|
+
/**
|
|
152
|
+
* Active (pressed) border color for Data entry components.
|
|
153
|
+
*/
|
|
154
|
+
interactiveColorBorderActive: '',
|
|
155
|
+
/**
|
|
156
|
+
* Hover border color for Data entry components.
|
|
157
|
+
*/
|
|
158
|
+
interactiveColorBorderHover: '',
|
|
159
|
+
/**
|
|
160
|
+
* Disabled border color for Data entry components.
|
|
161
|
+
*/
|
|
162
|
+
interactiveColorBorderDisabled: '',
|
|
163
|
+
/**
|
|
164
|
+
* Background overlay color for selected in Data entry components.
|
|
165
|
+
*/
|
|
166
|
+
interactiveColorOverlaySelected: '',
|
|
167
|
+
/**
|
|
168
|
+
* Background overlay color for hover in Data entry components.
|
|
169
|
+
*/
|
|
170
|
+
interactiveColorOverlayHover: '',
|
|
171
|
+
/**
|
|
172
|
+
* Background overlay color for active (pressed) in Data entry components.
|
|
173
|
+
*/
|
|
174
|
+
interactiveColorOverlayActive: '',
|
|
175
|
+
/**
|
|
176
|
+
* Background overlay color for drag in Data entry components.
|
|
177
|
+
*/
|
|
178
|
+
interactiveColorOverlayDrag: '',
|
|
179
|
+
/**
|
|
180
|
+
* Default background color for Data entry components.
|
|
181
|
+
*/
|
|
182
|
+
interactiveColorBackground: '',
|
|
183
|
+
/**
|
|
184
|
+
* Background color for disabled Data entry components.
|
|
185
|
+
*/
|
|
186
|
+
interactiveColorBackgroundDisabled: '',
|
|
187
|
+
/**
|
|
188
|
+
* Brand accent color for Data entry components.
|
|
189
|
+
*/
|
|
190
|
+
interactiveColorAccent: '',
|
|
191
|
+
/**
|
|
192
|
+
* Error color for Data entry components.
|
|
193
|
+
*/
|
|
194
|
+
interactiveColorAccentError: '',
|
|
195
|
+
/**
|
|
196
|
+
* Stronger error color for emphasis in Data Entry components. Used for hover interaction.
|
|
197
|
+
*/
|
|
198
|
+
interactiveColorAccentErrorStrong: ''
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* #### Neutral colors
|
|
203
|
+
*
|
|
204
|
+
* Neutral colors should be used sparingly. Prefer to use more semantic tokens for backgrounds and borders.
|
|
205
|
+
* These colors must not be used for content as they will not pass the required contrast ratio (instead, use [Content colors](#Content Colors)).
|
|
206
|
+
*
|
|
207
|
+
* @categoryColor
|
|
208
|
+
*/
|
|
209
|
+
var neutralColors = {
|
|
210
|
+
/**
|
|
211
|
+
* Alternate background color in dark color schemes and inverted background in light color schemes.
|
|
212
|
+
*/
|
|
213
|
+
black: '',
|
|
214
|
+
/**
|
|
215
|
+
* Least visually emphasized. Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
216
|
+
*/
|
|
217
|
+
neutral50: '',
|
|
218
|
+
/**
|
|
219
|
+
* Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
220
|
+
*/
|
|
221
|
+
neutral100: '',
|
|
222
|
+
/**
|
|
223
|
+
* Not for text, does not pass 3:1 graphical contrast in light & dark color schemes.
|
|
224
|
+
*/
|
|
225
|
+
neutral200: '',
|
|
226
|
+
/**
|
|
227
|
+
* Not for text, does not pass 3:1 graphical contrast in light & dark color schemes.
|
|
228
|
+
*/
|
|
229
|
+
neutral300: '',
|
|
230
|
+
/**
|
|
231
|
+
* Not for text, does not pass 3:1 graphical contrast in light color schemes.
|
|
232
|
+
*/
|
|
233
|
+
neutral400: '',
|
|
234
|
+
/**
|
|
235
|
+
* Most visually emphasized, not for text, does not pass 3:1 graphical contrast in light color schemes.
|
|
236
|
+
*/
|
|
237
|
+
neutral500: '',
|
|
238
|
+
/**
|
|
239
|
+
* Alternate background color in light color schemes and inverted background in dark color schemes.
|
|
240
|
+
*/
|
|
241
|
+
white: '',
|
|
242
|
+
/**
|
|
243
|
+
* Transparent background color.
|
|
244
|
+
*/
|
|
245
|
+
transparent: ''
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* #### Background colors
|
|
250
|
+
* Use background colors for page backgrounds and containers such as cards, modals, panels or popups.
|
|
251
|
+
*
|
|
252
|
+
* @categoryColor
|
|
253
|
+
*/
|
|
254
|
+
var backgroundColors = {
|
|
255
|
+
/**
|
|
256
|
+
* Default background color for the navigation headers.
|
|
257
|
+
*/
|
|
258
|
+
backgroundColorNavigation: '',
|
|
259
|
+
/**
|
|
260
|
+
* Primary background color for pages.
|
|
261
|
+
*/
|
|
262
|
+
backgroundColorPage: '',
|
|
263
|
+
/**
|
|
264
|
+
* Background color for side panels and navigation panels.
|
|
265
|
+
*/
|
|
266
|
+
backgroundColorSidebar: '',
|
|
267
|
+
/**
|
|
268
|
+
* Used for cards or to create visual separation in the UI.
|
|
269
|
+
*/
|
|
270
|
+
backgroundColorSection: '',
|
|
271
|
+
/**
|
|
272
|
+
* Default background color for modals.
|
|
273
|
+
*/
|
|
274
|
+
backgroundColorDialog: '',
|
|
275
|
+
/**
|
|
276
|
+
* Default background color for popovers and tooltips.
|
|
277
|
+
*/
|
|
278
|
+
backgroundColorPopup: '',
|
|
279
|
+
/**
|
|
280
|
+
* Background color for inverted color schemes.
|
|
281
|
+
*/
|
|
282
|
+
backgroundColorFloating: '',
|
|
283
|
+
/**
|
|
284
|
+
* Used for page overlays under modals or when masking UI.
|
|
285
|
+
*/
|
|
286
|
+
backgroundColorScrim: ''
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* #### Content colors
|
|
291
|
+
* Use content colors to create visual hierarchy, convey status or importance for plain text content.
|
|
292
|
+
*
|
|
293
|
+
* @categoryFont
|
|
294
|
+
*/
|
|
295
|
+
var contentColors = {
|
|
296
|
+
contentBackgroundColorNegativeWeak: '',
|
|
297
|
+
// TODO: can we remove?
|
|
298
|
+
/**
|
|
299
|
+
* Text color for links.
|
|
300
|
+
*/
|
|
301
|
+
contentColorLink: '',
|
|
302
|
+
/**
|
|
303
|
+
* Brand accent text color.
|
|
304
|
+
*/
|
|
305
|
+
contentColorAccent: '',
|
|
306
|
+
/**
|
|
307
|
+
* Brighter brand accent text color for emphasis.
|
|
308
|
+
*/
|
|
309
|
+
contentColorAccentStrong: '',
|
|
310
|
+
/**
|
|
311
|
+
* Brand accent text color that does not pass 4.5:1 contrast ratio.
|
|
312
|
+
*/
|
|
313
|
+
contentColorAccentWeak: '',
|
|
314
|
+
/**
|
|
315
|
+
* Text color for headings, titles, and prominent text content.
|
|
316
|
+
*/
|
|
317
|
+
contentColorActive: '',
|
|
318
|
+
/**
|
|
319
|
+
* Text color for paragraphs and standard content.
|
|
320
|
+
*/
|
|
321
|
+
contentColorDefault: '',
|
|
322
|
+
/**
|
|
323
|
+
* Text color for disabled content that does not pass 4.5:1 contrast.
|
|
324
|
+
*/
|
|
325
|
+
contentColorDisabled: '',
|
|
326
|
+
/**
|
|
327
|
+
* Text color used to convey informational context or status.
|
|
328
|
+
*/
|
|
329
|
+
contentColorInfo: '',
|
|
330
|
+
/**
|
|
331
|
+
* Text color used on top of inverted backgrounds.
|
|
332
|
+
*/
|
|
333
|
+
contentColorInverted: '',
|
|
334
|
+
/**
|
|
335
|
+
* Subdued text color for less prominent content (use sparingly).
|
|
336
|
+
*/
|
|
337
|
+
contentColorMuted: '',
|
|
338
|
+
/**
|
|
339
|
+
* Text color for error or negative status messaging.
|
|
340
|
+
*/
|
|
341
|
+
contentColorNegative: '',
|
|
342
|
+
/**
|
|
343
|
+
* Stronger negative text color for greater emphasis.
|
|
344
|
+
*/
|
|
345
|
+
contentColorNegativeStrong: '',
|
|
346
|
+
/**
|
|
347
|
+
* Disabled negative text color that does not pass 4.5:1 contrast.
|
|
348
|
+
*/
|
|
349
|
+
contentColorNegativeWeak: '',
|
|
350
|
+
/**
|
|
351
|
+
* Text color for success or positive status messaging.
|
|
352
|
+
*/
|
|
353
|
+
contentColorPositive: '',
|
|
354
|
+
/**
|
|
355
|
+
* Text color for cautionary or warning status messaging.
|
|
356
|
+
*/
|
|
357
|
+
contentColorWarning: ''
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* #### UI Colors
|
|
362
|
+
*
|
|
363
|
+
* @categoryColor
|
|
364
|
+
*/
|
|
365
|
+
var uiColors = {
|
|
366
|
+
/**
|
|
367
|
+
* Visual focus ring color used for focus box-shadow. Should not be directly applied to UI elements.
|
|
368
|
+
*/
|
|
369
|
+
focusColor: ''
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* #### Notification colors
|
|
374
|
+
*
|
|
375
|
+
* Use notifications colors to communicate messages and guidance directly to users.
|
|
376
|
+
* For example in Message Bars, Toasts, or other notification components to set tone and urgency in a conversational context.
|
|
377
|
+
*
|
|
378
|
+
* Weak variants do not meet graphical or text contrast and should only be used decoratively.
|
|
379
|
+
*
|
|
380
|
+
* @categoryColor
|
|
381
|
+
*/
|
|
382
|
+
var notificationColors = {
|
|
383
|
+
notificationColorInfoWeak: '',
|
|
384
|
+
notificationColorInfo: '',
|
|
385
|
+
notificationColorInfoStrong: '',
|
|
386
|
+
notificationColorPositiveWeak: '',
|
|
387
|
+
notificationColorPositive: '',
|
|
388
|
+
notificationColorPositiveStrong: '',
|
|
389
|
+
notificationColorCautionWeak: '',
|
|
390
|
+
notificationColorCaution: '',
|
|
391
|
+
notificationColorCautionStrong: '',
|
|
392
|
+
notificationColorNegativeWeak: '',
|
|
393
|
+
notificationColorNegative: '',
|
|
394
|
+
notificationColorNegativeStrong: ''
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* #### Severity colors
|
|
399
|
+
*
|
|
400
|
+
* Use severity colors for icons, indicators, and visual signals to help users quickly scan for criticality, risk, or state without relying only on text.
|
|
401
|
+
* Severity colors should be used to aid identifying the semantic meaning of an element; not used to communicate tone.
|
|
402
|
+
*
|
|
403
|
+
* @categoryColor
|
|
404
|
+
*/
|
|
405
|
+
var severityColors = {
|
|
406
|
+
severityColorCustom: '',
|
|
407
|
+
severityColorUnknown: '',
|
|
408
|
+
severityColorInfo: '',
|
|
409
|
+
severityColorNormal: '',
|
|
410
|
+
severityColorNotice: '',
|
|
411
|
+
severityColorWarning: '',
|
|
412
|
+
severityColorAlert: '',
|
|
413
|
+
severityColorCritical: '',
|
|
414
|
+
severityColorEmergency: ''
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* #### Status colors
|
|
419
|
+
* Use status colors to convey informative, positive, caution or negative content status.
|
|
420
|
+
* Weak variants do not meet graphical or text contrast and should only be used decoratively.
|
|
421
|
+
*
|
|
422
|
+
* @categoryColor
|
|
423
|
+
*/
|
|
424
|
+
var statusColors = {
|
|
425
|
+
/**
|
|
426
|
+
* Default color for informational messages and notifications.
|
|
427
|
+
*/
|
|
428
|
+
statusColorInfo: '',
|
|
429
|
+
/**
|
|
430
|
+
* Weaker, less prominent informational color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
431
|
+
*/
|
|
432
|
+
statusColorInfoWeak: '',
|
|
433
|
+
/**
|
|
434
|
+
* Brighter, more prominent informational color.
|
|
435
|
+
*/
|
|
436
|
+
statusColorInfoStrong: '',
|
|
437
|
+
/**
|
|
438
|
+
* Default color for neutral or standard status messages.
|
|
439
|
+
*/
|
|
440
|
+
statusColorNormal: '',
|
|
441
|
+
/**
|
|
442
|
+
* Weaker, less prominent normal color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
443
|
+
*/
|
|
444
|
+
statusColorNormalWeak: '',
|
|
445
|
+
/**
|
|
446
|
+
* Brighter, more prominent normal color.
|
|
447
|
+
*/
|
|
448
|
+
statusColorNormalStrong: '',
|
|
449
|
+
/**
|
|
450
|
+
* Default color for low-priority status messages.
|
|
451
|
+
*/
|
|
452
|
+
statusColorLow: '',
|
|
453
|
+
/**
|
|
454
|
+
* Weaker, less prominent low-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
455
|
+
*/
|
|
456
|
+
statusColorLowWeak: '',
|
|
457
|
+
/**
|
|
458
|
+
* Brighter, more prominent low-priority color.
|
|
459
|
+
*/
|
|
460
|
+
statusColorLowStrong: '',
|
|
461
|
+
/**
|
|
462
|
+
* Default color for medium-priority status messages.
|
|
463
|
+
*/
|
|
464
|
+
statusColorMedium: '',
|
|
465
|
+
/**
|
|
466
|
+
* Weaker, less prominent medium-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
467
|
+
*/
|
|
468
|
+
statusColorMediumWeak: '',
|
|
469
|
+
/**
|
|
470
|
+
* Brighter, more prominent medium-priority color.
|
|
471
|
+
*/
|
|
472
|
+
statusColorMediumStrong: '',
|
|
473
|
+
/**
|
|
474
|
+
* Default color for high-priority status messages.
|
|
475
|
+
*/
|
|
476
|
+
statusColorHigh: '',
|
|
477
|
+
/**
|
|
478
|
+
* Weaker, less prominent high-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
479
|
+
*/
|
|
480
|
+
statusColorHighWeak: '',
|
|
481
|
+
/**
|
|
482
|
+
* Brighter, more prominent high-priority color.
|
|
483
|
+
*/
|
|
484
|
+
statusColorHighStrong: '',
|
|
485
|
+
/**
|
|
486
|
+
* Default color for critical alerts or urgent messages.
|
|
487
|
+
*/
|
|
488
|
+
statusColorCritical: '',
|
|
489
|
+
/**
|
|
490
|
+
* Weaker, less prominent critical color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
491
|
+
*/
|
|
492
|
+
statusColorCriticalWeak: '',
|
|
493
|
+
/**
|
|
494
|
+
* Brighter, more prominent critical color.
|
|
495
|
+
*/
|
|
496
|
+
statusColorCriticalStrong: ''
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* #### Syntax colors
|
|
501
|
+
*
|
|
502
|
+
* These colors should be used for syntax highlighting in programming languages.
|
|
503
|
+
* The colors chosen for tokens depend on the language, its features, and aesthetics.
|
|
504
|
+
* Prefer to use the `Code` component rather than these tokens directly as it does this mapping automatically.
|
|
505
|
+
* See [Content Colors](#Content Colors)
|
|
506
|
+
*
|
|
507
|
+
* @categoryFont
|
|
508
|
+
*/
|
|
509
|
+
var syntaxColors = {
|
|
510
|
+
syntaxBlue: '',
|
|
511
|
+
syntaxBrown: '',
|
|
512
|
+
syntaxGray: '',
|
|
513
|
+
syntaxGreen: '',
|
|
514
|
+
syntaxOrange: '',
|
|
515
|
+
syntaxPink: '',
|
|
516
|
+
syntaxPurple: '',
|
|
517
|
+
syntaxRed: '',
|
|
518
|
+
syntaxTeal: ''
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* #### Border colors
|
|
523
|
+
*
|
|
524
|
+
* Border color should be used to outline or divide content and UI elements.
|
|
525
|
+
*
|
|
526
|
+
* @categoryColor
|
|
527
|
+
*/
|
|
528
|
+
var borderColors = {
|
|
529
|
+
/**
|
|
530
|
+
* Default border color for elements that meets 3:1 graphical contrast (e.g., menu dividers).
|
|
531
|
+
*/
|
|
532
|
+
borderColor: '',
|
|
533
|
+
/**
|
|
534
|
+
* Decorative-only border color that does not meet 3:1 graphical contrast.
|
|
535
|
+
*/
|
|
536
|
+
borderColorWeak: '',
|
|
537
|
+
/**
|
|
538
|
+
* Border color with stronger visual emphasis that meets 3:1 graphical contrast.
|
|
539
|
+
*/
|
|
540
|
+
borderColorStrong: ''
|
|
541
|
+
};
|
|
542
|
+
var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), interactiveColors), neutralColors), backgroundColors), contentColors), uiColors), notificationColors), severityColors), statusColors), syntaxColors), borderColors);
|
|
543
|
+
var _default = colors;
|
|
544
|
+
exports["default"] = _default;
|