@elastic/eui-theme-borealis 5.4.0 → 6.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.
@@ -295,106 +295,101 @@ var component_colors = {
295
295
  return borderBaseSubdued;
296
296
  }, ['colors.borderBaseSubdued']),
297
297
  skeletonBackgroundSkeletonMiddleHighContrast: "rgba(".concat(_semantic_colors.SEMANTIC_COLORS.shade100RGB, ", 0.04)"),
298
- superDatePickerBackgroundSuccees: (0, _euiThemeCommon.computed)(function (_ref91) {
298
+ switchBackgroundOn: (0, _euiThemeCommon.computed)(function (_ref91) {
299
299
  var _ref92 = _slicedToArray(_ref91, 1),
300
- backgroundBaseSuccess = _ref92[0];
301
- return backgroundBaseSuccess;
302
- }, ['colors.backgroundBaseSuccess']),
303
- switchBackgroundOn: (0, _euiThemeCommon.computed)(function (_ref93) {
304
- var _ref94 = _slicedToArray(_ref93, 1),
305
- backgroundFilledPrimary = _ref94[0];
300
+ backgroundFilledPrimary = _ref92[0];
306
301
  return backgroundFilledPrimary;
307
302
  }, ['colors.backgroundFilledPrimary']),
308
- switchBackgroundOff: (0, _euiThemeCommon.computed)(function (_ref95) {
309
- var _ref96 = _slicedToArray(_ref95, 1),
310
- backgroundFilledText = _ref96[0];
303
+ switchBackgroundOff: (0, _euiThemeCommon.computed)(function (_ref93) {
304
+ var _ref94 = _slicedToArray(_ref93, 1),
305
+ backgroundFilledText = _ref94[0];
311
306
  return backgroundFilledText;
312
307
  }, ['colors.backgroundFilledText']),
313
- switchUncompressedBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref97) {
308
+ switchUncompressedBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref95) {
309
+ var _ref96 = _slicedToArray(_ref95, 1),
310
+ backgroundBaseFormsControlDisabled = _ref96[0];
311
+ return backgroundBaseFormsControlDisabled;
312
+ }, ['colors.backgroundBaseFormsControlDisabled']),
313
+ switchCompressedBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref97) {
314
314
  var _ref98 = _slicedToArray(_ref97, 1),
315
315
  backgroundBaseFormsControlDisabled = _ref98[0];
316
316
  return backgroundBaseFormsControlDisabled;
317
317
  }, ['colors.backgroundBaseFormsControlDisabled']),
318
- switchCompressedBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref99) {
318
+ switchMiniBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref99) {
319
319
  var _ref100 = _slicedToArray(_ref99, 1),
320
320
  backgroundBaseFormsControlDisabled = _ref100[0];
321
321
  return backgroundBaseFormsControlDisabled;
322
322
  }, ['colors.backgroundBaseFormsControlDisabled']),
323
- switchMiniBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref101) {
323
+ switchThumbBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref101) {
324
324
  var _ref102 = _slicedToArray(_ref101, 1),
325
- backgroundBaseFormsControlDisabled = _ref102[0];
326
- return backgroundBaseFormsControlDisabled;
327
- }, ['colors.backgroundBaseFormsControlDisabled']),
328
- switchThumbBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref103) {
329
- var _ref104 = _slicedToArray(_ref103, 1),
330
- backgroundBasePlain = _ref104[0];
325
+ backgroundBasePlain = _ref102[0];
331
326
  return backgroundBasePlain;
332
327
  }, ['colors.backgroundBasePlain']),
