@elastic/eui-theme-borealis 4.0.0 → 5.1.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/variables/_components.js +3 -1
- package/lib/cjs/variables/_forms.js +3 -3
- package/lib/cjs/variables/colors/_colors_dark.js +2 -1
- package/lib/cjs/variables/colors/_colors_light.js +2 -1
- package/lib/esm/variables/_components.js +2 -0
- package/lib/esm/variables/_forms.js +1 -1
- package/lib/esm/variables/colors/_colors_dark.js +2 -1
- package/lib/esm/variables/colors/_colors_light.js +2 -1
- package/lib/eui_theme_borealis_dark.json +2 -1
- package/lib/eui_theme_borealis_dark.json.d.ts +2 -1
- package/lib/eui_theme_borealis_light.json +2 -1
- package/lib/eui_theme_borealis_light.json.d.ts +2 -1
- package/package.json +9 -7
- package/src/mixins/_shadow.scss +27 -26
- package/src/theme_dark.scss +1 -3
- package/src/theme_light.scss +1 -2
- package/src/variables/_index.scss +2 -2
- package/src/variables/_shadows_dark.scss +14 -14
- package/src/variables/_shadows_light.scss +14 -14
- package/src/variables/colors/_colors_dark.scss +2 -1
- package/src/variables/colors/_colors_light.scss +2 -2
- package/src/variables/colors/_semantic_colors.scss +1 -4
|
@@ -373,6 +373,7 @@ var component_colors = {
|
|
|
373
373
|
backgroundFilledText = _ref120[0];
|
|
374
374
|
return backgroundFilledText;
|
|
375
375
|
}, ['colors.backgroundFilledText']),
|
|
376
|
+
tableFooterBackground: _semantic_colors.SEMANTIC_COLORS.shade15,
|
|
376
377
|
tooltipBackground: _colors_dark.dark_background_colors.backgroundBaseSubdued,
|
|
377
378
|
tooltipBorder: _colors_dark.dark_border_colors.borderBaseSubdued,
|
|
378
379
|
tooltipBorderFloating: (0, _euiThemeCommon.computed)(function (_ref121) {
|
|
@@ -437,6 +438,7 @@ var components = exports.components = {
|
|
|
437
438
|
return backgroundBaseInteractiveHover;
|
|
438
439
|
}, ['colors.backgroundBaseInteractiveHover']),
|
|
439
440
|
tableRowBackgroundMarked: _semantic_colors.SEMANTIC_COLORS.warning140,
|
|
440
|
-
tableRowBackgroundMarkedHover: _semantic_colors.SEMANTIC_COLORS.warning130
|
|
441
|
+
tableRowBackgroundMarkedHover: _semantic_colors.SEMANTIC_COLORS.warning130,
|
|
442
|
+
tableFooterBackground: _semantic_colors.SEMANTIC_COLORS.shade135
|
|
441
443
|
})
|
|
442
444
|
};
|
|
@@ -99,9 +99,9 @@ var _forms = {
|
|
|
99
99
|
clearButtonBackground: _semantic_colors.SEMANTIC_COLORS.shade60,
|
|
100
100
|
controlBorder: (0, _euiThemeCommon.computed)(function (_ref29) {
|
|
101
101
|
var _ref30 = _slicedToArray(_ref29, 1),
|
|
102
|
-
|
|
103
|
-
return
|
|
104
|
-
}, ['colors.
|
|
102
|
+
borderBaseProminent = _ref30[0];
|
|
103
|
+
return borderBaseProminent;
|
|
104
|
+
}, ['colors.borderBaseProminent']),
|
|
105
105
|
controlBorderSelected: (0, _euiThemeCommon.computed)(function (_ref31) {
|
|
106
106
|
var _ref32 = _slicedToArray(_ref31, 1),
|
|
107
107
|
borderStrongPrimary = _ref32[0];
|
|
@@ -140,11 +140,12 @@ var dark_border_colors = exports.dark_border_colors = {
|
|
|
140
140
|
borderBaseDanger: _semantic_colors.SEMANTIC_COLORS.danger120,
|
|
141
141
|
borderBasePlain: _semantic_colors.SEMANTIC_COLORS.shade100,
|
|
142
142
|
borderBaseSubdued: _semantic_colors.SEMANTIC_COLORS.shade120,
|
|
143
|
+
borderBaseProminent: _semantic_colors.SEMANTIC_COLORS.shade80,
|
|
143
144
|
borderBaseDisabled: _semantic_colors.SEMANTIC_COLORS.shade100,
|
|
144
145
|
borderBaseFloating: _semantic_colors.SEMANTIC_COLORS.shade120,
|
|
145
146
|
borderBaseFormsColorSwatch: _semantic_colors.SEMANTIC_COLORS.plainLightAlpha32,
|
|
146
|
-
borderBaseFormsControl: _semantic_colors.SEMANTIC_COLORS.shade80,
|
|
147
147
|
borderInteractiveFormsHoverPlain: _semantic_colors.SEMANTIC_COLORS.shade90,
|
|
148
|
+
borderInteractiveFormsHoverProminent: _semantic_colors.SEMANTIC_COLORS.shade60,
|
|
148
149
|
borderInteractiveFormsHoverDanger: _semantic_colors.SEMANTIC_COLORS.danger70,
|
|
149
150
|
borderStrongPrimary: _semantic_colors.SEMANTIC_COLORS.primary60,
|
|
150
151
|
borderStrongAccent: _semantic_colors.SEMANTIC_COLORS.accent60,
|
|
@@ -140,11 +140,12 @@ var border_colors = exports.border_colors = {
|
|
|
140
140
|
borderBaseDanger: _semantic_colors.SEMANTIC_COLORS.danger30,
|
|
141
141
|
borderBasePlain: _semantic_colors.SEMANTIC_COLORS.shade30,
|
|
142
142
|
borderBaseSubdued: _semantic_colors.SEMANTIC_COLORS.shade20,
|
|
143
|
+
borderBaseProminent: _semantic_colors.SEMANTIC_COLORS.shade50,
|
|
143
144
|
borderBaseDisabled: _semantic_colors.SEMANTIC_COLORS.shade30,
|
|
144
145
|
borderBaseFloating: _primitive_colors.PRIMITIVE_COLORS.transparent,
|
|
145
146
|
borderBaseFormsColorSwatch: _semantic_colors.SEMANTIC_COLORS.shade100Alpha24,
|
|
146
|
-
borderBaseFormsControl: _semantic_colors.SEMANTIC_COLORS.shade60,
|
|
147
147
|
borderInteractiveFormsHoverPlain: _semantic_colors.SEMANTIC_COLORS.shade40,
|
|
148
|
+
borderInteractiveFormsHoverProminent: _semantic_colors.SEMANTIC_COLORS.shade70,
|
|
148
149
|
borderInteractiveFormsHoverDanger: _semantic_colors.SEMANTIC_COLORS.danger80,
|
|
149
150
|
borderStrongPrimary: _semantic_colors.SEMANTIC_COLORS.primary90,
|
|
150
151
|
borderStrongAccent: _semantic_colors.SEMANTIC_COLORS.accent90,
|
|
@@ -116,6 +116,7 @@ const component_colors = {
|
|
|
116
116
|
tableRowBackgroundMarked: SEMANTIC_COLORS.warning10,
|
|
117
117
|
tableRowBackgroundMarkedHover: SEMANTIC_COLORS.warning20,
|
|
118
118
|
tableCellSortableIconColor: computed(([backgroundFilledText]) => backgroundFilledText, ['colors.backgroundFilledText']),
|
|
119
|
+
tableFooterBackground: SEMANTIC_COLORS.shade15,
|
|
119
120
|
tooltipBackground: dark_background_colors.backgroundBaseSubdued,
|
|
120
121
|
tooltipBorder: dark_border_colors.borderBaseSubdued,
|
|
121
122
|
tooltipBorderFloating: computed(([borderBaseFloating]) => borderBaseFloating, ['colors.borderBaseFloating']),
|
|
@@ -162,5 +163,6 @@ export const components = {
|
|
|
162
163
|
tableRowInteractiveBackgroundFocus: computed(([backgroundBaseInteractiveHover]) => backgroundBaseInteractiveHover, ['colors.backgroundBaseInteractiveHover']),
|
|
163
164
|
tableRowBackgroundMarked: SEMANTIC_COLORS.warning140,
|
|
164
165
|
tableRowBackgroundMarkedHover: SEMANTIC_COLORS.warning130,
|
|
166
|
+
tableFooterBackground: SEMANTIC_COLORS.shade135,
|
|
165
167
|
},
|
|
166
168
|
};
|
|
@@ -24,7 +24,7 @@ const _forms = {
|
|
|
24
24
|
borderAutofilled: computed(([borderBasePrimary]) => borderBasePrimary, ['colors.borderBasePrimary']),
|
|
25
25
|
borderAutofilledHovered: computed(([borderStrongPrimary]) => borderStrongPrimary, ['colors.borderStrongPrimary']),
|
|
26
26
|
clearButtonBackground: SEMANTIC_COLORS.shade60,
|
|
27
|
-
controlBorder: computed(([
|
|
27
|
+
controlBorder: computed(([borderBaseProminent]) => borderBaseProminent, ['colors.borderBaseProminent']),
|
|
28
28
|
controlBorderSelected: computed(([borderStrongPrimary]) => borderStrongPrimary, ['colors.borderStrongPrimary']),
|
|
29
29
|
controlBorderDisabled: computed(([borderBaseDisabled]) => borderBaseDisabled, ['colors.borderBaseDisabled']),
|
|
30
30
|
controlBackgroundUnselected: 'transparent',
|
|
@@ -127,11 +127,12 @@ export const dark_border_colors = {
|
|
|
127
127
|
borderBaseDanger: SEMANTIC_COLORS.danger120,
|
|
128
128
|
borderBasePlain: SEMANTIC_COLORS.shade100,
|
|
129
129
|
borderBaseSubdued: SEMANTIC_COLORS.shade120,
|
|
130
|
+
borderBaseProminent: SEMANTIC_COLORS.shade80,
|
|
130
131
|
borderBaseDisabled: SEMANTIC_COLORS.shade100,
|
|
131
132
|
borderBaseFloating: SEMANTIC_COLORS.shade120,
|
|
132
133
|
borderBaseFormsColorSwatch: SEMANTIC_COLORS.plainLightAlpha32,
|
|
133
|
-
borderBaseFormsControl: SEMANTIC_COLORS.shade80,
|
|
134
134
|
borderInteractiveFormsHoverPlain: SEMANTIC_COLORS.shade90,
|
|
135
|
+
borderInteractiveFormsHoverProminent: SEMANTIC_COLORS.shade60,
|
|
135
136
|
borderInteractiveFormsHoverDanger: SEMANTIC_COLORS.danger70,
|
|
136
137
|
borderStrongPrimary: SEMANTIC_COLORS.primary60,
|
|
137
138
|
borderStrongAccent: SEMANTIC_COLORS.accent60,
|
|
@@ -127,11 +127,12 @@ export const border_colors = {
|
|
|
127
127
|
borderBaseDanger: SEMANTIC_COLORS.danger30,
|
|
128
128
|
borderBasePlain: SEMANTIC_COLORS.shade30,
|
|
129
129
|
borderBaseSubdued: SEMANTIC_COLORS.shade20,
|
|
130
|
+
borderBaseProminent: SEMANTIC_COLORS.shade50,
|
|
130
131
|
borderBaseDisabled: SEMANTIC_COLORS.shade30,
|
|
131
132
|
borderBaseFloating: PRIMITIVE_COLORS.transparent,
|
|
132
133
|
borderBaseFormsColorSwatch: SEMANTIC_COLORS.shade100Alpha24,
|
|
133
|
-
borderBaseFormsControl: SEMANTIC_COLORS.shade60,
|
|
134
134
|
borderInteractiveFormsHoverPlain: SEMANTIC_COLORS.shade40,
|
|
135
|
+
borderInteractiveFormsHoverProminent: SEMANTIC_COLORS.shade70,
|
|
135
136
|
borderInteractiveFormsHoverDanger: SEMANTIC_COLORS.danger80,
|
|
136
137
|
borderStrongPrimary: SEMANTIC_COLORS.primary90,
|
|
137
138
|
borderStrongAccent: SEMANTIC_COLORS.accent90,
|
|
@@ -445,11 +445,12 @@
|
|
|
445
445
|
"euiColorBorderBaseDanger": "#5E2129",
|
|
446
446
|
"euiColorBorderBasePlain": "#485975",
|
|
447
447
|
"euiColorBorderBaseSubdued": "#2B394F",
|
|
448
|
+
"euiColorBorderBaseProminent": "#6A7FA0",
|
|
448
449
|
"euiColorBorderBaseDisabled": "#485975",
|
|
449
450
|
"euiColorBorderBaseFloating": "#2B394F",
|
|
450
451
|
"euiColorBorderBaseFormsColorSwatch": "rgba(255,255,255, 0.32)",
|
|
451
|
-
"euiColorBorderBaseFormsControl": "#6A7FA0",
|
|
452
452
|
"euiColorBorderInteractiveFormsHoverPlain": "#5A6D8C",
|
|
453
|
+
"euiColorBorderInteractiveFormsHoverProminent": "#8E9FBC",
|
|
453
454
|
"euiColorBorderInteractiveFormsHoverDanger": "#EE4C48",
|
|
454
455
|
"euiColorBorderStrongPrimary": "#61A2FF",
|
|
455
456
|
"euiColorBorderStrongAccent": "#EE72A6",
|
|
@@ -446,11 +446,12 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_dark.json' {
|
|
|
446
446
|
euiColorBorderBaseDanger: string;
|
|
447
447
|
euiColorBorderBasePlain: string;
|
|
448
448
|
euiColorBorderBaseSubdued: string;
|
|
449
|
+
euiColorBorderBaseProminent: string;
|
|
449
450
|
euiColorBorderBaseDisabled: string;
|
|
450
451
|
euiColorBorderBaseFloating: string;
|
|
451
452
|
euiColorBorderBaseFormsColorSwatch: string;
|
|
452
|
-
euiColorBorderBaseFormsControl: string;
|
|
453
453
|
euiColorBorderInteractiveFormsHoverPlain: string;
|
|
454
|
+
euiColorBorderInteractiveFormsHoverProminent: string;
|
|
454
455
|
euiColorBorderInteractiveFormsHoverDanger: string;
|
|
455
456
|
euiColorBorderStrongPrimary: string;
|
|
456
457
|
euiColorBorderStrongAccent: string;
|
|
@@ -445,11 +445,12 @@
|
|
|
445
445
|
"euiColorBorderBaseDanger": "#FFC9C2",
|
|
446
446
|
"euiColorBorderBasePlain": "#CAD3E2",
|
|
447
447
|
"euiColorBorderBaseSubdued": "#E3E8F2",
|
|
448
|
+
"euiColorBorderBaseProminent": "#A2B1C9",
|
|
448
449
|
"euiColorBorderBaseDisabled": "#CAD3E2",
|
|
449
450
|
"euiColorBorderBaseFloating": "transparent",
|
|
450
451
|
"euiColorBorderBaseFormsColorSwatch": "rgba(72,89,117, 0.24)",
|
|
451
|
-
"euiColorBorderBaseFormsControl": "#8E9FBC",
|
|
452
452
|
"euiColorBorderInteractiveFormsHoverPlain": "#B4C1D5",
|
|
453
|
+
"euiColorBorderInteractiveFormsHoverProminent": "#798EAF",
|
|
453
454
|
"euiColorBorderInteractiveFormsHoverDanger": "#DA3737",
|
|
454
455
|
"euiColorBorderStrongPrimary": "#0B64DD",
|
|
455
456
|
"euiColorBorderStrongAccent": "#BC1E70",
|
|
@@ -446,11 +446,12 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_light.json' {
|
|
|
446
446
|
euiColorBorderBaseDanger: string;
|
|
447
447
|
euiColorBorderBasePlain: string;
|
|
448
448
|
euiColorBorderBaseSubdued: string;
|
|
449
|
+
euiColorBorderBaseProminent: string;
|
|
449
450
|
euiColorBorderBaseDisabled: string;
|
|
450
451
|
euiColorBorderBaseFloating: string;
|
|
451
452
|
euiColorBorderBaseFormsColorSwatch: string;
|
|
452
|
-
euiColorBorderBaseFormsControl: string;
|
|
453
453
|
euiColorBorderInteractiveFormsHoverPlain: string;
|
|
454
|
+
euiColorBorderInteractiveFormsHoverProminent: string;
|
|
454
455
|
euiColorBorderInteractiveFormsHoverDanger: string;
|
|
455
456
|
euiColorBorderStrongPrimary: string;
|
|
456
457
|
euiColorBorderStrongAccent: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui-theme-borealis",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "A visual theme for EUI",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"scripts": {
|
|
@@ -12,10 +12,12 @@
|
|
|
12
12
|
"build:types": "NODE_ENV=production tsc --project tsconfig.types.json",
|
|
13
13
|
"build-pack": "yarn build && npm pack",
|
|
14
14
|
"copy-files": "node ./scripts/copy-json-files.js",
|
|
15
|
-
"lint": "yarn
|
|
16
|
-
"lint-
|
|
15
|
+
"lint": "yarn run lint-ts && yarn run lint-es && yarn run lint-sass",
|
|
16
|
+
"lint-ts": "tsc --noEmit",
|
|
17
|
+
"lint-es": "eslint --cache \"src/**/*.ts\" --max-warnings 0",
|
|
17
18
|
"lint-sass": "yarn stylelint \"**/*.scss\" --quiet-deprecation-warnings",
|
|
18
|
-
"test": "
|
|
19
|
+
"test": "yarn test-unit",
|
|
20
|
+
"test-unit": "jest ./src --passWithNoTests",
|
|
19
21
|
"pre-push": "yarn build:workspaces && yarn lint && yarn test"
|
|
20
22
|
},
|
|
21
23
|
"repository": {
|
|
@@ -23,8 +25,8 @@
|
|
|
23
25
|
"url": "https://github.com/elastic/eui.git",
|
|
24
26
|
"directory": "packages/eui-theme-borealis"
|
|
25
27
|
},
|
|
26
|
-
"
|
|
27
|
-
"@elastic/eui-theme-common": "
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@elastic/eui-theme-common": "7.1.0",
|
|
28
30
|
"chroma-js": "^2.4.2"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
@@ -33,7 +35,7 @@
|
|
|
33
35
|
"@babel/preset-env": "^7.21.5",
|
|
34
36
|
"@babel/preset-react": "^7.18.6",
|
|
35
37
|
"@babel/preset-typescript": "^7.21.5",
|
|
36
|
-
"@elastic/eui-theme-common": "
|
|
38
|
+
"@elastic/eui-theme-common": "7.1.0",
|
|
37
39
|
"@types/chroma-js": "^2.4.0",
|
|
38
40
|
"@types/jest": "^29.5.12",
|
|
39
41
|
"@types/prettier": "2.7.3",
|
package/src/mixins/_shadow.scss
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
/* stylelint-disable-next-line scss/at-function-pattern */
|
|
9
10
|
@function _colorMode() {
|
|
10
11
|
@if (lightness($euiColorTextParagraph) < 50) {
|
|
11
12
|
@return 'light';
|
|
@@ -18,39 +19,39 @@
|
|
|
18
19
|
@mixin euiSlightShadow($color: $euiShadowColor) {
|
|
19
20
|
@if _colorMode() == 'light' {
|
|
20
21
|
box-shadow:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16),
|
|
23
|
+
0 1px 4px 0 hsl(from $euiShadowColor h s l / 0.06),
|
|
24
|
+
0 2px 8px 0 hsl(from $euiShadowColor h s l / 0.04);
|
|
24
25
|
} @else {
|
|
25
26
|
box-shadow:
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
0 1px 4px 0 hsl(from $euiShadowColor h s l / 0.4),
|
|
28
|
+
0 2px 8px 0 hsl(from $euiShadowColor h s l/ 0.24);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
@mixin euiBottomShadowSmall($color: $euiShadowColor) {
|
|
32
33
|
@if _colorMode == 'light' {
|
|
33
34
|
box-shadow:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16),
|
|
36
|
+
0 2px 7px 0 hsl(from $euiShadowColor h s l / 0.08),
|
|
37
|
+
0 4px 11px 0 hsl(from $euiShadowColor h s l / 0.05);
|
|
37
38
|
} @else {
|
|
38
39
|
box-shadow:
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
0 2px 7px 0 hsl(from $euiShadowColor h s l / 0.46),
|
|
41
|
+
0 4px 11px 0 hsl(from $euiShadowColor h s l / 0.26);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
@mixin euiBottomShadowMedium($color: $euiShadowColor) {
|
|
45
46
|
@if _colorMode == 'light' {
|
|
46
47
|
box-shadow:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16),
|
|
49
|
+
0 3px 10px 0 hsl(from $euiShadowColor h s l / 0.1),
|
|
50
|
+
0 6px 14px 0 hsl(from $euiShadowColor h s l / 0.06);
|
|
50
51
|
} @else {
|
|
51
52
|
box-shadow:
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
0 3px 10px 0 hsl(from $euiShadowColor h s l / 0.52),
|
|
54
|
+
0 6px 14px 0 hsl(from $euiShadowColor h s l / 0.28);
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -70,24 +71,24 @@
|
|
|
70
71
|
@if ($reverse) {
|
|
71
72
|
@if _colorMode == 'light' {
|
|
72
73
|
box-shadow:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16),
|
|
75
|
+
0 -4px 13px 0 hsl(from $euiShadowColor h s l / 0.12),
|
|
76
|
+
0 -8px 17px 0 hsl(from $euiShadowColor h s l / 0.07);
|
|
76
77
|
} @else {
|
|
77
78
|
box-shadow:
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
0 -4px 13px 0 hsl(from $euiShadowColor h s l / 0.58),
|
|
80
|
+
0 -8px 17px 0 hsl(from $euiShadowColor h s l / 0.3);
|
|
80
81
|
}
|
|
81
82
|
} @else {
|
|
82
83
|
@if _colorMode == 'light' {
|
|
83
84
|
box-shadow:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16),
|
|
86
|
+
0 4px 13px 0 hsl(from $euiShadowColor h s l / 0.12),
|
|
87
|
+
0 8px 17px 0 hsl(from $euiShadowColor h s l / 0.07);
|
|
87
88
|
} @else {
|
|
88
89
|
box-shadow:
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
0 4px 13px 0 hsl(from $euiShadowColor h s l / 0.58),
|
|
91
|
+
0 8px 17px 0 hsl(from $euiShadowColor h s l / 0.3);
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
}
|
|
@@ -128,4 +129,4 @@
|
|
|
128
129
|
// This workaround forces a stacking context on the scrolling container, which
|
|
129
130
|
// hopefully addresses the bug. @see https://github.com/elastic/eui/pull/7855
|
|
130
131
|
transform: translateZ(0);
|
|
131
|
-
}
|
|
132
|
+
}
|
package/src/theme_dark.scss
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
1
|
// color mode specific variables
|
|
3
2
|
@import './variables/colors/colors_vis_dark';
|
|
4
3
|
@import './variables/colors/colors_dark';
|
|
5
4
|
@import './variables/shadows_dark';
|
|
6
5
|
|
|
7
|
-
|
|
8
6
|
// Global styling
|
|
9
7
|
@import './variables/index';
|
|
10
8
|
@import 'mixins/index';
|
|
11
|
-
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/index';
|
|
9
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/index';
|
package/src/theme_light.scss
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
@import './variables/colors/colors_light';
|
|
4
4
|
@import './variables/shadows_light';
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
// Global styling
|
|
8
7
|
@import './variables/index';
|
|
9
8
|
@import 'mixins/index';
|
|
10
|
-
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/index';
|
|
9
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/index';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Import base theme first, then override
|
|
2
2
|
|
|
3
|
-
// TODO: untangle border scss definitions by moving them and related usage to the theme
|
|
4
|
-
// package instead of the common one
|
|
3
|
+
// TODO: untangle border scss definitions by moving them and related usage to the theme
|
|
4
|
+
// package instead of the common one
|
|
5
5
|
|
|
6
6
|
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/size';
|
|
7
7
|
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/responsive';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// Shadows
|
|
2
2
|
$euiShadowColor: $euiColorInk !default;
|
|
3
3
|
|
|
4
|
-
$euiShadowDownXS:
|
|
5
|
-
$euiShadowDownS:
|
|
6
|
-
$euiShadowDownM:
|
|
7
|
-
$euiShadowDownL:
|
|
8
|
-
$euiShadowDownXL:
|
|
4
|
+
$euiShadowDownXS: 0 1px 4px 0 hsla(from $euiShadowColor h s l / 0.4), 0 2px 8px 0 hsla(from $euiShadowColor h s l / 0.24);
|
|
5
|
+
$euiShadowDownS: 0 2px 7px 0 hsla(from $euiShadowColor h s l / 0.46), 0 4px 11px 0 hsla(from $euiShadowColor h s l / 0.26);
|
|
6
|
+
$euiShadowDownM: 0 3px 10px 0 hsla(from $euiShadowColor h s l / 0.52), 0 6px 14px 0 hsla(from $euiShadowColor h s l / 0.28);
|
|
7
|
+
$euiShadowDownL: 0 4px 13px 0 hsla(from $euiShadowColor h s l / 0.58), 0 8px 17px 0 hsla(from $euiShadowColor h s l / 0.3);
|
|
8
|
+
$euiShadowDownXL: 0 5px 16px 0 hsla(from $euiShadowColor h s l / 0.64), 0 10px 20px 0 hsla(from $euiShadowColor h s l / 0.32);
|
|
9
9
|
|
|
10
|
-
$euiShadowUpXS:
|
|
11
|
-
$euiShadowUpS:
|
|
12
|
-
$euiShadowUpM:
|
|
13
|
-
$euiShadowUpL:
|
|
14
|
-
$euiShadowUpXL:
|
|
10
|
+
$euiShadowUpXS: 0 1px 4px 0 hsla(from $euiShadowColor h s l / 0.4), 0 -2px 8px 0 hsla(from $euiShadowColor h s l / 0.24);
|
|
11
|
+
$euiShadowUpS: 0 2px 7px 0 hsla(from $euiShadowColor h s l / 0.46), 0 -4px 11px 0 hsla(from $euiShadowColor h s l / 0.26);
|
|
12
|
+
$euiShadowUpM: 0 3px 10px 0 hsla(from $euiShadowColor h s l / 0.52), 0 -6px 14px 0 hsla(from $euiShadowColor h s l / 0.28);
|
|
13
|
+
$euiShadowUpL: 0 4px 13px 0 hsla(from $euiShadowColor h s l / 0.58), 0 -8px 17px 0 hsla(from $euiShadowColor h s l / 0.3);
|
|
14
|
+
$euiShadowUpXL: 0 5px 16px 0 hsla(from $euiShadowColor h s l / 0.64), 0 -10px 20px 0 hsla(from $euiShadowColor h s l / 0.32);
|
|
15
15
|
|
|
16
|
-
$euiShadowHoverDown:
|
|
17
|
-
$euiShadowHoverXLDown:
|
|
16
|
+
$euiShadowHoverDown: 0 2px 7px 0 hsla(from $euiShadowColor h s l / 0.46), 0 4px 11px 0 hsla(from $euiShadowColor h s l / 0.26);
|
|
17
|
+
$euiShadowHoverXLDown: 0 6px 19px 0 hsla(from $euiShadowColor h s l / 0.7), 0 12px 23px 0 hsla(from $euiShadowColor h s l / 0.34);
|
|
18
18
|
|
|
19
|
-
$euiShadowHoverUp:
|
|
20
|
-
$euiShadowHoverXLUp:
|
|
19
|
+
$euiShadowHoverUp: 0 -2px 7px 0 hsla(from $euiShadowColor h s l / 0.46), 0 -4px 11px 0 hsla(from $euiShadowColor h s l / 0.26);
|
|
20
|
+
$euiShadowHoverXLUp: 0 -6px 19px 0 hsla(from $euiShadowColor h s l / 0.7), 0 -12px 23px 0 hsla(from $euiShadowColor h s l / 0.34);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// Shadows
|
|
2
2
|
$euiShadowColor: $euiColorShade120 !default;
|
|
3
3
|
|
|
4
|
-
$euiShadowDownXS:
|
|
5
|
-
$euiShadowDownS:
|
|
6
|
-
$euiShadowDownM:
|
|
7
|
-
$euiShadowDownL:
|
|
8
|
-
$euiShadowDownXL:
|
|
4
|
+
$euiShadowDownXS: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 1px 4px 0 hsl(from $euiShadowColor h s l / 0.06), 0 2px 8px 0 hsl(from $euiShadowColor h s l / 0.04);
|
|
5
|
+
$euiShadowDownS: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 2px 7px 0 hsl(from $euiShadowColor h s l / 0.08), 0 4px 11px 0 hsl(from $euiShadowColor h s l / 0.05);
|
|
6
|
+
$euiShadowDownM: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 3px 10px 0 hsl(from $euiShadowColor h s l / 0.1), 0 6px 14px 0 hsl(from $euiShadowColor h s l / 0.06);
|
|
7
|
+
$euiShadowDownL: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 4px 13px 0 hsl(from $euiShadowColor h s l / 0.12), 0 8px 17px 0 hsl(from $euiShadowColor h s l / 0.07);
|
|
8
|
+
$euiShadowDownXL: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 5px 16px 0 hsl(from $euiShadowColor h s l / 0.14), 0 10px 20px 0 hsl(from $euiShadowColor h s l / 0.08);
|
|
9
9
|
|
|
10
|
-
$euiShadowUpXS:
|
|
11
|
-
$euiShadowUpS:
|
|
12
|
-
$euiShadowUpM:
|
|
13
|
-
$euiShadowUpL:
|
|
14
|
-
$euiShadowUpXL:
|
|
10
|
+
$euiShadowUpXS: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 -1px 4px 0 hsl(from $euiShadowColor h s l / 0.06), 0 -2px 8px 0 hsl(from $euiShadowColor h s l / 0.04);
|
|
11
|
+
$euiShadowUpS: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 -2px 7px 0 hsl(from $euiShadowColor h s l / 0.08), 0 -4px 11px 0 hsl(from $euiShadowColor h s l / 0.05);
|
|
12
|
+
$euiShadowUpM: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 -3px 10px 0 hsl(from $euiShadowColor h s l / 0.1), 0 -6px 14px 0 hsl(from $euiShadowColor h s l / 0.06);
|
|
13
|
+
$euiShadowUpL: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 -4px 13px 0 hsl(from $euiShadowColor h s l / 0.12), 0 -8px 17px 0 hsl(from $euiShadowColor h s l / 0.07);
|
|
14
|
+
$euiShadowUpXL: 0 0 2px 0 hsl(from $euiShadowColor h s l / 0.16), 0 -5px 16px 0 hsl(from $euiShadowColor h s l / 0.14), 0 -10px 20px 0 hsl(from $euiShadowColor h s l / 0.08);
|
|
15
15
|
|
|
16
|
-
$euiShadowHoverDown:
|
|
17
|
-
$euiShadowHoverXLDown:
|
|
16
|
+
$euiShadowHoverDown: 0 0 2px 0 hsla(from $euiShadowColor h s l / 0.16), 0 2px 7px 0 hsla(from $euiShadowColor h s l / 0.08), 0 4px 11px 0 hsla(from $euiShadowColor h s l / 0.05);
|
|
17
|
+
$euiShadowHoverXLDown: 0 0 2px 0 hsl(from $euiShadowColor h s l/ 0.16), 0 6px 19px 0 hsl(from $euiShadowColor h s l / 0.16), 0 12px 23px 0 hsl(from $euiShadowColor h s l / 0.09);
|
|
18
18
|
|
|
19
|
-
$euiShadowHoverUp:
|
|
20
|
-
$euiShadowHoverXLUp:
|
|
19
|
+
$euiShadowHoverUp: 0 0 2px 0 hsla(from $euiShadowColor h s l / 0.16), 0 -2px 7px 0 hsla(from $euiShadowColor h s l / 0.08), 0 -4px 11px 0 hsla(from $euiShadowColor h s l / 0.05);
|
|
20
|
+
$euiShadowHoverXLUp: 0 0 2px 0 hsl(from $euiShadowColor h s l/ 0.16), 0 -6px 19px 0 hsl(from $euiShadowColor h s l / 0.16), 0 -12px 23px 0 hsl(from $euiShadowColor h s l / 0.09);
|
|
@@ -116,12 +116,13 @@ $euiColorBorderBaseDanger: $euiColorDanger120 !default;
|
|
|
116
116
|
|
|
117
117
|
$euiColorBorderBasePlain: $euiColorShade100 !default;
|
|
118
118
|
$euiColorBorderBaseSubdued: $euiColorShade120 !default;
|
|
119
|
+
$euiColorBorderBaseProminent: $euiColorShade80 !default;
|
|
119
120
|
$euiColorBorderBaseDisabled: $euiColorShade100 !default;
|
|
120
121
|
$euiColorBorderBaseFloating: $euiColorShade120 !default;
|
|
121
122
|
$euiColorBorderBaseFormsColorSwatch: $euiColorPlainLightAlpha32 !default;
|
|
122
|
-
$euiColorBorderBaseFormsControl: $euiColorShade80 !default;
|
|
123
123
|
|
|
124
124
|
$euiColorBorderInteractiveFormsHoverPlain: $euiColorShade90 !default;
|
|
125
|
+
$euiColorBorderInteractiveFormsHoverProminent: $euiColorShade60 !default;
|
|
125
126
|
$euiColorBorderInteractiveFormsHoverDanger: $euiColorDanger70 !default;
|
|
126
127
|
|
|
127
128
|
$euiColorBorderStrongPrimary: $euiColorPrimary60 !default;
|
|
@@ -117,13 +117,14 @@ $euiColorBorderBaseDanger: $euiColorDanger30 !default;
|
|
|
117
117
|
|
|
118
118
|
$euiColorBorderBasePlain: $euiColorShade30 !default;
|
|
119
119
|
$euiColorBorderBaseSubdued: $euiColorShade20 !default;
|
|
120
|
+
$euiColorBorderBaseProminent: $euiColorShade50 !default;
|
|
120
121
|
$euiColorBorderBaseDisabled: $euiColorShade30 !default;
|
|
121
122
|
$euiColorBorderBaseFloating: $euiColorTransparent !default;
|
|
122
123
|
|
|
123
124
|
$euiColorBorderBaseFormsColorSwatch: $euiColorShade100Alpha24 !default;
|
|
124
|
-
$euiColorBorderBaseFormsControl: $euiColorShade60 !default;
|
|
125
125
|
|
|
126
126
|
$euiColorBorderInteractiveFormsHoverPlain: $euiColorShade40 !default;
|
|
127
|
+
$euiColorBorderInteractiveFormsHoverProminent: $euiColorShade70 !default;
|
|
127
128
|
$euiColorBorderInteractiveFormsHoverDanger: $euiColorDanger80 !default;
|
|
128
129
|
|
|
129
130
|
$euiColorBorderStrongPrimary: $euiColorPrimary90 !default;
|
|
@@ -136,7 +137,6 @@ $euiColorBorderStrongRisk: $euiColorRisk90 !default;
|
|
|
136
137
|
$euiColorBorderStrongDanger: $euiColorDanger90 !default;
|
|
137
138
|
$euiColorBorderStrongText: $euiColorShade90 !default;
|
|
138
139
|
|
|
139
|
-
|
|
140
140
|
// Charts
|
|
141
141
|
$euiColorChartLines: $euiColorShade30 !default;
|
|
142
142
|
$euiColorChartBand: $euiColorShade10 !default;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* TODO: automatically generate scss variable files
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
$euiColorWhite: #FFFFFF !default;
|
|
9
8
|
$euiColorBlack: #000000 !default;
|
|
10
9
|
$euiColorMutedBlack: #0E0F12 !default;
|
|
@@ -86,7 +85,7 @@ $euiColorNeutral30: #B5E5F2 !default;
|
|
|
86
85
|
$euiColorNeutral40: #94D8EB !default;
|
|
87
86
|
$euiColorNeutral50: #63C8E3 !default;
|
|
88
87
|
$euiColorNeutral60: #37B8DC !default;
|
|
89
|
-
$euiColorNeutral70: #
|
|
88
|
+
$euiColorNeutral70: #0DA1C9 !default;
|
|
90
89
|
$euiColorNeutral80: #1C8CB5 !default;
|
|
91
90
|
$euiColorNeutral90: #19799F !default;
|
|
92
91
|
$euiColorNeutral100: #0F658A !default;
|
|
@@ -217,5 +216,3 @@ $euiColorShade100Alpha24: rgba($euiColorShade100, 0.24) !default;
|
|
|
217
216
|
$euiColorShade100Alpha70: rgba($euiColorShade100, 0.7) !default;
|
|
218
217
|
|
|
219
218
|
$euiColorShade120Alpha70: rgba($euiColorShade120, 0.7) !default;
|
|
220
|
-
|
|
221
|
-
|