Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export const BackgroundColorsTable = () => {
value: euiTheme.colors.backgroundBaseAccentSecondary,
token: 'colors.backgroundBaseAccentSecondary',
},
{
value: euiTheme.colors.backgroundBaseNeutral,
token: 'colors.backgroundBaseNeutral',
},
{
value: euiTheme.colors.backgroundBaseSuccess,
token: 'colors.backgroundBaseSuccess',
Expand All @@ -28,6 +32,10 @@ export const BackgroundColorsTable = () => {
value: euiTheme.colors.backgroundBaseWarning,
token: 'colors.backgroundBaseWarning',
},
{
value: euiTheme.colors.backgroundBaseRisk,
token: 'colors.backgroundBaseRisk',
},
{
value: euiTheme.colors.backgroundBaseDanger,
token: 'colors.backgroundBaseDanger',
Expand Down Expand Up @@ -88,6 +96,10 @@ export const BackgroundColorsTable = () => {
value: euiTheme.colors.backgroundLightAccentSecondary,
token: 'colors.backgroundLightAccentSecondary',
},
{
value: euiTheme.colors.backgroundLightNeutral,
token: 'colors.backgroundLightNeutral',
},
{
value: euiTheme.colors.backgroundLightSuccess,
token: 'colors.backgroundLightSuccess',
Expand All @@ -96,6 +108,10 @@ export const BackgroundColorsTable = () => {
value: euiTheme.colors.backgroundLightWarning,
token: 'colors.backgroundLightWarning',
},
{
value: euiTheme.colors.backgroundLightRisk,
token: 'colors.backgroundLightRisk',
},
{
value: euiTheme.colors.backgroundLightDanger,
token: 'colors.backgroundLightDanger',
Expand All @@ -116,6 +132,10 @@ export const BackgroundColorsTable = () => {
value: euiTheme.colors.backgroundFilledAccentSecondary,
token: 'colors.backgroundFilledAccentSecondary',
},
{
value: euiTheme.colors.backgroundFilledNeutral,
token: 'colors.backgroundFilledNeutral',
},
{
value: euiTheme.colors.backgroundFilledSuccess,
token: 'colors.backgroundFilledSuccess',
Expand All @@ -124,6 +144,10 @@ export const BackgroundColorsTable = () => {
value: euiTheme.colors.backgroundFilledWarning,
token: 'colors.backgroundFilledWarning',
},
{
value: euiTheme.colors.backgroundFilledRisk,
token: 'colors.backgroundFilledRisk',
},
{
value: euiTheme.colors.backgroundFilledDanger,
token: 'colors.backgroundFilledDanger',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export const BorderColorsTable = () => {
value: euiTheme.colors.borderBaseAccentSecondary,
token: 'colors.borderBaseAccentSecondary',
},
{
value: euiTheme.colors.borderBaseNeutral,
token: 'colors.borderBaseNeutral',
},
{
value: euiTheme.colors.borderBaseSuccess,
token: 'colors.borderBaseSuccess',
Expand All @@ -32,6 +36,10 @@ export const BorderColorsTable = () => {
value: euiTheme.colors.borderBaseWarning,
token: 'colors.borderBaseWarning',
},
{
value: euiTheme.colors.borderBaseRisk,
token: 'colors.borderBaseRisk',
},
{
value: euiTheme.colors.borderBaseDanger,
token: 'colors.borderBaseDanger',
Expand Down Expand Up @@ -72,6 +80,10 @@ export const BorderColorsTable = () => {
value: euiTheme.colors.borderStrongAccentSecondary,
token: 'colors.borderStrongAccentSecondary',
},
{
value: euiTheme.colors.borderStrongNeutral,
token: 'colors.borderStrongNeutral',
},
{
value: euiTheme.colors.borderStrongSuccess,
token: 'colors.borderStrongSuccess',
Expand All @@ -80,6 +92,10 @@ export const BorderColorsTable = () => {
value: euiTheme.colors.borderStrongWarning,
token: 'colors.borderStrongWarning',
},
{
value: euiTheme.colors.borderStrongRisk,
token: 'colors.borderStrongRisk',
},
{
value: euiTheme.colors.borderStrongDanger,
token: 'colors.borderStrongDanger',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,14 @@ import { DataVisColorsPreview } from './data_vis_colors_preview'
import { SeverityColorsTable } from './severity_colors_table';
import { SeverityColorsPreview } from './severity_colors_preview'


<Example>
<Example.Description>
### `euiTheme.colors.severity[token]` <Badge color="hollow">token</Badge>

Severity indicates an increasing level of risk and Health describes the status of an element that would
typically be associated with positive or negative values.

More guidance is available in the [**Health and Color Pattern**](../../../../patterns/severity.mdx).
</Example.Description>
<Example.Preview>
<SeverityColorsPreview />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import { useEuiTheme } from '@elastic/eui';
import { ColorsTable } from './colors_table';

export const SeverityBackgroundColorsTable = () => {
const { euiTheme } = useEuiTheme();

return (
<ColorsTable
sampleType="swatch"
colors={[
{
value: euiTheme.colors.backgroundBaseSubdued,
token: 'colors.backgroundBaseSubdued',
},
{
value: euiTheme.colors.backgroundBaseSuccess,
token: 'colors.backgroundBaseSuccess',
},
{
value: euiTheme.colors.backgroundBaseNeutral,
token: 'colors.backgroundBaseNeutral',
},
{
value: euiTheme.colors.backgroundBaseWarning,
token: 'colors.backgroundBaseWarning',
},
{
value: euiTheme.colors.backgroundBaseRisk,
token: 'colors.backgroundBaseRisk',
},
{
value: euiTheme.colors.backgroundBaseDanger,
token: 'colors.backgroundBaseDanger',
},
{
value: euiTheme.colors.backgroundLightText,
token: 'colors.backgroundLightText',
},
{
value: euiTheme.colors.backgroundLightSuccess,
token: 'colors.backgroundLightSuccess',
},
{
value: euiTheme.colors.backgroundLightNeutral,
token: 'colors.backgroundLightNeutral',
},
{
value: euiTheme.colors.backgroundLightWarning,
token: 'colors.backgroundLightWarning',
},
{
value: euiTheme.colors.backgroundLightRisk,
token: 'colors.backgroundLightRisk',
},
{
value: euiTheme.colors.backgroundLightDanger,
token: 'colors.backgroundLightDanger',
},
{
value: euiTheme.colors.backgroundFilledText,
token: 'colors.backgroundFilledText',
},
{
value: euiTheme.colors.backgroundFilledSuccess,
token: 'colors.backgroundFilledSuccess',
},
{
value: euiTheme.colors.backgroundFilledNeutral,
token: 'colors.backgroundFilledNeutral',
},
{
value: euiTheme.colors.backgroundFilledWarning,
token: 'colors.backgroundFilledWarning',
},
{
value: euiTheme.colors.backgroundFilledRisk,
token: 'colors.backgroundFilledRisk',
},
{
value: euiTheme.colors.backgroundFilledDanger,
token: 'colors.backgroundFilledDanger',
},
]}
/>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { useEuiTheme } from '@elastic/eui';
import { ColorsTable } from './colors_table';

export const SeverityTextColorsTable = () => {
const { euiTheme } = useEuiTheme();

return (
<ColorsTable
sampleType="text"
colors={[
{
value: euiTheme.colors.textSubdued,
token: 'colors.textSubdued',
},
{
value: euiTheme.colors.textSuccess,
token: 'colors.textSuccess',
},
{
value: euiTheme.colors.textNeutral,
token: 'colors.textNeutral',
},
{
value: euiTheme.colors.textWarning,
token: 'colors.textWarning',
},
{
value: euiTheme.colors.textRisk,
token: 'colors.textRisk',
},
{
value: euiTheme.colors.textDanger,
token: 'colors.textDanger',
},
]}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export const TextColorsTable = () => {
value: euiTheme.colors.textAccentSecondary,
token: 'colors.textAccentSecondary',
},
{
value: euiTheme.colors.textNeutral,
token: 'colors.textNeutral',
},
{
value: euiTheme.colors.textSuccess,
token: 'colors.textSuccess',
Expand All @@ -44,6 +48,10 @@ export const TextColorsTable = () => {
value: euiTheme.colors.textWarning,
token: 'colors.textWarning',
},
{
value: euiTheme.colors.textRisk,
token: 'colors.textRisk',
},
{
value: euiTheme.colors.textDanger,
token: 'colors.textDanger',
Expand Down
Loading