333
- switchThumbBorderOn: (0, _euiThemeCommon.computed)(function (_ref105) {
334
- var _ref106 = _slicedToArray(_ref105, 1),
335
- backgroundFilledPrimary = _ref106[0];
328
+ switchThumbBorderOn: (0, _euiThemeCommon.computed)(function (_ref103) {
329
+ var _ref104 = _slicedToArray(_ref103, 1),
330
+ backgroundFilledPrimary = _ref104[0];
336
331
  return backgroundFilledPrimary;
337
332
  }, ['colors.backgroundFilledPrimary']),
338
- switchThumbBorderOff: (0, _euiThemeCommon.computed)(function (_ref107) {
339
- var _ref108 = _slicedToArray(_ref107, 1),
340
- backgroundFilledText = _ref108[0];
333
+ switchThumbBorderOff: (0, _euiThemeCommon.computed)(function (_ref105) {
334
+ var _ref106 = _slicedToArray(_ref105, 1),
335
+ backgroundFilledText = _ref106[0];
341
336
  return backgroundFilledText;
342
337
  }, ['colors.backgroundFilledText']),
343
338
  switchIconDisabled: _forms.forms.LIGHT.iconDisabled,
344
- tableRowBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref109) {
345
- var _ref110 = _slicedToArray(_ref109, 1),
346
- backgroundBaseInteractiveHover = _ref110[0];
339
+ tableRowBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref107) {
340
+ var _ref108 = _slicedToArray(_ref107, 1),
341
+ backgroundBaseInteractiveHover = _ref108[0];
347
342
  return backgroundBaseInteractiveHover;
348
343
  }, ['colors.backgroundBaseInteractiveHover']),
349
- tableRowBackgroundSelected: (0, _euiThemeCommon.computed)(function (_ref111) {
350
- var _ref112 = _slicedToArray(_ref111, 1),
351
- backgroundBaseInteractiveSelect = _ref112[0];
344
+ tableRowBackgroundSelected: (0, _euiThemeCommon.computed)(function (_ref109) {
345
+ var _ref110 = _slicedToArray(_ref109, 1),
346
+ backgroundBaseInteractiveSelect = _ref110[0];
352
347
  return backgroundBaseInteractiveSelect;
353
348
  }, ['colors.backgroundBaseInteractiveSelect']),
354
- tableRowBackgroundSelectedHover: (0, _euiThemeCommon.computed)(function (_ref113) {
355
- var _ref114 = _slicedToArray(_ref113, 1),
356
- backgroundBaseInteractiveSelectHover = _ref114[0];
349
+ tableRowBackgroundSelectedHover: (0, _euiThemeCommon.computed)(function (_ref111) {
350
+ var _ref112 = _slicedToArray(_ref111, 1),
351
+ backgroundBaseInteractiveSelectHover = _ref112[0];
357
352
  return backgroundBaseInteractiveSelectHover;
358
353
  }, ['colors.backgroundBaseInteractiveSelectHover']),
359
- tableRowInteractiveBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref115) {
360
- var _ref116 = _slicedToArray(_ref115, 1),
361
- backgroundBaseInteractiveSelect = _ref116[0];
354
+ tableRowInteractiveBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref113) {
355
+ var _ref114 = _slicedToArray(_ref113, 1),
356
+ backgroundBaseInteractiveSelect = _ref114[0];
362
357
  return backgroundBaseInteractiveSelect;
363
358
  }, ['colors.backgroundBaseInteractiveSelect']),
364
- tableRowInteractiveBackgroundFocus: (0, _euiThemeCommon.computed)(function (_ref117) {
365
- var _ref118 = _slicedToArray(_ref117, 1),
366
- backgroundBaseInteractiveHover = _ref118[0];
359
+ tableRowInteractiveBackgroundFocus: (0, _euiThemeCommon.computed)(function (_ref115) {
360
+ var _ref116 = _slicedToArray(_ref115, 1),
361
+ backgroundBaseInteractiveHover = _ref116[0];
367
362
  return backgroundBaseInteractiveHover;
368
363
  }, ['colors.backgroundBaseInteractiveHover']),
369
364
  tableRowBackgroundMarked: _semantic_colors.SEMANTIC_COLORS.warning10,
370
365
  tableRowBackgroundMarkedHover: _semantic_colors.SEMANTIC_COLORS.warning20,
371
- tableCellSortableIconColor: (0, _euiThemeCommon.computed)(function (_ref119) {
372
- var _ref120 = _slicedToArray(_ref119, 1),
373
- backgroundFilledText = _ref120[0];
366
+ tableCellSortableIconColor: (0, _euiThemeCommon.computed)(function (_ref117) {
367
+ var _ref118 = _slicedToArray(_ref117, 1),
368
+ backgroundFilledText = _ref118[0];
374
369
  return backgroundFilledText;
375
370
  }, ['colors.backgroundFilledText']),
376
371
  tableFooterBackground: _semantic_colors.SEMANTIC_COLORS.shade15,
377
372
  tooltipBackground: _colors_dark.dark_background_colors.backgroundBaseSubdued,
378
373
  tooltipBorder: _colors_dark.dark_border_colors.borderBaseSubdued,
379
- tooltipBorderFloating: (0, _euiThemeCommon.computed)(function (_ref121) {
380
- var _ref122 = _slicedToArray(_ref121, 1),
381
- borderBaseFloating = _ref122[0];
374
+ tooltipBorderFloating: (0, _euiThemeCommon.computed)(function (_ref119) {
375
+ var _ref120 = _slicedToArray(_ref119, 1),
376
+ borderBaseFloating = _ref120[0];
382
377
  return borderBaseFloating;
383
378
  }, ['colors.borderBaseFloating']),
384
- tourFooterBackground: (0, _euiThemeCommon.computed)(function (_ref123) {
385
- var _ref124 = _slicedToArray(_ref123, 1),
386
- backgroundBaseHighlighted = _ref124[0];
379
+ tourFooterBackground: (0, _euiThemeCommon.computed)(function (_ref121) {
380
+ var _ref122 = _slicedToArray(_ref121, 1),
381
+ backgroundBaseHighlighted = _ref122[0];
387
382
  return backgroundBaseHighlighted;
388
383
  }, ['colors.backgroundBaseHighlighted']),
389
384
  tourStepIndicatorInactiveColor: _semantic_colors.SEMANTIC_COLORS.shade50,
390
- tourStepIndicatorActiveColor: (0, _euiThemeCommon.computed)(function (_ref125) {
391
- var _ref126 = _slicedToArray(_ref125, 1),
392
- backgroundFilledSuccess = _ref126[0];
385
+ tourStepIndicatorActiveColor: (0, _euiThemeCommon.computed)(function (_ref123) {
386
+ var _ref124 = _slicedToArray(_ref123, 1),
387
+ backgroundFilledSuccess = _ref124[0];
393
388
  return backgroundFilledSuccess;
394
389
  }, ['colors.backgroundFilledSuccess']),
395
- treeViewItemBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref127) {
396
- var _ref128 = _slicedToArray(_ref127, 1),
397
- backgroundBaseInteractiveHover = _ref128[0];
390
+ treeViewItemBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref125) {
391
+ var _ref126 = _slicedToArray(_ref125, 1),
392
+ backgroundBaseInteractiveHover = _ref126[0];
398
393
  return backgroundBaseInteractiveHover;
399
394
  }, ['colors.backgroundBaseInteractiveHover'])
400
395
  };
@@ -433,23 +428,23 @@ var components = exports.components = {
433
428
  skeletonBackgroundSkeletonMiddleHighContrast: "rgba(".concat(_semantic_colors.SEMANTIC_COLORS.plainLightRGB, ", 0.3)"),
434
429
  switchIconDisabled: _forms.forms.DARK.iconDisabled,
435
430
  // TODO: align table hover states
436
- tableRowInteractiveBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref129) {
437
- var _ref130 = _slicedToArray(_ref129, 1),
438
- backgroundBaseInteractiveHover = _ref130[0];
431
+ tableRowInteractiveBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref127) {
432
+ var _ref128 = _slicedToArray(_ref127, 1),
433
+ backgroundBaseInteractiveHover = _ref128[0];
439
434
  return backgroundBaseInteractiveHover;
440
435
  }, ['colors.backgroundBaseInteractiveHover']),
441
- tableRowInteractiveBackgroundFocus: (0, _euiThemeCommon.computed)(function (_ref131) {
442
- var _ref132 = _slicedToArray(_ref131, 1),
443
- backgroundBaseInteractiveHover = _ref132[0];
436
+ tableRowInteractiveBackgroundFocus: (0, _euiThemeCommon.computed)(function (_ref129) {
437
+ var _ref130 = _slicedToArray(_ref129, 1),
438
+ backgroundBaseInteractiveHover = _ref130[0];
444
439
  return backgroundBaseInteractiveHover;
445
440
  }, ['colors.backgroundBaseInteractiveHover']),
446
441
  tableRowBackgroundMarked: _semantic_colors.SEMANTIC_COLORS.warning140,
447
442
  tableRowBackgroundMarkedHover: _semantic_colors.SEMANTIC_COLORS.warning130,
448
443
  tableFooterBackground: _semantic_colors.SEMANTIC_COLORS.shade135,
449
444
  tourStepIndicatorInactiveColor: _semantic_colors.SEMANTIC_COLORS.shade100,
450
- tourStepIndicatorActiveColor: (0, _euiThemeCommon.computed)(function (_ref133) {
451
- var _ref134 = _slicedToArray(_ref133, 1),
452
- backgroundFilledSuccess = _ref134[0];
445
+ tourStepIndicatorActiveColor: (0, _euiThemeCommon.computed)(function (_ref131) {
446
+ var _ref132 = _slicedToArray(_ref131, 1),
447
+ backgroundFilledSuccess = _ref132[0];
453
448
  return backgroundFilledSuccess;
454
449
  }, ['colors.backgroundFilledSuccess'])
455
450
  })
@@ -18,9 +18,15 @@ var _colors_severity_hcm = require("./colors/_colors_severity_hcm");
18
18
  var overrides = exports.overrides = {
19
19
  HCM: {
20
20
  colors: {
21
- ink: _primitive_colors.PRIMITIVE_COLORS.black,
22
- ghost: _primitive_colors.PRIMITIVE_COLORS.white,
21
+ plainDark: _primitive_colors.PRIMITIVE_COLORS.black,
22
+ plainLight: _primitive_colors.PRIMITIVE_COLORS.white,
23
+ DARK: {
24
+ textInk: _primitive_colors.PRIMITIVE_COLORS.black,
25
+ textGhost: _primitive_colors.PRIMITIVE_COLORS.white
26
+ },
23
27
  LIGHT: {
28
+ textInk: _primitive_colors.PRIMITIVE_COLORS.black,
29
+ textGhost: _primitive_colors.PRIMITIVE_COLORS.white,
24
30
  vis: _colors_vis_hcm.visColorsLightHighContrast,
25
31
  severity: _colors_severity_hcm.severityColorsLightHighContrast
26
32
  }
@@ -58,7 +58,9 @@ var dark_text_colors = exports.dark_text_colors = {
58
58
  textHeading: _semantic_colors.SEMANTIC_COLORS.shade20,
59
59
  textSubdued: _semantic_colors.SEMANTIC_COLORS.shade55,
60
60
  textDisabled: _semantic_colors.SEMANTIC_COLORS.shade80,
61
- textInverse: _semantic_colors.SEMANTIC_COLORS.plainDark
61
+ textInverse: _semantic_colors.SEMANTIC_COLORS.plainDark,
62
+ textInk: _semantic_colors.SEMANTIC_COLORS.plainDark,
63
+ textGhost: _semantic_colors.SEMANTIC_COLORS.plainLight
62
64
  };
63
65
  var dark_shades = exports.dark_shades = {
64
66
  emptyShade: _semantic_colors.SEMANTIC_COLORS.shade145,
@@ -58,7 +58,9 @@ var text_colors = exports.text_colors = {
58
58
  textHeading: _semantic_colors.SEMANTIC_COLORS.shade140,
59
59
  textSubdued: _semantic_colors.SEMANTIC_COLORS.shade95,
60
60
  textDisabled: _semantic_colors.SEMANTIC_COLORS.shade70,
61
- textInverse: _semantic_colors.SEMANTIC_COLORS.plainLight
61
+ textInverse: _semantic_colors.SEMANTIC_COLORS.plainLight,
62
+ textInk: _semantic_colors.SEMANTIC_COLORS.plainDark,
63
+ textGhost: _semantic_colors.SEMANTIC_COLORS.plainLight
62
64
  };
63
65
  var shade_colors = exports.shade_colors = {
64
66
  emptyShade: _semantic_colors.SEMANTIC_COLORS.plainLight,
@@ -61,7 +61,10 @@ var visColorsLightHighContrast = exports.visColorsLightHighContrast = _objectSpr
61
61
  euiColorVisRisk1: _semantic_colors.SEMANTIC_COLORS.risk80,
62
62
  euiColorVisDanger0: _semantic_colors.SEMANTIC_COLORS.danger100,
63
63
  euiColorVisDanger1: _semantic_colors.SEMANTIC_COLORS.danger80,
64
- euiColorVisBase0: _primitive_colors.PRIMITIVE_COLORS.mutedGrey10,
64
+ // We removed the `mutedGrey` palette in favor of the `blueGrey` palette from the theme
65
+ // but we need to keep this specific value for visualizations backwards compatibility.
66
+ // We want to limit its usage to visualizations only, so we're keeping it hardcoded here.
67
+ euiColorVisBase0: '#F6F9FC',
65
68
  euiColorVisGrey0: _primitive_colors.PRIMITIVE_COLORS.blueGrey30,
66
69
  euiColorVisGrey1: _primitive_colors.PRIMITIVE_COLORS.blueGrey60,
67
70
  euiColorVisGrey2: _primitive_colors.PRIMITIVE_COLORS.blueGrey90,
@@ -90,7 +90,10 @@ var colorVisLight = exports.colorVisLight = {
90
90
  euiColorVisRisk1: _semantic_colors.SEMANTIC_COLORS.risk30,
91
91
  euiColorVisDanger0: _semantic_colors.SEMANTIC_COLORS.danger60,
92
92
  euiColorVisDanger1: _semantic_colors.SEMANTIC_COLORS.danger30,
93
- euiColorVisBase0: _primitive_colors.PRIMITIVE_COLORS.mutedGrey10,
93
+ // We removed the `mutedGrey` palette in favor of the `blueGrey` palette from the theme
94
+ // but we need to keep this specific value for visualizations backwards compatibility.
95
+ // We want to limit its usage to visualizations only, so we're keeping it hardcoded here.
96
+ euiColorVisBase0: '#F6F9FC',
94
97
  euiColorVisGrey0: _primitive_colors.PRIMITIVE_COLORS.blueGrey30,
95
98
  euiColorVisGrey1: _primitive_colors.PRIMITIVE_COLORS.blueGrey60,
96
99
  euiColorVisGrey2: _primitive_colors.PRIMITIVE_COLORS.blueGrey90,
@@ -4,34 +4,6 @@ export declare const PRIMITIVE_COLORS: {
4
4
  mutedBlack: string;
5
5
  blueBlack: string;
6
6
  transparent: string;
7
- mutedGrey10: string;
8
- mutedGrey15: string;
9
- mutedGrey20: string;
10
- mutedGrey25: string;
11
- mutedGrey30: string;
12
- mutedGrey35: string;
13
- mutedGrey40: string;
14
- mutedGrey45: string;
15
- mutedGrey50: string;
16
- mutedGrey55: string;
17
- mutedGrey60: string;
18
- mutedGrey65: string;
19
- mutedGrey70: string;
20
- mutedGrey75: string;
21
- mutedGrey80: string;
22
- mutedGrey85: string;
23
- mutedGrey90: string;
24
- mutedGrey95: string;
25
- mutedGrey100: string;
26
- mutedGrey105: string;
27
- mutedGrey110: string;
28
- mutedGrey115: string;
29
- mutedGrey120: string;
30
- mutedGrey125: string;
31
- mutedGrey130: string;
32
- mutedGrey135: string;
33
- mutedGrey140: string;
34
- mutedGrey145: string;
35
7
  blueGrey10: string;
36
8
  blueGrey15: string;
37
9
  blueGrey20: string;
@@ -18,34 +18,6 @@ var PRIMITIVE_COLORS = exports.PRIMITIVE_COLORS = {
18
18
  mutedBlack: '#0E0F12',
19
19
  blueBlack: '#07101F',
20
20
  transparent: 'transparent',
21
- mutedGrey10: '#F6F9FC',
22
- mutedGrey15: '#EDEFF3',
23
- mutedGrey20: '#E3E6EB',
24
- mutedGrey25: '#D9DDE3',
25
- mutedGrey30: '#D0D4DA',
26
- mutedGrey35: '#C6CBD2',
27
- mutedGrey40: '#BDC2CA',
28
- mutedGrey45: '#B3B9C2',
29
- mutedGrey50: '#AAB0BA',
30
- mutedGrey55: '#A1A8B2',
31
- mutedGrey60: '#989FAA',
32
- mutedGrey65: '#8F96A2',
33
- mutedGrey70: '#868E9A',
34
- mutedGrey75: '#7E8691',
35
- mutedGrey80: '#767D89',
36
- mutedGrey85: '#6E7581',
37
- mutedGrey90: '#666D78',
38
- mutedGrey95: '#5D6570',
39
- mutedGrey100: '#555C67',
40
- mutedGrey105: '#4D545E',
41
- mutedGrey110: '#464C56',
42
- mutedGrey115: '#3F444D',
43
- mutedGrey120: '#373D45',
44
- mutedGrey125: '#30353C',
45
- mutedGrey130: '#292E34',
46
- mutedGrey135: '#23262C',
47
- mutedGrey140: '#1C1F24',
48
- mutedGrey145: '#16181D',
49
21
  blueGrey10: '#F6F9FC',
50
22
  blueGrey15: '#ECF1F9',
51
23
  blueGrey20: '#E3E8F2',
@@ -23,8 +23,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
23
23
  * Side Public License, v 1.
24
24
  */
25
25
  var colors = exports.colors = {
26
- ghost: _semantic_colors.SEMANTIC_COLORS.plainLight,
27
- ink: _semantic_colors.SEMANTIC_COLORS.plainDark,
28
26
  plainLight: _semantic_colors.SEMANTIC_COLORS.plainLight,
29
27
  plainDark: _semantic_colors.SEMANTIC_COLORS.plainDark,
30
28
  LIGHT: _objectSpread(_objectSpread({}, _colors_light.light_colors), {}, {
@@ -98,7 +98,6 @@ const component_colors = {
98
98
  sideNavItemEmphasizedBackground: computed(([backgroundBaseInteractiveSelect]) => backgroundBaseInteractiveSelect, ['colors.backgroundBaseInteractiveSelect']),
99
99
  selectableListItemBorderColor: computed(([borderBaseSubdued]) => borderBaseSubdued, ['colors.borderBaseSubdued']),
100
100
  skeletonBackgroundSkeletonMiddleHighContrast: `rgba(${SEMANTIC_COLORS.shade100RGB}, 0.04)`,
101
- superDatePickerBackgroundSuccees: computed(([backgroundBaseSuccess]) => backgroundBaseSuccess, ['colors.backgroundBaseSuccess']),
102
101
  switchBackgroundOn: computed(([backgroundFilledPrimary]) => backgroundFilledPrimary, ['colors.backgroundFilledPrimary']),
103
102
  switchBackgroundOff: computed(([backgroundFilledText]) => backgroundFilledText, ['colors.backgroundFilledText']),
104
103
  switchUncompressedBackgroundDisabled: computed(([backgroundBaseFormsControlDisabled]) => backgroundBaseFormsControlDisabled, ['colors.backgroundBaseFormsControlDisabled']),
@@ -11,9 +11,15 @@ import { severityColorsLightHighContrast } from './colors/_colors_severity_hcm';
11
11
  export const overrides = {
12
12
  HCM: {
13
13
  colors: {
14
- ink: PRIMITIVE_COLORS.black,
15
- ghost: PRIMITIVE_COLORS.white,
14
+ plainDark: PRIMITIVE_COLORS.black,
15
+ plainLight: PRIMITIVE_COLORS.white,
16
+ DARK: {
17
+ textInk: PRIMITIVE_COLORS.black,
18
+ textGhost: PRIMITIVE_COLORS.white,
19
+ },
16
20
  LIGHT: {
21
+ textInk: PRIMITIVE_COLORS.black,
22
+ textGhost: PRIMITIVE_COLORS.white,
17
23
  vis: visColorsLightHighContrast,
18
24
  severity: severityColorsLightHighContrast,
19
25
  },
@@ -47,6 +47,8 @@ export const dark_text_colors = {
47
47
  textSubdued: SEMANTIC_COLORS.shade55,
48
48
  textDisabled: SEMANTIC_COLORS.shade80,
49
49
  textInverse: SEMANTIC_COLORS.plainDark,
50
+ textInk: SEMANTIC_COLORS.plainDark,
51
+ textGhost: SEMANTIC_COLORS.plainLight,
50
52
  };
51
53
  export const dark_shades = {
52
54
  emptyShade: SEMANTIC_COLORS.shade145,
@@ -47,6 +47,8 @@ export const text_colors = {
47
47
  textSubdued: SEMANTIC_COLORS.shade95,
48
48
  textDisabled: SEMANTIC_COLORS.shade70,
49
49
  textInverse: SEMANTIC_COLORS.plainLight,
50
+ textInk: SEMANTIC_COLORS.plainDark,
51
+ textGhost: SEMANTIC_COLORS.plainLight,
50
52
  };
51
53
  export const shade_colors = {
52
54
  emptyShade: SEMANTIC_COLORS.plainLight,
@@ -51,7 +51,10 @@ export const visColorsLightHighContrast = {
51
51
  euiColorVisRisk1: SEMANTIC_COLORS.risk80,
52
52
  euiColorVisDanger0: SEMANTIC_COLORS.danger100,
53
53
  euiColorVisDanger1: SEMANTIC_COLORS.danger80,
54
- euiColorVisBase0: PRIMITIVE_COLORS.mutedGrey10,
54
+ // We removed the `mutedGrey` palette in favor of the `blueGrey` palette from the theme
55
+ // but we need to keep this specific value for visualizations backwards compatibility.
56
+ // We want to limit its usage to visualizations only, so we're keeping it hardcoded here.
57
+ euiColorVisBase0: '#F6F9FC',
55
58
  euiColorVisGrey0: PRIMITIVE_COLORS.blueGrey30,
56
59
  euiColorVisGrey1: PRIMITIVE_COLORS.blueGrey60,
57
60
  euiColorVisGrey2: PRIMITIVE_COLORS.blueGrey90,
@@ -83,7 +83,10 @@ export const colorVisLight = {
83
83
  euiColorVisRisk1: SEMANTIC_COLORS.risk30,
84
84
  euiColorVisDanger0: SEMANTIC_COLORS.danger60,
85
85
  euiColorVisDanger1: SEMANTIC_COLORS.danger30,
86
- euiColorVisBase0: PRIMITIVE_COLORS.mutedGrey10,
86
+ // We removed the `mutedGrey` palette in favor of the `blueGrey` palette from the theme
87
+ // but we need to keep this specific value for visualizations backwards compatibility.
88
+ // We want to limit its usage to visualizations only, so we're keeping it hardcoded here.
89
+ euiColorVisBase0: '#F6F9FC',
87
90
  euiColorVisGrey0: PRIMITIVE_COLORS.blueGrey30,
88
91
  euiColorVisGrey1: PRIMITIVE_COLORS.blueGrey60,
89
92
  euiColorVisGrey2: PRIMITIVE_COLORS.blueGrey90,
@@ -4,34 +4,6 @@ export declare const PRIMITIVE_COLORS: {
4
4
  mutedBlack: string;
5
5
  blueBlack: string;
6
6
  transparent: string;
7
- mutedGrey10: string;
8
- mutedGrey15: string;
9
- mutedGrey20: string;
10
- mutedGrey25: string;
11
- mutedGrey30: string;
12
- mutedGrey35: string;
13
- mutedGrey40: string;
14
- mutedGrey45: string;
15
- mutedGrey50: string;
16
- mutedGrey55: string;
17
- mutedGrey60: string;
18
- mutedGrey65: string;
19
- mutedGrey70: string;
20
- mutedGrey75: string;
21
- mutedGrey80: string;
22
- mutedGrey85: string;
23
- mutedGrey90: string;
24
- mutedGrey95: string;
25
- mutedGrey100: string;
26
- mutedGrey105: string;
27
- mutedGrey110: string;
28
- mutedGrey115: string;
29
- mutedGrey120: string;
30
- mutedGrey125: string;
31
- mutedGrey130: string;
32
- mutedGrey135: string;
33
- mutedGrey140: string;
34
- mutedGrey145: string;
35
7
  blueGrey10: string;
36
8
  blueGrey15: string;
37
9
  blueGrey20: string;
@@ -11,34 +11,6 @@ export const PRIMITIVE_COLORS = {
11
11
  mutedBlack: '#0E0F12',
12
12
  blueBlack: '#07101F',
13
13
  transparent: 'transparent',
14
- mutedGrey10: '#F6F9FC',
15
- mutedGrey15: '#EDEFF3',
16
- mutedGrey20: '#E3E6EB',
17
- mutedGrey25: '#D9DDE3',
18
- mutedGrey30: '#D0D4DA',
19
- mutedGrey35: '#C6CBD2',
20
- mutedGrey40: '#BDC2CA',
21
- mutedGrey45: '#B3B9C2',
22
- mutedGrey50: '#AAB0BA',
23
- mutedGrey55: '#A1A8B2',
24
- mutedGrey60: '#989FAA',
25
- mutedGrey65: '#8F96A2',
26
- mutedGrey70: '#868E9A',
27
- mutedGrey75: '#7E8691',
28
- mutedGrey80: '#767D89',
29
- mutedGrey85: '#6E7581',
30
- mutedGrey90: '#666D78',
31
- mutedGrey95: '#5D6570',
32
- mutedGrey100: '#555C67',
33
- mutedGrey105: '#4D545E',
34
- mutedGrey110: '#464C56',
35
- mutedGrey115: '#3F444D',
36
- mutedGrey120: '#373D45',
37
- mutedGrey125: '#30353C',
38
- mutedGrey130: '#292E34',
39
- mutedGrey135: '#23262C',
40
- mutedGrey140: '#1C1F24',
41
- mutedGrey145: '#16181D',
42
14
  blueGrey10: '#F6F9FC',
43
15
  blueGrey15: '#ECF1F9',
44
16
  blueGrey20: '#E3E8F2',
@@ -12,8 +12,6 @@ import { colorVisLight } from './_colors_vis_light';
12
12
  import { colorVisDark } from './_colors_vis_dark';
13
13
  import { severityColors } from './_colors_severity';
14
14
  export const colors = {
15
- ghost: SEMANTIC_COLORS.plainLight,
16
- ink: SEMANTIC_COLORS.plainDark,
17
15
  plainLight: SEMANTIC_COLORS.plainLight,
18
16
  plainDark: SEMANTIC_COLORS.plainDark,
19
17
  LIGHT: {
@@ -354,8 +354,6 @@
354
354
  "euiColorSeverityDanger": "#EE4C48",
355
355
  "euiColorChartLines": "#7186A8",
356
356
  "euiColorChartBand": "#243147",
357
- "euiColorGhost": "#FFFFFF",
358
- "euiColorInk": "#000000",
359
357
  "euiColorPrimary": "#61A2FF",
360
358
  "euiColorAccent": "#EE72A6",
361
359
  "euiColorAccentSecondary": "#16C5C0",
@@ -397,6 +395,8 @@
397
395
  "euiColorTextSubdued": "#98A8C3",
398
396
  "euiColorTextDisabled": "#6A7FA0",
399
397
  "euiColorTextInverse": "#07101F",
398
+ "euiColorTextGhost": "#FFFFFF",
399
+ "euiColorTextInk": "#07101F",
400
400
  "euiColorBackgroundBasePrimary": "#0A2342",
401
401
  "euiColorBackgroundBaseAccent": "#351725",
402
402
  "euiColorBackgroundBaseAccentSecondary": "#03282B",
@@ -355,8 +355,6 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_dark.json' {
355
355
  euiColorSeverityDanger: string;
356
356
  euiColorChartLines: string;
357
357
  euiColorChartBand: string;
358
- euiColorGhost: string;
359
- euiColorInk: string;
360
358
  euiColorPrimary: string;
361
359
  euiColorAccent: string;
362
360
  euiColorAccentSecondary: string;
@@ -398,6 +396,8 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_dark.json' {
398
396
  euiColorTextSubdued: string;
399
397
  euiColorTextDisabled: string;
400
398
  euiColorTextInverse: string;
399
+ euiColorTextGhost: string;
400
+ euiColorTextInk: string;
401
401
  euiColorBackgroundBasePrimary: string;
402
402
  euiColorBackgroundBaseAccent: string;
403
403
  euiColorBackgroundBaseAccentSecondary: string;
@@ -354,8 +354,6 @@
354
354
  "euiColorSeverityDanger": "#EE4C48",
355
355
  "euiColorChartLines": "#CAD3E2",
356
356
  "euiColorChartBand": "#F6F9FC",
357
- "euiColorGhost": "#FFFFFF",
358
- "euiColorInk": "#000000",
359
357
  "euiColorPrimary": "#0B64DD",
360
358
  "euiColorAccent": "#BC1E70",
361
359
  "euiColorAccentSecondary": "#008B87",
@@ -397,6 +395,8 @@
397
395
  "euiColorTextSubdued": "#516381",
398
396
  "euiColorTextDisabled": "#798EAF",
399
397
  "euiColorTextInverse": "#FFFFFF",
398
+ "euiColorTextGhost": "#FFFFFF",
399
+ "euiColorTextInk": "#07101F",
400
400
  "euiColorBackgroundBasePrimary": "#E8F1FF",
401
401
  "euiColorBackgroundBaseAccent": "#FFEBF5",
402
402
  "euiColorBackgroundBaseAccentSecondary": "#E2F9F7",
@@ -355,8 +355,6 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_light.json' {
355
355
  euiColorSeverityDanger: string;
356
356
  euiColorChartLines: string;
357
357
  euiColorChartBand: string;
358
- euiColorGhost: string;
359
- euiColorInk: string;
360
358
  euiColorPrimary: string;
361
359
  euiColorAccent: string;
362
360
  euiColorAccentSecondary: string;
@@ -398,6 +396,8 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_light.json' {
398
396
  euiColorTextSubdued: string;
399
397
  euiColorTextDisabled: string;
400
398
  euiColorTextInverse: string;
399
+ euiColorTextGhost: string;
400
+ euiColorTextInk: string;
401
401
  euiColorBackgroundBasePrimary: string;
402
402
  euiColorBackgroundBaseAccent: string;
403
403
  euiColorBackgroundBaseAccentSecondary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/eui-theme-borealis",
3
- "version": "5.4.0",
3
+ "version": "6.0.0",
4
4
  "description": "A visual theme for EUI",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "directory": "packages/eui-theme-borealis"
27
27
  },
28
28
  "dependencies": {
29
- "@elastic/eui-theme-common": "7.3.0",
29
+ "@elastic/eui-theme-common": "8.0.0",
30
30
  "chroma-js": "^2.4.2"
31
31
  },
32
32
  "devDependencies": {
@@ -35,7 +35,7 @@
35
35
  "@babel/preset-env": "^7.21.5",
36
36
  "@babel/preset-react": "^7.18.6",
37
37
  "@babel/preset-typescript": "^7.21.5",
38
- "@elastic/eui-theme-common": "7.3.0",
38
+ "@elastic/eui-theme-common": "8.0.0",
39
39
  "@types/chroma-js": "^2.4.0",
40
40
  "@types/jest": "^29.5.12",
41
41
  "@types/prettier": "2.7.3",
@@ -11,7 +11,7 @@ $euiButtonTypes: (
11
11
  warning: $euiColorBackgroundFilledWarning,
12
12
  risk: $euiColorBackgroundFilledRisk,
13
13
  danger: $euiColorBackgroundFilledDanger,
14
- ghost: $euiColorGhost, // Ghost is special, and does not care about theming.
14
+ ghost: $euiColorPlainLight, // Ghost is color-mode-invariant
15
15
  text: $euiColorBackgroundFilledText, // Reserved for special use cases
16
16
  ) !default;
17
17
 
@@ -1,5 +1,5 @@
1
1
  // Shadows
2
- $euiShadowColor: $euiColorInk !default;
2
+ $euiShadowColor: $euiColorPlainDark !default;
3
3
 
4
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
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);
@@ -5,10 +5,6 @@
5
5
 
6
6
  @import 'semantic_colors';
7
7
 
8
- // Constants (legacy)
9
- $euiColorGhost: $euiColorWhite !default;
10
- $euiColorInk: $euiColorBlack !default;
11
-
12
8
  // Brand
13
9
  $euiColorPrimary: $euiColorPrimary60 !default;
14
10
  $euiColorAccent: $euiColorAccent60 !default;
@@ -5,11 +5,6 @@
5
5
 
6
6
  @import 'semantic_colors';
7
7
 
8
- // These colors stay the same no matter the theme
9
- // @deprecated
10
- $euiColorGhost: $euiColorWhite !default;
11
- $euiColorInk: $euiColorBlack !default;
12
-
13
8
  // Brand
14
9
  $euiColorPrimary: $euiColorPrimary90 !default;
15
10
  $euiColorAccent: $euiColorAccent90 !default;