@splunk/themes 0.16.3 → 0.17.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.
- package/CHANGELOG.md +11 -1
- package/enterprise/dark.js +29 -1
- package/enterprise/light.js +20 -10
- package/package.json +6 -6
- package/prisma/base.js +11 -1
- package/prisma/dark.js +4 -3
- package/prisma/light.js +10 -9
- package/types/enterprise/dark.d.ts +11 -9
- package/types/enterprise/light.d.ts +2 -0
- package/types/prisma/base.d.ts +6 -1
- package/types/prisma/dark.d.ts +1 -0
- package/types/prisma/light.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
-
0.
|
|
4
|
+
0.17.0 - March 21, 2024
|
|
5
|
+
----------
|
|
6
|
+
New Features:
|
|
7
|
+
* Added new variable `activeBorder`.
|
|
8
|
+
|
|
9
|
+
0.16.4 - Dec 5, 2023
|
|
10
|
+
----------
|
|
11
|
+
Bug Fixes:
|
|
12
|
+
* `syntaxColors` have been updated to meet A11y_WCAG 1.4.3 contrast requirements for prisma and enterprise themes (SUI-5750).
|
|
13
|
+
|
|
14
|
+
0.16.3 - October 11, 2023
|
|
5
15
|
----------
|
|
6
16
|
Bug Fixes:
|
|
7
17
|
* This package should now load correctly in Webpack 4 environments (SUI-5802).
|
package/enterprise/dark.js
CHANGED
|
@@ -21,6 +21,7 @@ var dark = {
|
|
|
21
21
|
backgroundColor: _light["default"].gray20,
|
|
22
22
|
backgroundColorHover: _light["default"].gray30,
|
|
23
23
|
borderColor: _light["default"].gray22,
|
|
24
|
+
borderActiveColor: "rgba(225,225,225, 0.5)",
|
|
24
25
|
borderDarkColor: _light["default"].black,
|
|
25
26
|
borderLightColor: _light["default"].gray60,
|
|
26
27
|
textColor: _light["default"].white,
|
|
@@ -34,8 +35,35 @@ var dark = {
|
|
|
34
35
|
focusShadowInset: "inset 0 0 1px 1px ".concat(_light["default"].gray25, ", inset 0 0 0 3px ").concat(_light["default"].focusColor),
|
|
35
36
|
draggableBackground: "url('data:image/png;base64,".concat(dragHandleDark, "') 0 0 / 8px 8px repeat")
|
|
36
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* ## Syntax colors
|
|
40
|
+
* Syntax colors are used only for code blocks.
|
|
41
|
+
*
|
|
42
|
+
* @colorSet verbose alphabetical
|
|
43
|
+
*/
|
|
37
44
|
|
|
38
|
-
var
|
|
45
|
+
var syntaxColors = {
|
|
46
|
+
syntaxBlue: '#6cd0f0',
|
|
47
|
+
syntaxBrown: '#fccf87',
|
|
48
|
+
syntaxGray: '#b5b5b5',
|
|
49
|
+
syntaxGreen: '#cef06c',
|
|
50
|
+
syntaxOrange: '#f7994a',
|
|
51
|
+
syntaxPink: '#f494e5',
|
|
52
|
+
syntaxPurple: '#c99eff',
|
|
53
|
+
syntaxRed: '#fa94aa',
|
|
54
|
+
syntaxTeal: '#45d4ba'
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* ## Interactive borders
|
|
58
|
+
*
|
|
59
|
+
* @borderSet
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
var bordersInteractive = {
|
|
63
|
+
activeBorder: "".concat(dark.borderActiveColor, " double")
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _light["default"]), dark), syntaxColors), bordersInteractive);
|
|
39
67
|
|
|
40
68
|
var _default = theme;
|
|
41
69
|
exports["default"] = _default;
|
package/enterprise/light.js
CHANGED
|
@@ -264,6 +264,7 @@ var usageColors = {
|
|
|
264
264
|
textDisabledColor: grays.gray80,
|
|
265
265
|
linkColor: accentColors.accentColorD10,
|
|
266
266
|
linkColorHover: accentColors.accentColor,
|
|
267
|
+
borderActiveColor: "rgba(0,0,0, 0.5)",
|
|
267
268
|
borderLightColor: grays.gray92,
|
|
268
269
|
borderColor: grays.gray80,
|
|
269
270
|
focusColor: accentColors.accentColorD10,
|
|
@@ -279,19 +280,19 @@ var usageColors = {
|
|
|
279
280
|
*/
|
|
280
281
|
|
|
281
282
|
var syntaxColors = {
|
|
282
|
-
syntaxBlue: '#
|
|
283
|
+
syntaxBlue: '#006aa3',
|
|
283
284
|
syntaxBlueLight: '#006d9c',
|
|
284
|
-
syntaxBrown: '#
|
|
285
|
-
syntaxGray: '#
|
|
286
|
-
syntaxGreen: '#
|
|
285
|
+
syntaxBrown: '#905b04',
|
|
286
|
+
syntaxGray: '#5c6773',
|
|
287
|
+
syntaxGreen: '#2f612e',
|
|
287
288
|
syntaxGreenLight: '#5ba383',
|
|
288
|
-
syntaxOrange: '#
|
|
289
|
-
syntaxPink: '#
|
|
290
|
-
syntaxPurple: '#
|
|
289
|
+
syntaxOrange: '#a44b0e',
|
|
290
|
+
syntaxPink: '#b9139e',
|
|
291
|
+
syntaxPurple: '#5317f2',
|
|
291
292
|
syntaxPurpleLight: '#b19cd9',
|
|
292
|
-
syntaxRed: '#
|
|
293
|
+
syntaxRed: '#ca163d',
|
|
293
294
|
syntaxRedLight: '#af575a',
|
|
294
|
-
syntaxTeal: '#
|
|
295
|
+
syntaxTeal: '#1a7060'
|
|
295
296
|
};
|
|
296
297
|
/**
|
|
297
298
|
* ## Shadows
|
|
@@ -304,6 +305,15 @@ var shadows = {
|
|
|
304
305
|
focusShadowInset: "inset 0 0 1px 1px ".concat(grays.white, ", inset 0 0 0 3px ").concat(usageColors.focusColor),
|
|
305
306
|
overlayShadow: '0 4px 8px rgba(0, 0, 0, 0.2)'
|
|
306
307
|
};
|
|
308
|
+
/**
|
|
309
|
+
* ## Interactive borders
|
|
310
|
+
*
|
|
311
|
+
* @borderSet
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
var bordersInteractive = {
|
|
315
|
+
activeBorder: "".concat(usageColors.borderActiveColor, " double")
|
|
316
|
+
};
|
|
307
317
|
/**
|
|
308
318
|
* ## Backgrounds
|
|
309
319
|
*
|
|
@@ -368,7 +378,7 @@ var zindexes = {
|
|
|
368
378
|
zindexToastMessages: 2000
|
|
369
379
|
};
|
|
370
380
|
|
|
371
|
-
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, brandColors), grays), accentColors), errorColors), alertColors), warningColors), successColors), infoColors), categoricalColors), divergingColors), syntaxColors), fontFamily), fontWeights), usageColors), backgrounds), shadows), borders), zindexes);
|
|
381
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, brandColors), grays), accentColors), errorColors), alertColors), warningColors), successColors), infoColors), categoricalColors), divergingColors), syntaxColors), fontFamily), fontWeights), usageColors), backgrounds), shadows), bordersInteractive), borders), zindexes);
|
|
372
382
|
|
|
373
383
|
var _default = theme;
|
|
374
384
|
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/themes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Theme variables and mixins for the Splunk design language",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"babel": "babel src -d . --ignore src/babel-plugin-base64-png,src/tests --ignore \"**/docs\" --extensions .js,.ts,.tsx",
|
|
@@ -55,10 +55,6 @@
|
|
|
55
55
|
"license": "Apache-2.0",
|
|
56
56
|
"author": "Splunk Inc.",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@types/lodash": "^4.14.156",
|
|
59
|
-
"@types/react": "^16.9.38",
|
|
60
|
-
"@types/styled-components": "^5.1.0",
|
|
61
|
-
"@types/tinycolor2": "^1.4.2",
|
|
62
58
|
"color-blend": "^2.0.9",
|
|
63
59
|
"lodash": "^4.17.14",
|
|
64
60
|
"tinycolor2": "^1.4.1"
|
|
@@ -76,6 +72,10 @@
|
|
|
76
72
|
"@testing-library/jest-dom": "^5.16.1",
|
|
77
73
|
"@testing-library/react": "^12.1.2",
|
|
78
74
|
"@testing-library/react-hooks": "^7.0.2",
|
|
75
|
+
"@types/lodash": "^4.14.156",
|
|
76
|
+
"@types/react": "^16.9.38",
|
|
77
|
+
"@types/styled-components": "^5.1.0",
|
|
78
|
+
"@types/tinycolor2": "^1.4.2",
|
|
79
79
|
"@typescript-eslint/eslint-plugin": "^3.4.0",
|
|
80
80
|
"@typescript-eslint/parser": "^3.4.0",
|
|
81
81
|
"babel-eslint": "^10.1.0",
|
|
@@ -99,6 +99,6 @@
|
|
|
99
99
|
"webpack-merge": "^5.9.0"
|
|
100
100
|
},
|
|
101
101
|
"engines": {
|
|
102
|
-
"node": ">=
|
|
102
|
+
"node": ">=14"
|
|
103
103
|
}
|
|
104
104
|
}
|
package/prisma/base.js
CHANGED
|
@@ -51,6 +51,16 @@ function createPrismaBase(_ref) {
|
|
|
51
51
|
focusShadow: "0 0 0 2px ".concat(colorSchemeVars.backgroundColorPage, ", 0 0 0 5px ").concat(usageColors.focusColor),
|
|
52
52
|
focusShadowInset: "inset 0 0 0 3px ".concat(usageColors.focusColor)
|
|
53
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* ## Interactive state borders
|
|
56
|
+
*
|
|
57
|
+
* @borderSet
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
var borders = {
|
|
62
|
+
activeBorder: "double ".concat(colorSchemeVars.interactiveColorBorderActive)
|
|
63
|
+
};
|
|
54
64
|
/**
|
|
55
65
|
* ## Backgrounds
|
|
56
66
|
*
|
|
@@ -104,7 +114,7 @@ function createPrismaBase(_ref) {
|
|
|
104
114
|
zindexPopover: 1060,
|
|
105
115
|
zindexToastMessages: 2000
|
|
106
116
|
};
|
|
107
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontFamily), fontWeights), usageColors), _dataViz["default"]), shadows), backgrounds), zindexes);
|
|
117
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontFamily), fontWeights), usageColors), _dataViz["default"]), shadows), borders), backgrounds), zindexes);
|
|
108
118
|
}
|
|
109
119
|
|
|
110
120
|
var _default = createPrismaBase;
|
package/prisma/dark.js
CHANGED
|
@@ -53,6 +53,7 @@ var contentColors = {
|
|
|
53
53
|
var interactiveColors = {
|
|
54
54
|
interactiveColorPrimary: '#3993FF',
|
|
55
55
|
interactiveColorBorder: 'rgba(255, 255, 255, 0.5)',
|
|
56
|
+
interactiveColorBorderActive: 'rgba(225,225,225, 0.5)',
|
|
56
57
|
interactiveColorBorderHover: 'rgba(255, 255, 255, 0.7)',
|
|
57
58
|
interactiveColorBorderDisabled: 'rgba(255, 255, 255, 0.30)',
|
|
58
59
|
interactiveColorOverlaySelected: 'rgba(255, 255, 255, 0.1)',
|
|
@@ -129,12 +130,12 @@ var elevationShadows = {
|
|
|
129
130
|
var syntaxColors = {
|
|
130
131
|
syntaxBlue: '#6cd0f0',
|
|
131
132
|
syntaxBrown: '#fccf87',
|
|
132
|
-
syntaxGray: '#
|
|
133
|
+
syntaxGray: '#909090',
|
|
133
134
|
syntaxGreen: '#cef06c',
|
|
134
135
|
syntaxOrange: '#f7933f',
|
|
135
136
|
syntaxPink: '#f494e5',
|
|
136
|
-
syntaxPurple: '#
|
|
137
|
-
syntaxRed: '#
|
|
137
|
+
syntaxPurple: '#ab74f1',
|
|
138
|
+
syntaxRed: '#e9627f',
|
|
138
139
|
syntaxTeal: '#45d4ba'
|
|
139
140
|
};
|
|
140
141
|
|
package/prisma/light.js
CHANGED
|
@@ -53,6 +53,7 @@ var contentColors = {
|
|
|
53
53
|
var interactiveColors = {
|
|
54
54
|
interactiveColorPrimary: '#0264d7',
|
|
55
55
|
interactiveColorBorder: 'rgba(0, 0, 0, 0.4)',
|
|
56
|
+
interactiveColorBorderActive: 'rgba(0, 0, 0, 0.5)',
|
|
56
57
|
interactiveColorBorderHover: 'rgba(0, 0, 0, 0.6)',
|
|
57
58
|
interactiveColorBorderDisabled: 'rgba(0, 0, 0, 0.3)',
|
|
58
59
|
interactiveColorOverlaySelected: 'rgba(0, 0, 0, 0.04)',
|
|
@@ -127,15 +128,15 @@ var elevationShadows = {
|
|
|
127
128
|
*/
|
|
128
129
|
|
|
129
130
|
var syntaxColors = {
|
|
130
|
-
syntaxBlue: '#
|
|
131
|
-
syntaxBrown: '#
|
|
132
|
-
syntaxGray: '#
|
|
133
|
-
syntaxGreen: '#
|
|
134
|
-
syntaxOrange: '#
|
|
135
|
-
syntaxPink: '#
|
|
136
|
-
syntaxPurple: '#
|
|
137
|
-
syntaxRed: '#
|
|
138
|
-
syntaxTeal: '#
|
|
131
|
+
syntaxBlue: '#0f7594',
|
|
132
|
+
syntaxBrown: '#9f6404',
|
|
133
|
+
syntaxGray: '#6b6b6b',
|
|
134
|
+
syntaxGreen: '#5c780c',
|
|
135
|
+
syntaxOrange: '#ba4f08',
|
|
136
|
+
syntaxPink: '#cc15ae',
|
|
137
|
+
syntaxPurple: '#7b4df5',
|
|
138
|
+
syntaxRed: '#db1e47',
|
|
139
|
+
syntaxTeal: '#1d7c6b'
|
|
139
140
|
};
|
|
140
141
|
|
|
141
142
|
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, accentColors), statusColors), elevationShadows), backgroundColors), contentColors), neutralColors), interactiveColors), syntaxColors);
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
+
activeBorder: string;
|
|
3
|
+
syntaxBlue: string;
|
|
4
|
+
syntaxBrown: string;
|
|
5
|
+
syntaxGray: string;
|
|
6
|
+
syntaxGreen: string;
|
|
7
|
+
syntaxOrange: string;
|
|
8
|
+
syntaxPink: string;
|
|
9
|
+
syntaxPurple: string;
|
|
10
|
+
syntaxRed: string;
|
|
11
|
+
syntaxTeal: string;
|
|
2
12
|
backgroundColor: string;
|
|
3
13
|
backgroundColorHover: string;
|
|
4
14
|
borderColor: string;
|
|
15
|
+
borderActiveColor: string;
|
|
5
16
|
borderDarkColor: string;
|
|
6
17
|
borderLightColor: string;
|
|
7
18
|
textColor: string;
|
|
@@ -35,19 +46,10 @@ declare const theme: {
|
|
|
35
46
|
serifFontFamily: string;
|
|
36
47
|
monoFontFamily: string;
|
|
37
48
|
fontFamily: string;
|
|
38
|
-
syntaxBlue: string;
|
|
39
49
|
syntaxBlueLight: string;
|
|
40
|
-
syntaxBrown: string;
|
|
41
|
-
syntaxGray: string;
|
|
42
|
-
syntaxGreen: string;
|
|
43
50
|
syntaxGreenLight: string;
|
|
44
|
-
syntaxOrange: string;
|
|
45
|
-
syntaxPink: string;
|
|
46
|
-
syntaxPurple: string;
|
|
47
51
|
syntaxPurpleLight: string;
|
|
48
|
-
syntaxRed: string;
|
|
49
52
|
syntaxRedLight: string;
|
|
50
|
-
syntaxTeal: string;
|
|
51
53
|
diverging1ColorA: string;
|
|
52
54
|
diverging1ColorB: string;
|
|
53
55
|
diverging2ColorA: string;
|
|
@@ -7,6 +7,7 @@ declare const theme: {
|
|
|
7
7
|
zindexToastMessages: number;
|
|
8
8
|
borderRadius: string;
|
|
9
9
|
border: string;
|
|
10
|
+
activeBorder: string;
|
|
10
11
|
focusShadow: string;
|
|
11
12
|
focusShadowInset: string;
|
|
12
13
|
overlayShadow: string;
|
|
@@ -16,6 +17,7 @@ declare const theme: {
|
|
|
16
17
|
textDisabledColor: string;
|
|
17
18
|
linkColor: string;
|
|
18
19
|
linkColorHover: string;
|
|
20
|
+
borderActiveColor: string;
|
|
19
21
|
borderLightColor: string;
|
|
20
22
|
borderColor: string;
|
|
21
23
|
focusColor: string;
|
package/types/prisma/base.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare function createPrismaBase({ colorScheme }: {
|
|
|
9
9
|
zindexPopover: number;
|
|
10
10
|
zindexToastMessages: number;
|
|
11
11
|
draggableBackground: string;
|
|
12
|
+
activeBorder: string;
|
|
12
13
|
hoverShadow: string;
|
|
13
14
|
focusShadow: string;
|
|
14
15
|
focusShadowInset: string;
|
|
@@ -188,7 +189,11 @@ declare function createPrismaBase({ colorScheme }: {
|
|
|
188
189
|
categorical1L4: string;
|
|
189
190
|
categorical1L5: string;
|
|
190
191
|
categorical1L6: string;
|
|
191
|
-
categorical1L7: string;
|
|
192
|
+
categorical1L7: string; /**
|
|
193
|
+
* ## Backgrounds
|
|
194
|
+
*
|
|
195
|
+
* @colorSet verbose
|
|
196
|
+
*/
|
|
192
197
|
categorical1D1: string;
|
|
193
198
|
categorical1D2: string;
|
|
194
199
|
categorical1D3: string;
|
package/types/prisma/dark.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const theme: {
|
|
|
16
16
|
syntaxTeal: string;
|
|
17
17
|
interactiveColorPrimary: string;
|
|
18
18
|
interactiveColorBorder: string;
|
|
19
|
+
interactiveColorBorderActive: string;
|
|
19
20
|
interactiveColorBorderHover: string;
|
|
20
21
|
interactiveColorBorderDisabled: string;
|
|
21
22
|
interactiveColorOverlaySelected: string;
|
package/types/prisma/light.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const theme: {
|
|
|
16
16
|
syntaxTeal: string;
|
|
17
17
|
interactiveColorPrimary: string;
|
|
18
18
|
interactiveColorBorder: string;
|
|
19
|
+
interactiveColorBorderActive: string;
|
|
19
20
|
interactiveColorBorderHover: string;
|
|
20
21
|
interactiveColorBorderDisabled: string;
|
|
21
22
|
interactiveColorOverlaySelected: string;
|