@elastic/eui-theme-borealis 2.0.0 → 3.0.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/lib/cjs/index.d.ts +3 -1
- package/lib/cjs/index.js +15 -2
- package/lib/cjs/variables/_components.js +185 -150
- package/lib/cjs/variables/colors/_colors_dark.js +3 -1
- package/lib/cjs/variables/colors/_colors_light.js +3 -1
- package/lib/cjs/variables/colors/{_colors_vis.d.ts → _colors_vis_dark.d.ts} +1 -1
- package/lib/cjs/variables/colors/_colors_vis_dark.js +32 -0
- package/lib/cjs/variables/colors/_colors_vis_light.d.ts +2 -0
- package/lib/cjs/variables/colors/{_colors_vis.js → _colors_vis_light.js} +12 -16
- package/lib/cjs/variables/colors/index.js +15 -7
- package/lib/esm/index.d.ts +3 -1
- package/lib/esm/index.js +3 -1
- package/lib/esm/variables/_components.js +36 -29
- package/lib/esm/variables/colors/_colors_dark.js +2 -0
- package/lib/esm/variables/colors/_colors_light.js +2 -0
- package/lib/esm/variables/colors/{_colors_vis.d.ts → _colors_vis_dark.d.ts} +1 -1
- package/lib/esm/variables/colors/_colors_vis_dark.js +22 -0
- package/lib/esm/variables/colors/_colors_vis_light.d.ts +2 -0
- package/lib/esm/variables/colors/{_colors_vis.js → _colors_vis_light.js} +11 -15
- package/lib/esm/variables/colors/index.js +10 -4
- package/lib/eui_theme_borealis_dark.json +13 -15
- package/lib/eui_theme_borealis_dark.json.d.ts +12 -14
- package/lib/eui_theme_borealis_light.json +13 -15
- package/lib/eui_theme_borealis_light.json.d.ts +12 -14
- package/package.json +2 -2
- package/src/theme_dark.scss +1 -0
- package/src/theme_light.scss +1 -0
- package/src/variables/_index.scss +0 -1
- package/src/variables/colors/_colors_dark.scss +2 -0
- package/src/variables/colors/_colors_light.scss +2 -0
- package/src/variables/colors/_colors_vis.scss +18 -18
- package/src/variables/colors/_colors_vis_dark.scss +14 -0
- package/src/variables/colors/_colors_vis_light.scss +14 -0
- package/src/variables/colors/_semantic_colors.scss +28 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.colorVisLight = void 0;
|
|
7
7
|
var _semantic_colors = require("./_semantic_colors");
|
|
8
8
|
var _primitive_colors = require("./_primitive_colors");
|
|
9
9
|
/*
|
|
@@ -49,7 +49,7 @@ var euiPaletteColorBlind = {
|
|
|
49
49
|
graphic: _semantic_colors.SEMANTIC_COLORS.warning30
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
var
|
|
52
|
+
var colorVisLight = exports.colorVisLight = {
|
|
53
53
|
euiColorVis0: euiPaletteColorBlind.euiColorVis0.graphic,
|
|
54
54
|
euiColorVis1: euiPaletteColorBlind.euiColorVis1.graphic,
|
|
55
55
|
euiColorVis2: euiPaletteColorBlind.euiColorVis2.graphic,
|
|
@@ -70,20 +70,16 @@ var colorVis = exports.colorVis = {
|
|
|
70
70
|
euiColorVisBehindText7: euiPaletteColorBlind.euiColorVis7.graphic,
|
|
71
71
|
euiColorVisBehindText8: euiPaletteColorBlind.euiColorVis8.graphic,
|
|
72
72
|
euiColorVisBehindText9: euiPaletteColorBlind.euiColorVis9.graphic,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
euiColorVisAsTextDark3: _semantic_colors.SEMANTIC_COLORS.danger60,
|
|
84
|
-
euiColorVisAsTextDark4: _semantic_colors.SEMANTIC_COLORS.warning60,
|
|
85
|
-
euiColorVisAsTextDark5: _semantic_colors.SEMANTIC_COLORS.success60,
|
|
86
|
-
euiColorVisAsTextDark6: _semantic_colors.SEMANTIC_COLORS.assistance60,
|
|
73
|
+
euiColorVisText0: _semantic_colors.SEMANTIC_COLORS.accentSecondary110,
|
|
74
|
+
euiColorVisText1: _semantic_colors.SEMANTIC_COLORS.accentSecondary100,
|
|
75
|
+
euiColorVisText2: _semantic_colors.SEMANTIC_COLORS.primary110,
|
|
76
|
+
euiColorVisText3: _semantic_colors.SEMANTIC_COLORS.primary90,
|
|
77
|
+
euiColorVisText4: _semantic_colors.SEMANTIC_COLORS.accent100,
|
|
78
|
+
euiColorVisText5: _semantic_colors.SEMANTIC_COLORS.accent80,
|
|
79
|
+
euiColorVisText6: _semantic_colors.SEMANTIC_COLORS.danger100,
|
|
80
|
+
euiColorVisText7: _semantic_colors.SEMANTIC_COLORS.danger80,
|
|
81
|
+
euiColorVisText8: _semantic_colors.SEMANTIC_COLORS.warning110,
|
|
82
|
+
euiColorVisText9: _semantic_colors.SEMANTIC_COLORS.warning90,
|
|
87
83
|
euiColorVisNeutral0: _semantic_colors.SEMANTIC_COLORS.neutral60,
|
|
88
84
|
euiColorVisNeutral1: _semantic_colors.SEMANTIC_COLORS.neutral30,
|
|
89
85
|
euiColorVisSuccess0: _semantic_colors.SEMANTIC_COLORS.success60,
|
|
@@ -7,23 +7,31 @@ exports.colors = void 0;
|
|
|
7
7
|
var _semantic_colors = require("./_semantic_colors");
|
|
8
8
|
var _colors_light = require("./_colors_light");
|
|
9
9
|
var _colors_dark = require("./_colors_dark");
|
|
10
|
-
var
|
|
10
|
+
var _colors_vis_light = require("./_colors_vis_light");
|
|
11
|
+
var _colors_vis_dark = require("./_colors_vis_dark");
|
|
11
12
|
var _colors_severity = require("./_colors_severity");
|
|
12
|
-
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
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; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
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
19
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
14
20
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
15
21
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
16
22
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
17
23
|
* Side Public License, v 1.
|
|
18
24
|
*/
|
|
19
|
-
|
|
20
25
|
var colors = exports.colors = {
|
|
21
26
|
ghost: _semantic_colors.SEMANTIC_COLORS.plainLight,
|
|
22
27
|
ink: _semantic_colors.SEMANTIC_COLORS.plainDark,
|
|
23
28
|
plainLight: _semantic_colors.SEMANTIC_COLORS.plainLight,
|
|
24
29
|
plainDark: _semantic_colors.SEMANTIC_COLORS.plainDark,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
severity: _colors_severity.severityColors,
|
|
31
|
+
LIGHT: _objectSpread(_objectSpread({}, _colors_light.light_colors), {}, {
|
|
32
|
+
vis: _colors_vis_light.colorVisLight
|
|
33
|
+
}),
|
|
34
|
+
DARK: _objectSpread(_objectSpread({}, _colors_dark.dark_colors), {}, {
|
|
35
|
+
vis: _colors_vis_dark.colorVisDark
|
|
36
|
+
})
|
|
29
37
|
};
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { EuiThemeShape } from '@elastic/eui-theme-common';
|
|
2
|
-
|
|
2
|
+
import { colorVisLight } from './variables/colors/_colors_vis_light';
|
|
3
|
+
import { colorVisDark } from './variables/colors/_colors_vis_dark';
|
|
4
|
+
export { colorVisLight as colorVis, colorVisLight, colorVisDark };
|
|
3
5
|
export declare const EUI_THEME_BOREALIS_KEY = "EUI_THEME_BOREALIS";
|
|
4
6
|
export declare const euiThemeBorealis: EuiThemeShape;
|
|
5
7
|
export declare const EuiThemeBorealis: {
|
package/lib/esm/index.js
CHANGED
|
@@ -16,7 +16,9 @@ import { font } from './variables/_typography';
|
|
|
16
16
|
import { focus } from './variables/_states';
|
|
17
17
|
import { components } from './variables/_components';
|
|
18
18
|
import { overrides } from './variables/_overrides';
|
|
19
|
-
|
|
19
|
+
import { colorVisLight } from './variables/colors/_colors_vis_light';
|
|
20
|
+
import { colorVisDark } from './variables/colors/_colors_vis_dark';
|
|
21
|
+
export { colorVisLight as colorVis, colorVisLight, colorVisDark };
|
|
20
22
|
export const EUI_THEME_BOREALIS_KEY = 'EUI_THEME_BOREALIS';
|
|
21
23
|
export const euiThemeBorealis = {
|
|
22
24
|
colors,
|
|
@@ -9,7 +9,6 @@ import { computed, } from '@elastic/eui-theme-common';
|
|
|
9
9
|
import { SEMANTIC_COLORS } from './colors/_semantic_colors';
|
|
10
10
|
import { dark_background_colors, dark_border_colors, } from './colors/_colors_dark';
|
|
11
11
|
import { border_colors } from './colors/_colors_light';
|
|
12
|
-
import { colorVis } from './colors/_colors_vis';
|
|
13
12
|
import { buttons } from './_buttons';
|
|
14
13
|
import { forms } from './_forms';
|
|
15
14
|
const component_colors = {
|
|
@@ -27,34 +26,41 @@ const component_colors = {
|
|
|
27
26
|
codeBackground: computed(([backgroundBaseHighlighted]) => backgroundBaseHighlighted, ['colors.backgroundBaseHighlighted']),
|
|
28
27
|
codeBackgroundSelected: 'inherit',
|
|
29
28
|
codeColor: computed(([textParagraph]) => textParagraph, ['colors.textParagraph']),
|
|
30
|
-
codeInlineColor:
|
|
29
|
+
codeInlineColor: SEMANTIC_COLORS.assistance100,
|
|
31
30
|
codeCommentColor: computed(([textSubdued]) => textSubdued, ['colors.textSubdued']),
|
|
32
31
|
codeSelectorColor: 'inherit',
|
|
33
|
-
codeStringColor:
|
|
34
|
-
codeTagColor:
|
|
35
|
-
codeNameColor:
|
|
36
|
-
codeNumberColor:
|
|
37
|
-
codeInlineCodeKeywordColor:
|
|
38
|
-
codeKeywordColor:
|
|
32
|
+
codeStringColor: SEMANTIC_COLORS.accent100,
|
|
33
|
+
codeTagColor: SEMANTIC_COLORS.primary100,
|
|
34
|
+
codeNameColor: SEMANTIC_COLORS.primary100,
|
|
35
|
+
codeNumberColor: SEMANTIC_COLORS.accentSecondary100,
|
|
36
|
+
codeInlineCodeKeywordColor: SEMANTIC_COLORS.assistance100,
|
|
37
|
+
codeKeywordColor: SEMANTIC_COLORS.primary100,
|
|
39
38
|
codeFunctionTitleColor: 'inherit',
|
|
40
|
-
codeTypeColor:
|
|
39
|
+
codeTypeColor: SEMANTIC_COLORS.primary100,
|
|
41
40
|
codeAttributeColor: 'inherit',
|
|
42
|
-
codeSymbolColor:
|
|
41
|
+
codeSymbolColor: SEMANTIC_COLORS.danger100,
|
|
43
42
|
codeParamsColor: 'inherit',
|
|
44
43
|
codeMetaColor: computed(([textSubdued]) => textSubdued, ['colors.textSubdued']),
|
|
45
|
-
codeTitleColor:
|
|
46
|
-
codeSectionColor:
|
|
47
|
-
codeAdditionColor:
|
|
48
|
-
codeDeletionColor:
|
|
44
|
+
codeTitleColor: SEMANTIC_COLORS.warning100,
|
|
45
|
+
codeSectionColor: SEMANTIC_COLORS.danger100,
|
|
46
|
+
codeAdditionColor: SEMANTIC_COLORS.accentSecondary100,
|
|
47
|
+
codeDeletionColor: SEMANTIC_COLORS.danger100,
|
|
49
48
|
codeSelectorClassColor: 'inherit',
|
|
50
49
|
codeSelectorIdColor: 'inherit',
|
|
51
50
|
collapsibleNavGroupBackground: computed(([backgroundBaseSubdued]) => backgroundBaseSubdued, ['colors.backgroundBaseSubdued']),
|
|
52
51
|
collapsibleNavGroupBackgroundDark: dark_background_colors.backgroundBaseSubdued,
|
|
53
52
|
dataGridBorderColor: computed(([borderBaseSubdued]) => borderBaseSubdued, ['colors.borderBaseSubdued']),
|
|
54
53
|
dataGridVerticalLineBorderColor: computed(([borderBaseSubdued]) => borderBaseSubdued, ['colors.borderBaseSubdued']),
|
|
55
|
-
|
|
54
|
+
dataGridRowBackground: computed(([backgroundBasePlain]) => backgroundBasePlain, ['colors.backgroundBasePlain']),
|
|
56
55
|
dataGridRowBackgroundHover: computed(([backgroundBaseInteractiveHover]) => backgroundBaseInteractiveHover, ['colors.backgroundBaseInteractiveHover']),
|
|
57
56
|
dataGridRowBackgroundSelect: computed(([backgroundBaseInteractiveSelect]) => backgroundBaseInteractiveSelect, ['colors.backgroundBaseInteractiveSelect']),
|
|
57
|
+
dataGridRowBackgroundSelectHover: computed(([backgroundBaseInteractiveSelectHover]) => backgroundBaseInteractiveSelectHover, ['colors.backgroundBaseInteractiveSelectHover']),
|
|
58
|
+
dataGridRowStripesBackground: computed(([backgroundBasePlain]) => backgroundBasePlain, ['colors.backgroundBasePlain']),
|
|
59
|
+
dataGridRowStripesBackgroundHover: computed(([backgroundBasePlain]) => backgroundBasePlain, ['colors.backgroundBasePlain']),
|
|
60
|
+
dataGridRowStripesBackgroundStriped: computed(([backgroundBaseSubdued]) => backgroundBaseSubdued, ['colors.backgroundBaseSubdued']),
|
|
61
|
+
dataGridRowStripesBackgroundStripedHover: computed(([backgroundBaseSubdued]) => backgroundBaseSubdued, ['colors.backgroundBaseSubdued']),
|
|
62
|
+
dataGridRowStripesBackgroundSelect: computed(([backgroundBaseInteractiveSelect]) => backgroundBaseInteractiveSelect, ['colors.backgroundBaseInteractiveSelect']),
|
|
63
|
+
dataGridRowStripesBackgroundSelectHover: computed(([backgroundBaseInteractiveSelect]) => backgroundBaseInteractiveSelect, ['colors.backgroundBaseInteractiveSelect']),
|
|
58
64
|
dragDropDraggingBackground: computed(([backgroundBaseSuccess]) => backgroundBaseSuccess, ['colors.backgroundBaseSuccess']),
|
|
59
65
|
dragDropDraggingOverBackground: computed(([backgroundLightSuccess]) => backgroundLightSuccess, ['colors.backgroundLightSuccess']),
|
|
60
66
|
filterButtonBadgeBackgroundHover: SEMANTIC_COLORS.shade25,
|
|
@@ -99,9 +105,9 @@ const component_colors = {
|
|
|
99
105
|
switchIconDisabled: forms.LIGHT.iconDisabled,
|
|
100
106
|
tableRowBackgroundHover: computed(([backgroundBaseInteractiveHover]) => backgroundBaseInteractiveHover, ['colors.backgroundBaseInteractiveHover']),
|
|
101
107
|
tableRowBackgroundSelected: computed(([backgroundBaseInteractiveSelect]) => backgroundBaseInteractiveSelect, ['colors.backgroundBaseInteractiveSelect']),
|
|
102
|
-
tableRowBackgroundSelectedHover: computed(([
|
|
108
|
+
tableRowBackgroundSelectedHover: computed(([backgroundBaseInteractiveSelectHover]) => backgroundBaseInteractiveSelectHover, ['colors.backgroundBaseInteractiveSelectHover']),
|
|
103
109
|
tableRowInteractiveBackgroundHover: computed(([backgroundBaseInteractiveSelect]) => backgroundBaseInteractiveSelect, ['colors.backgroundBaseInteractiveSelect']),
|
|
104
|
-
tableRowInteractiveBackgroundFocus: computed(([
|
|
110
|
+
tableRowInteractiveBackgroundFocus: computed(([backgroundBaseInteractiveHover]) => backgroundBaseInteractiveHover, ['colors.backgroundBaseInteractiveHover']),
|
|
105
111
|
tableCellSortableIconColor: computed(([backgroundFilledText]) => backgroundFilledText, ['colors.backgroundFilledText']),
|
|
106
112
|
tooltipBackground: dark_background_colors.backgroundBaseSubdued,
|
|
107
113
|
tooltipBorder: dark_border_colors.borderBaseSubdued,
|
|
@@ -116,18 +122,19 @@ export const components = {
|
|
|
116
122
|
DARK: {
|
|
117
123
|
...component_colors,
|
|
118
124
|
buttonGroupFocusColor: SEMANTIC_COLORS.plainLight,
|
|
119
|
-
codeInlineColor:
|
|
120
|
-
codeStringColor:
|
|
121
|
-
codeTagColor:
|
|
122
|
-
codeNameColor:
|
|
123
|
-
codeNumberColor:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
codeInlineColor: SEMANTIC_COLORS.assistance60,
|
|
126
|
+
codeStringColor: SEMANTIC_COLORS.accent60,
|
|
127
|
+
codeTagColor: SEMANTIC_COLORS.primary60,
|
|
128
|
+
codeNameColor: SEMANTIC_COLORS.primary60,
|
|
129
|
+
codeNumberColor: SEMANTIC_COLORS.accentSecondary60,
|
|
130
|
+
codeInlineCodeKeywordColor: SEMANTIC_COLORS.assistance60,
|
|
131
|
+
codeKeywordColor: SEMANTIC_COLORS.assistance60,
|
|
132
|
+
codeTypeColor: SEMANTIC_COLORS.primary60,
|
|
133
|
+
codeSymbolColor: SEMANTIC_COLORS.danger60,
|
|
134
|
+
codeTitleColor: SEMANTIC_COLORS.warning60,
|
|
135
|
+
codeSectionColor: SEMANTIC_COLORS.danger60,
|
|
136
|
+
codeAdditionColor: SEMANTIC_COLORS.accentSecondary60,
|
|
137
|
+
codeDeletionColor: SEMANTIC_COLORS.danger60,
|
|
131
138
|
filterButtonBadgeBackgroundHover: SEMANTIC_COLORS.shade105,
|
|
132
139
|
loadingSpinnerBorder: dark_border_colors.borderBasePlain,
|
|
133
140
|
loadingChartMonoBackground0: SEMANTIC_COLORS.shade110,
|
|
@@ -74,6 +74,7 @@ export const dark_background_colors = {
|
|
|
74
74
|
backgroundBaseFormsControlDisabled: SEMANTIC_COLORS.shade120,
|
|
75
75
|
backgroundBaseInteractiveHover: SEMANTIC_COLORS.plainLightAlpha8,
|
|
76
76
|
backgroundBaseInteractiveSelect: SEMANTIC_COLORS.primary130,
|
|
77
|
+
backgroundBaseInteractiveSelectHover: SEMANTIC_COLORS.primary120,
|
|
77
78
|
backgroundBaseInteractiveOverlay: SEMANTIC_COLORS.shade120Alpha70,
|
|
78
79
|
backgroundBaseSkeletonEdge: SEMANTIC_COLORS.plainLightAlpha16,
|
|
79
80
|
backgroundBaseSkeletonMiddle: SEMANTIC_COLORS.plainLightAlpha8,
|
|
@@ -138,6 +139,7 @@ export const dark_border_colors = {
|
|
|
138
139
|
borderStrongWarning: SEMANTIC_COLORS.warning40,
|
|
139
140
|
borderStrongRisk: SEMANTIC_COLORS.risk50,
|
|
140
141
|
borderStrongDanger: SEMANTIC_COLORS.danger60,
|
|
142
|
+
borderStrongText: SEMANTIC_COLORS.shade60,
|
|
141
143
|
};
|
|
142
144
|
export const dark_special_colors = {
|
|
143
145
|
body: SEMANTIC_COLORS.plainDark,
|
|
@@ -74,6 +74,7 @@ export const background_colors = {
|
|
|
74
74
|
backgroundBaseFormsControlDisabled: SEMANTIC_COLORS.shade30,
|
|
75
75
|
backgroundBaseInteractiveHover: SEMANTIC_COLORS.primary100Alpha4,
|
|
76
76
|
backgroundBaseInteractiveSelect: SEMANTIC_COLORS.primary10,
|
|
77
|
+
backgroundBaseInteractiveSelectHover: SEMANTIC_COLORS.primary20,
|
|
77
78
|
backgroundBaseInteractiveOverlay: SEMANTIC_COLORS.shade100Alpha70,
|
|
78
79
|
backgroundBaseSkeletonEdge: SEMANTIC_COLORS.shade100Alpha16,
|
|
79
80
|
backgroundBaseSkeletonMiddle: SEMANTIC_COLORS.shade100Alpha4,
|
|
@@ -138,6 +139,7 @@ export const border_colors = {
|
|
|
138
139
|
borderStrongWarning: SEMANTIC_COLORS.warning100,
|
|
139
140
|
borderStrongRisk: SEMANTIC_COLORS.risk100,
|
|
140
141
|
borderStrongDanger: SEMANTIC_COLORS.danger100,
|
|
142
|
+
borderStrongText: SEMANTIC_COLORS.shade90,
|
|
141
143
|
};
|
|
142
144
|
export const special_colors = {
|
|
143
145
|
body: SEMANTIC_COLORS.shade10,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const colorVisDark: _EuiThemeVisColors;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { SEMANTIC_COLORS } from './_semantic_colors';
|
|
9
|
+
import { colorVisLight } from './_colors_vis_light';
|
|
10
|
+
export const colorVisDark = {
|
|
11
|
+
...colorVisLight,
|
|
12
|
+
euiColorVisText0: SEMANTIC_COLORS.accentSecondary60,
|
|
13
|
+
euiColorVisText1: SEMANTIC_COLORS.accentSecondary30,
|
|
14
|
+
euiColorVisText2: SEMANTIC_COLORS.primary60,
|
|
15
|
+
euiColorVisText3: SEMANTIC_COLORS.primary30,
|
|
16
|
+
euiColorVisText4: SEMANTIC_COLORS.accent60,
|
|
17
|
+
euiColorVisText5: SEMANTIC_COLORS.accent30,
|
|
18
|
+
euiColorVisText6: SEMANTIC_COLORS.danger60,
|
|
19
|
+
euiColorVisText7: SEMANTIC_COLORS.danger30,
|
|
20
|
+
euiColorVisText8: SEMANTIC_COLORS.warning60,
|
|
21
|
+
euiColorVisText9: SEMANTIC_COLORS.warning30,
|
|
22
|
+
};
|
|
@@ -42,7 +42,7 @@ const euiPaletteColorBlind = {
|
|
|
42
42
|
graphic: SEMANTIC_COLORS.warning30,
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
|
-
export const
|
|
45
|
+
export const colorVisLight = {
|
|
46
46
|
euiColorVis0: euiPaletteColorBlind.euiColorVis0.graphic,
|
|
47
47
|
euiColorVis1: euiPaletteColorBlind.euiColorVis1.graphic,
|
|
48
48
|
euiColorVis2: euiPaletteColorBlind.euiColorVis2.graphic,
|
|
@@ -63,20 +63,16 @@ export const colorVis = {
|
|
|
63
63
|
euiColorVisBehindText7: euiPaletteColorBlind.euiColorVis7.graphic,
|
|
64
64
|
euiColorVisBehindText8: euiPaletteColorBlind.euiColorVis8.graphic,
|
|
65
65
|
euiColorVisBehindText9: euiPaletteColorBlind.euiColorVis9.graphic,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
euiColorVisAsTextDark3: SEMANTIC_COLORS.danger60,
|
|
77
|
-
euiColorVisAsTextDark4: SEMANTIC_COLORS.warning60,
|
|
78
|
-
euiColorVisAsTextDark5: SEMANTIC_COLORS.success60,
|
|
79
|
-
euiColorVisAsTextDark6: SEMANTIC_COLORS.assistance60,
|
|
66
|
+
euiColorVisText0: SEMANTIC_COLORS.accentSecondary110,
|
|
67
|
+
euiColorVisText1: SEMANTIC_COLORS.accentSecondary100,
|
|
68
|
+
euiColorVisText2: SEMANTIC_COLORS.primary110,
|
|
69
|
+
euiColorVisText3: SEMANTIC_COLORS.primary90,
|
|
70
|
+
euiColorVisText4: SEMANTIC_COLORS.accent100,
|
|
71
|
+
euiColorVisText5: SEMANTIC_COLORS.accent80,
|
|
72
|
+
euiColorVisText6: SEMANTIC_COLORS.danger100,
|
|
73
|
+
euiColorVisText7: SEMANTIC_COLORS.danger80,
|
|
74
|
+
euiColorVisText8: SEMANTIC_COLORS.warning110,
|
|
75
|
+
euiColorVisText9: SEMANTIC_COLORS.warning90,
|
|
80
76
|
euiColorVisNeutral0: SEMANTIC_COLORS.neutral60,
|
|
81
77
|
euiColorVisNeutral1: SEMANTIC_COLORS.neutral30,
|
|
82
78
|
euiColorVisSuccess0: SEMANTIC_COLORS.success60,
|
|
@@ -8,15 +8,21 @@
|
|
|
8
8
|
import { SEMANTIC_COLORS } from './_semantic_colors';
|
|
9
9
|
import { light_colors } from './_colors_light';
|
|
10
10
|
import { dark_colors } from './_colors_dark';
|
|
11
|
-
import {
|
|
11
|
+
import { colorVisLight } from './_colors_vis_light';
|
|
12
|
+
import { colorVisDark } from './_colors_vis_dark';
|
|
12
13
|
import { severityColors } from './_colors_severity';
|
|
13
14
|
export const colors = {
|
|
14
15
|
ghost: SEMANTIC_COLORS.plainLight,
|
|
15
16
|
ink: SEMANTIC_COLORS.plainDark,
|
|
16
17
|
plainLight: SEMANTIC_COLORS.plainLight,
|
|
17
18
|
plainDark: SEMANTIC_COLORS.plainDark,
|
|
18
|
-
LIGHT: light_colors,
|
|
19
|
-
DARK: dark_colors,
|
|
20
|
-
vis: colorVis,
|
|
21
19
|
severity: severityColors,
|
|
20
|
+
LIGHT: {
|
|
21
|
+
...light_colors,
|
|
22
|
+
vis: colorVisLight,
|
|
23
|
+
},
|
|
24
|
+
DARK: {
|
|
25
|
+
...dark_colors,
|
|
26
|
+
vis: colorVisDark,
|
|
27
|
+
},
|
|
22
28
|
};
|
|
@@ -282,20 +282,16 @@
|
|
|
282
282
|
"euiColorVis7_behindText": "#FFC9C2",
|
|
283
283
|
"euiColorVis8_behindText": "#EAAE01",
|
|
284
284
|
"euiColorVis9_behindText": "#FCD883",
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"euiColorVisAsTextDark3": "#F6726A",
|
|
296
|
-
"euiColorVisAsTextDark4": "#EAAE01",
|
|
297
|
-
"euiColorVisAsTextDark5": "#24C292",
|
|
298
|
-
"euiColorVisAsTextDark6": "#B084F5",
|
|
285
|
+
"euiColorVisText0": "#16C5C0",
|
|
286
|
+
"euiColorVisText1": "#A6EDEA",
|
|
287
|
+
"euiColorVisText2": "#61A2FF",
|
|
288
|
+
"euiColorVisText3": "#BFDBFF",
|
|
289
|
+
"euiColorVisText4": "#EE72A6",
|
|
290
|
+
"euiColorVisText5": "#FFC7DB",
|
|
291
|
+
"euiColorVisText6": "#F6726A",
|
|
292
|
+
"euiColorVisText7": "#FFC9C2",
|
|
293
|
+
"euiColorVisText8": "#EAAE01",
|
|
294
|
+
"euiColorVisText9": "#FCD883",
|
|
299
295
|
"euiColorVisSuccess0": "#24C292",
|
|
300
296
|
"euiColorVisSuccess1": "#AEE8D2",
|
|
301
297
|
"euiColorVisWarning0": "#FCD883",
|
|
@@ -381,6 +377,7 @@
|
|
|
381
377
|
"euiColorBackgroundBaseFormsControlDisabled": "#2B394F",
|
|
382
378
|
"euiColorBackgroundBaseInteractiveHover": "rgba(255,255,255, 0.08)",
|
|
383
379
|
"euiColorBackgroundBaseInteractiveSelect": "#0D2F5E",
|
|
380
|
+
"euiColorBackgroundBaseInteractiveSelectHover": "#123778",
|
|
384
381
|
"euiColorBackgroundBaseInteractiveOverlay": "rgba(43,57,79, 0.7)",
|
|
385
382
|
"euiColorBackgroundBaseSkeletonEdge": "rgba(255,255,255, 0.16)",
|
|
386
383
|
"euiColorBackgroundBaseSkeletonMiddle": "rgba(255,255,255, 0.08)",
|
|
@@ -423,5 +420,6 @@
|
|
|
423
420
|
"euiColorBorderStrongSuccess": "#24C292",
|
|
424
421
|
"euiColorBorderStrongWarning": "#FACB3D",
|
|
425
422
|
"euiColorBorderStrongRisk": "#FC8544",
|
|
426
|
-
"euiColorBorderStrongDanger": "#F6726A"
|
|
423
|
+
"euiColorBorderStrongDanger": "#F6726A",
|
|
424
|
+
"euiColorBorderStrongText": "#8E9FBC"
|
|
427
425
|
}
|
|
@@ -283,20 +283,16 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_dark.json' {
|
|
|
283
283
|
euiColorVis7_behindText: string;
|
|
284
284
|
euiColorVis8_behindText: string;
|
|
285
285
|
euiColorVis9_behindText: string;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
euiColorVisAsTextDark3: string;
|
|
297
|
-
euiColorVisAsTextDark4: string;
|
|
298
|
-
euiColorVisAsTextDark5: string;
|
|
299
|
-
euiColorVisAsTextDark6: string;
|
|
286
|
+
euiColorVisText0: string;
|
|
287
|
+
euiColorVisText1: string;
|
|
288
|
+
euiColorVisText2: string;
|
|
289
|
+
euiColorVisText3: string;
|
|
290
|
+
euiColorVisText4: string;
|
|
291
|
+
euiColorVisText5: string;
|
|
292
|
+
euiColorVisText6: string;
|
|
293
|
+
euiColorVisText7: string;
|
|
294
|
+
euiColorVisText8: string;
|
|
295
|
+
euiColorVisText9: string;
|
|
300
296
|
euiColorVisSuccess0: string;
|
|
301
297
|
euiColorVisSuccess1: string;
|
|
302
298
|
euiColorVisWarning0: string;
|
|
@@ -382,6 +378,7 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_dark.json' {
|
|
|
382
378
|
euiColorBackgroundBaseFormsControlDisabled: string;
|
|
383
379
|
euiColorBackgroundBaseInteractiveHover: string;
|
|
384
380
|
euiColorBackgroundBaseInteractiveSelect: string;
|
|
381
|
+
euiColorBackgroundBaseInteractiveSelectHover: string;
|
|
385
382
|
euiColorBackgroundBaseInteractiveOverlay: string;
|
|
386
383
|
euiColorBackgroundBaseSkeletonEdge: string;
|
|
387
384
|
euiColorBackgroundBaseSkeletonMiddle: string;
|
|
@@ -425,6 +422,7 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_dark.json' {
|
|
|
425
422
|
euiColorBorderStrongWarning: string;
|
|
426
423
|
euiColorBorderStrongRisk: string;
|
|
427
424
|
euiColorBorderStrongDanger: string;
|
|
425
|
+
euiColorBorderStrongText: string;
|
|
428
426
|
};
|
|
429
427
|
export default sassVariables;
|
|
430
428
|
}
|
|
@@ -282,20 +282,16 @@
|
|
|
282
282
|
"euiColorVis7_behindText": "#FFC9C2",
|
|
283
283
|
"euiColorVis8_behindText": "#EAAE01",
|
|
284
284
|
"euiColorVis9_behindText": "#FCD883",
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"euiColorVisAsTextDark3": "#F6726A",
|
|
296
|
-
"euiColorVisAsTextDark4": "#EAAE01",
|
|
297
|
-
"euiColorVisAsTextDark5": "#24C292",
|
|
298
|
-
"euiColorVisAsTextDark6": "#B084F5",
|
|
285
|
+
"euiColorVisText0": "#065B58",
|
|
286
|
+
"euiColorVisText1": "#047471",
|
|
287
|
+
"euiColorVisText2": "#154399",
|
|
288
|
+
"euiColorVisText3": "#0B64DD",
|
|
289
|
+
"euiColorVisText4": "#A11262",
|
|
290
|
+
"euiColorVisText5": "#D13680",
|
|
291
|
+
"euiColorVisText6": "#A71627",
|
|
292
|
+
"euiColorVisText7": "#DA3737",
|
|
293
|
+
"euiColorVisText8": "#6A4906",
|
|
294
|
+
"euiColorVisText9": "#966B03",
|
|
299
295
|
"euiColorVisSuccess0": "#24C292",
|
|
300
296
|
"euiColorVisSuccess1": "#AEE8D2",
|
|
301
297
|
"euiColorVisWarning0": "#FCD883",
|
|
@@ -381,6 +377,7 @@
|
|
|
381
377
|
"euiColorBackgroundBaseFormsControlDisabled": "#CAD3E2",
|
|
382
378
|
"euiColorBackgroundBaseInteractiveHover": "rgba(23,80,186, 0.04)",
|
|
383
379
|
"euiColorBackgroundBaseInteractiveSelect": "#E8F1FF",
|
|
380
|
+
"euiColorBackgroundBaseInteractiveSelectHover": "#D9E8FF",
|
|
384
381
|
"euiColorBackgroundBaseInteractiveOverlay": "rgba(72,89,117, 0.7)",
|
|
385
382
|
"euiColorBackgroundBaseSkeletonEdge": "rgba(72,89,117, 0.16)",
|
|
386
383
|
"euiColorBackgroundBaseSkeletonMiddle": "rgba(72,89,117, 0.04)",
|
|
@@ -423,5 +420,6 @@
|
|
|
423
420
|
"euiColorBorderStrongSuccess": "#09724D",
|
|
424
421
|
"euiColorBorderStrongWarning": "#825803",
|
|
425
422
|
"euiColorBorderStrongRisk": "#9E3A16",
|
|
426
|
-
"euiColorBorderStrongDanger": "#A71627"
|
|
423
|
+
"euiColorBorderStrongDanger": "#A71627",
|
|
424
|
+
"euiColorBorderStrongText": "#5A6D8C"
|
|
427
425
|
}
|
|
@@ -283,20 +283,16 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_light.json' {
|
|
|
283
283
|
euiColorVis7_behindText: string;
|
|
284
284
|
euiColorVis8_behindText: string;
|
|
285
285
|
euiColorVis9_behindText: string;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
euiColorVisAsTextDark3: string;
|
|
297
|
-
euiColorVisAsTextDark4: string;
|
|
298
|
-
euiColorVisAsTextDark5: string;
|
|
299
|
-
euiColorVisAsTextDark6: string;
|
|
286
|
+
euiColorVisText0: string;
|
|
287
|
+
euiColorVisText1: string;
|
|
288
|
+
euiColorVisText2: string;
|
|
289
|
+
euiColorVisText3: string;
|
|
290
|
+
euiColorVisText4: string;
|
|
291
|
+
euiColorVisText5: string;
|
|
292
|
+
euiColorVisText6: string;
|
|
293
|
+
euiColorVisText7: string;
|
|
294
|
+
euiColorVisText8: string;
|
|
295
|
+
euiColorVisText9: string;
|
|
300
296
|
euiColorVisSuccess0: string;
|
|
301
297
|
euiColorVisSuccess1: string;
|
|
302
298
|
euiColorVisWarning0: string;
|
|
@@ -382,6 +378,7 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_light.json' {
|
|
|
382
378
|
euiColorBackgroundBaseFormsControlDisabled: string;
|
|
383
379
|
euiColorBackgroundBaseInteractiveHover: string;
|
|
384
380
|
euiColorBackgroundBaseInteractiveSelect: string;
|
|
381
|
+
euiColorBackgroundBaseInteractiveSelectHover: string;
|
|
385
382
|
euiColorBackgroundBaseInteractiveOverlay: string;
|
|
386
383
|
euiColorBackgroundBaseSkeletonEdge: string;
|
|
387
384
|
euiColorBackgroundBaseSkeletonMiddle: string;
|
|
@@ -425,6 +422,7 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_light.json' {
|
|
|
425
422
|
euiColorBorderStrongWarning: string;
|
|
426
423
|
euiColorBorderStrongRisk: string;
|
|
427
424
|
euiColorBorderStrongDanger: string;
|
|
425
|
+
euiColorBorderStrongText: string;
|
|
428
426
|
};
|
|
429
427
|
export default sassVariables;
|
|
430
428
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui-theme-borealis",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "A visual theme for EUI",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"scripts": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@babel/preset-env": "^7.21.5",
|
|
34
34
|
"@babel/preset-react": "^7.18.6",
|
|
35
35
|
"@babel/preset-typescript": "^7.21.5",
|
|
36
|
-
"@elastic/eui-theme-common": "
|
|
36
|
+
"@elastic/eui-theme-common": "2.0.0",
|
|
37
37
|
"@types/chroma-js": "^2.4.0",
|
|
38
38
|
"@types/jest": "^29.5.12",
|
|
39
39
|
"@types/prettier": "2.7.3",
|
package/src/theme_dark.scss
CHANGED
package/src/theme_light.scss
CHANGED
|
@@ -47,6 +47,7 @@ $euiColorBackgroundBaseFormsControlDisabled: $euiColorShade120 !default;
|
|
|
47
47
|
|
|
48
48
|
$euiColorBackgroundBaseInteractiveHover: $euiColorPlainLightAlpha8 !default;
|
|
49
49
|
$euiColorBackgroundBaseInteractiveSelect: $euiColorPrimary130 !default;
|
|
50
|
+
$euiColorBackgroundBaseInteractiveSelectHover: $euiColorPrimary120 !default;
|
|
50
51
|
$euiColorBackgroundBaseInteractiveOverlay: $euiColorShade120Alpha70 !default;
|
|
51
52
|
$euiColorBackgroundBaseSkeletonEdge: $euiColorPlainLightAlpha16 !default;
|
|
52
53
|
$euiColorBackgroundBaseSkeletonMiddle: $euiColorPlainLightAlpha8 !default;
|
|
@@ -128,6 +129,7 @@ $euiColorBorderStrongSuccess: $euiColorSuccess60 !default;
|
|
|
128
129
|
$euiColorBorderStrongWarning: $euiColorWarning40 !default;
|
|
129
130
|
$euiColorBorderStrongRisk: $euiColorRisk50 !default;
|
|
130
131
|
$euiColorBorderStrongDanger: $euiColorDanger60 !default;
|
|
132
|
+
$euiColorBorderStrongText: $euiColorShade60 !default;
|
|
131
133
|
|
|
132
134
|
// Charts
|
|
133
135
|
$euiColorChartLines: $euiColorShade85 !default;
|
|
@@ -48,6 +48,7 @@ $euiColorBackgroundBaseFormsControlDisabled: $euiColorShade30 !default;
|
|
|
48
48
|
|
|
49
49
|
$euiColorBackgroundBaseInteractiveHover: $euiColorPrimary100Alpha4 !default;
|
|
50
50
|
$euiColorBackgroundBaseInteractiveSelect: $euiColorPrimary10 !default;
|
|
51
|
+
$euiColorBackgroundBaseInteractiveSelectHover: $euiColorPrimary20 !default;
|
|
51
52
|
$euiColorBackgroundBaseInteractiveOverlay: $euiColorShade100Alpha70 !default;
|
|
52
53
|
$euiColorBackgroundBaseSkeletonEdge: $euiColorShade100Alpha16 !default;
|
|
53
54
|
$euiColorBackgroundBaseSkeletonMiddle: $euiColorShade100Alpha4 !default;
|
|
@@ -130,6 +131,7 @@ $euiColorBorderStrongSuccess: $euiColorSuccess100 !default;
|
|
|
130
131
|
$euiColorBorderStrongWarning: $euiColorWarning100 !default;
|
|
131
132
|
$euiColorBorderStrongRisk: $euiColorRisk100 !default;
|
|
132
133
|
$euiColorBorderStrongDanger: $euiColorDanger100 !default;
|
|
134
|
+
$euiColorBorderStrongText: $euiColorShade90 !default;
|
|
133
135
|
|
|
134
136
|
// Charts
|
|
135
137
|
$euiColorChartLines: $euiColorShade30 !default;
|