-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Visual Refresh] Update vis colors and palettes (#8112)
- Loading branch information
Showing
64 changed files
with
2,294 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
packages/eui-theme-borealis/src/variables/colors/_colors_vis.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// Visualization colors | ||
// stylelint-disable color-no-hex | ||
|
||
// Maps allow for easier JSON usage | ||
// Use map_merge($euiColorVisColors, $yourMap) to change individual colors after importing ths file | ||
// The `behindText` variant is a direct copy of the hex output by the JS euiPaletteColorBlindBehindText() function | ||
$euiPaletteColorBlind: ( | ||
euiColorVis0: ( | ||
graphic: #00BEB8, | ||
behindText: #00BEB8, | ||
), | ||
euiColorVis1: ( | ||
graphic: #93E5E0, | ||
behindText: #93E5E0, | ||
), | ||
euiColorVis2: ( | ||
graphic: #599DFF, | ||
behindText: #599DFF, | ||
), | ||
euiColorVis3: ( | ||
graphic: #B4D5FF, | ||
behindText: #B4D5FF, | ||
), | ||
euiColorVis4: ( | ||
graphic: #ED6BA2, | ||
behindText: #ED6BA2, | ||
), | ||
euiColorVis5: ( | ||
graphic: #FFBED5, | ||
behindText: #FFBED5, | ||
), | ||
euiColorVis6: ( | ||
graphic: #F66D64, | ||
behindText: #F66D64, | ||
), | ||
euiColorVis7: ( | ||
graphic: #FFC0B8, | ||
behindText: #FFC0B8, | ||
), | ||
euiColorVis8: ( | ||
graphic: #ED9E00, | ||
behindText: #ED9E00, | ||
), | ||
euiColorVis9: ( | ||
graphic: #FFD569, | ||
behindText: #FFD569, | ||
) | ||
) !default; | ||
|
||
$euiPaletteColorBlindKeys: map-keys($euiPaletteColorBlind); | ||
|
||
$euiColorVis0: map-get(map-get($euiPaletteColorBlind, 'euiColorVis0'), 'graphic') !default; | ||
$euiColorVis1: map-get(map-get($euiPaletteColorBlind, 'euiColorVis1'), 'graphic') !default; | ||
$euiColorVis2: map-get(map-get($euiPaletteColorBlind, 'euiColorVis2'), 'graphic') !default; | ||
$euiColorVis3: map-get(map-get($euiPaletteColorBlind, 'euiColorVis3'), 'graphic') !default; | ||
$euiColorVis4: map-get(map-get($euiPaletteColorBlind, 'euiColorVis4'), 'graphic') !default; | ||
$euiColorVis5: map-get(map-get($euiPaletteColorBlind, 'euiColorVis5'), 'graphic') !default; | ||
$euiColorVis6: map-get(map-get($euiPaletteColorBlind, 'euiColorVis6'), 'graphic') !default; | ||
$euiColorVis7: map-get(map-get($euiPaletteColorBlind, 'euiColorVis7'), 'graphic') !default; | ||
$euiColorVis8: map-get(map-get($euiPaletteColorBlind, 'euiColorVis8'), 'graphic') !default; | ||
$euiColorVis9: map-get(map-get($euiPaletteColorBlind, 'euiColorVis9'), 'graphic') !default; | ||
|
||
$euiColorVis0_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis0'), 'behindText') !default; | ||
$euiColorVis1_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis1'), 'behindText') !default; | ||
$euiColorVis2_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis2'), 'behindText') !default; | ||
$euiColorVis3_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis3'), 'behindText') !default; | ||
$euiColorVis4_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis4'), 'behindText') !default; | ||
$euiColorVis5_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis5'), 'behindText') !default; | ||
$euiColorVis6_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis6'), 'behindText') !default; | ||
$euiColorVis7_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis7'), 'behindText') !default; | ||
$euiColorVis8_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis8'), 'behindText') !default; | ||
$euiColorVis9_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis9'), 'behindText') !default; |
101 changes: 101 additions & 0 deletions
101
packages/eui-theme-borealis/src/variables/colors/_colors_vis.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { _EuiThemeVisColors } from '@elastic/eui-theme-common'; | ||
|
||
import { SEMANTIC_COLORS } from './_semantic_colors'; | ||
import { PRIMITIVE_COLORS } from './_primitive_colors'; | ||
|
||
// Maps allow for easier JSON usage | ||
// Use map_merge(euiColorVisColors, $yourMap) to change individual colors after importing ths file | ||
// The `behindText` variant is a direct copy of the hex output by the JS euiPaletteColorBlindBehindText() function | ||
const euiPaletteColorBlind = { | ||
euiColorVis0: { | ||
graphic: SEMANTIC_COLORS.accentSecondary60, | ||
}, | ||
euiColorVis1: { | ||
graphic: SEMANTIC_COLORS.accentSecondary30, | ||
}, | ||
euiColorVis2: { | ||
graphic: SEMANTIC_COLORS.primary60, | ||
}, | ||
euiColorVis3: { | ||
graphic: SEMANTIC_COLORS.primary30, | ||
}, | ||
euiColorVis4: { | ||
graphic: SEMANTIC_COLORS.accent60, | ||
}, | ||
euiColorVis5: { | ||
graphic: SEMANTIC_COLORS.accent30, | ||
}, | ||
euiColorVis6: { | ||
graphic: SEMANTIC_COLORS.danger60, | ||
}, | ||
euiColorVis7: { | ||
graphic: SEMANTIC_COLORS.danger30, | ||
}, | ||
euiColorVis8: { | ||
graphic: SEMANTIC_COLORS.warning60, | ||
}, | ||
euiColorVis9: { | ||
graphic: SEMANTIC_COLORS.warning30, | ||
}, | ||
}; | ||
|
||
export const colorVis: _EuiThemeVisColors = { | ||
euiColorVis0: euiPaletteColorBlind.euiColorVis0.graphic, | ||
euiColorVis1: euiPaletteColorBlind.euiColorVis1.graphic, | ||
euiColorVis2: euiPaletteColorBlind.euiColorVis2.graphic, | ||
euiColorVis3: euiPaletteColorBlind.euiColorVis3.graphic, | ||
euiColorVis4: euiPaletteColorBlind.euiColorVis4.graphic, | ||
euiColorVis5: euiPaletteColorBlind.euiColorVis5.graphic, | ||
euiColorVis6: euiPaletteColorBlind.euiColorVis6.graphic, | ||
euiColorVis7: euiPaletteColorBlind.euiColorVis7.graphic, | ||
euiColorVis8: euiPaletteColorBlind.euiColorVis8.graphic, | ||
euiColorVis9: euiPaletteColorBlind.euiColorVis9.graphic, | ||
|
||
euiColorVisAsTextLight0: SEMANTIC_COLORS.accentSecondary100, | ||
euiColorVisAsTextLight1: SEMANTIC_COLORS.primary100, | ||
euiColorVisAsTextLight2: SEMANTIC_COLORS.accent100, | ||
euiColorVisAsTextLight3: SEMANTIC_COLORS.danger100, | ||
euiColorVisAsTextLight4: SEMANTIC_COLORS.warning100, | ||
euiColorVisAsTextLight5: SEMANTIC_COLORS.success100, | ||
euiColorVisAsTextLight6: SEMANTIC_COLORS.assistance100, | ||
|
||
euiColorVisAsTextDark0: SEMANTIC_COLORS.accentSecondary60, | ||
euiColorVisAsTextDark1: SEMANTIC_COLORS.primary60, | ||
euiColorVisAsTextDark2: SEMANTIC_COLORS.accent60, | ||
euiColorVisAsTextDark3: SEMANTIC_COLORS.danger60, | ||
euiColorVisAsTextDark4: SEMANTIC_COLORS.warning60, | ||
euiColorVisAsTextDark5: SEMANTIC_COLORS.success60, | ||
euiColorVisAsTextDark6: SEMANTIC_COLORS.assistance60, | ||
|
||
euiColorVisSuccess0: SEMANTIC_COLORS.success60, | ||
euiColorVisSuccess1: SEMANTIC_COLORS.success30, | ||
euiColorVisWarning0: SEMANTIC_COLORS.warning30, | ||
euiColorVisDanger0: SEMANTIC_COLORS.danger60, | ||
euiColorVisDanger1: SEMANTIC_COLORS.danger30, | ||
|
||
euiColorVisNeutral0: PRIMITIVE_COLORS.mutedGrey10, | ||
|
||
euiColorVisGrey0: PRIMITIVE_COLORS.blueGrey30, | ||
euiColorVisGrey1: PRIMITIVE_COLORS.blueGrey60, | ||
euiColorVisGrey2: PRIMITIVE_COLORS.blueGrey90, | ||
euiColorVisGrey3: PRIMITIVE_COLORS.blueGrey130, | ||
|
||
euiColorVisWarm0: SEMANTIC_COLORS.danger10, | ||
euiColorVisWarm1: SEMANTIC_COLORS.danger40, | ||
euiColorVisWarm2: SEMANTIC_COLORS.danger60, | ||
|
||
euiColorVisCool0: SEMANTIC_COLORS.primary10, | ||
euiColorVisCool1: SEMANTIC_COLORS.primary40, | ||
euiColorVisCool2: SEMANTIC_COLORS.primary60, | ||
|
||
euiColorVisComplementary0: SEMANTIC_COLORS.primary60, | ||
euiColorVisComplementary1: SEMANTIC_COLORS.warning60, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.