Tokens are a method of applying color in a consistent, reusable, and scalable
way. They are used in place of hard coded values, like hex codes.
Core tokens are global colors that are used across components. They are named
and grouped by the common UI element that they are applied to.
| Token | Role | Value |
|---|
$background | - Default page background;
- UI Shell base color
| |
$layer-background-01 | - Default page background;
- Automatically matches contextual layer background
| |
$background-hover | - Hover color for $background;
- Hover color for transparent backgrounds
| - Gray 50, 12%
- —
- #8d8d8d @ 12%
|
$background-active | - Active color for $background
| - Gray 50, 50%
- —
- #8d8d8d @ 50%
|
$background-selected | - Selected color for $background
| - Gray 50, 20%
- —
- #8d8d8d @ 20%
|
$background-selected-hover | - Hover color for $background-selected
| - Gray 50, 32%
- —
- #8d8d8d @ 32%
|
$background-inverse | - High contrast backgrounds;
- High contrast elements
| |
$background-inverse-hover | - Hover color for $background-inverse
| |
$background-brand | | |
| Token | Role | Value |
|---|
$layer-01 | - Container color on $background;
- Secondary page background
| |
$layer-02 | - Container color on $layer-01
| |
$layer-03 | - Container color on $layer-02
| |
$layer-background-02 | - Container color on $layer-background-01;
- Automatically matches contextual layer background
| |
$layer-background-03 | - Container color on $layer-background-02;
- Automatically matches contextual layer background
| |
$layer-hover-01 | - Hover color for $layer-01
| |
$layer-hover-02 | - Hover color for $layer-02
| |
$layer-hover-03 | - Hover color for $layer-03
| |
$layer-active-01 | - Active color for $layer-01
| |
$layer-active-02 | - Active color for $layer-02
| |
$layer-active-03 | - Active color for $layer-03
| |
$layer-selected-01 | - Selected color for $layer-01
| |
$layer-selected-02 | - Selected color for $layer-02
| |
$layer-selected-03 | - Selected color for $layer-03
| |
$layer-selected-hover-01 | - Hover color for $layer-selected-01
| |
$layer-selected-hover-02 | - Hover color for $layer-selected-02
| |
$layer-selected-hover-03 | - Hover color for $layer-selected-03
| |
$layer-selected-inverse | - High contrast elements;
- 4.5:1 AA element contrast
| |
$layer-selected-disabled | - Disabled color for selected layers
| |
| Token | Role | Value |
|---|
$layer-accent-01 | - Tertiary background paired with $layer-01
| |
$layer-accent-02 | - Tertiary background paired with $layer-02
| |
$layer-accent-03 | - Tertiary background paired with $layer-03
| |
$layer-accent-hover-01 | - Hover color for $layer-accent-01
| |
$layer-accent-hover-02 | - Hover color for $layer-accent-02
| |
$layer-accent-hover-03 | - Hover color for $layer-accent-03
| |
$layer-accent-active-01 | - Active color for $layer-accent-01
| |
$layer-accent-active-02 | - Active color for $layer-accent-02
| |
$layer-accent-active-03 | - Active color for $layer-accent-03
| |
| Token | Role | Value |
|---|
$field-01 | - Default input fields;
- Fields on $background
| |
$field-02 | - Secondary input fields;
- Fields on $layer-01
| |
$field-03 | - Tertiary input fields;
- Fields on $layer-02
| |
$field-hover-01 | - Hover color for $field-01
| |
$field-hover-02 | - Hover color for $field-02
| |
$field-hover-03 | - Hover color for $field-03
| |
| Token | Role | Value |
|---|
$border-interactive | - 3:1 AA contrast;
- Selected borders;
- Active borders
| |
$border-subtle-00 | - Subtle borders paired with $background
| |
$border-subtle-01 | - Subtle borders paired with $layer-01
| |
$border-subtle-02 | - Subtle borders paired with $layer-02
| |
$border-subtle-03 | - Subtle borders paired with $layer-03
| |
$border-subtle-selected-01 | - Selected color for $border-subtle-01
| |
$border-subtle-selected-02 | - Selected color for $border-subtle-02
| |
$border-subtle-selected-03 | - Selected color for $border-subtle-03
| |
$border-strong-01 | - Medium contrast border;
- Border-bottom paired with $field-01;
- 3:1 AA non-text contrast
| |
$border-strong-02 | - Medium contrast border;
- Border-bottom paired with $field-02;
- 3:1 AA non-text contrast
| |
$border-strong-03 | - Medium contrast border;
- Border-bottom paired with $field-03;
- 3:1 AA non-text contrast
| |
$border-tile-01 | - Operable tile indicator paired with $layer-01
| |
$border-tile-02 | - Operable tile indicator paired with $layer-02
| |
$border-tile-03 | - Operable tile indicator paired with $layer-03
| |
$border-inverse | - High contrast border;
- 4.5:1 AA non-text contrast
| |
$border-disabled | - Disabled border color (excluding border-subtles)
| |
| Token | Role | Value |
|---|
$text-primary | - Primary text;
- Body copy;
- Headers;
- Hover text color for $text-secondary
| |
$text-secondary | - Secondary text;
- Input labels
| |
$text-placeholder | | |
$text-on-color | - Text on interactive colors;
- Text on button colors
| |
$text-on-color-disabled | - Disabled color for $text-on-color
| |
$text-helper | | |
$text-error | | |
$text-inverse | | |
$text-disabled | | - Gray 100 – 25%
- —
- #161616 – 25%
|
| Token | Role | Value |
|---|
$link-primary | | |
$link-primary-hover | - Hover color for $link-primary
| |
$link-secondary | - Secondary link color for lower contrast backgrounds
| |
$link-inverse | - Links on $background-inverse backgrounds
| |
$link-inverse-hover | - Hover color for links on $background-inverse backgrounds
| |
$link-inverse-active | - Active color for links on $background-inverse backgrounds
| |
$link-inverse-visited | - Color for visited links on $background-inverse backgrounds
| |
$link-visited | | |
| Token | Role | Value |
|---|
$syntax-comment | | |
$syntax-line-comment | | |
$syntax-block-comment | | |
$syntax-doc-comment | | |
$syntax-doc-string | | |
$syntax-keyword | | |
$syntax-operator-keyword | | |
$syntax-control-keyword | | |
$syntax-definition-keyword | | |
$syntax-module-keyword | | |
$syntax-variable | | |
$syntax-name | | |
$syntax-variable-name | | |
$syntax-label-name | | |
$syntax-attribute | | |
$syntax-attribute-name | | |
$syntax-property-name | | |
$syntax-tag | | |
$syntax-tag-name | | |
$syntax-type | | |
$syntax-type-name | | |
$syntax-class-name | | |
$syntax-namespace | | |
$syntax-macro-name | | |
$syntax-atom | | |
$syntax-literal | | |
$syntax-bool | | |
$syntax-null | | |
$syntax-self | | |
$syntax-number | | |
$syntax-integer | | |
$syntax-float | | |
$syntax-unit | | |
$syntax-string | | |
$syntax-character | | |
$syntax-attribute-value | | |
$syntax-special-string | | |
$syntax-regexp | | |
$syntax-escape | | |
$syntax-url | | |
$syntax-color | | |
$syntax-operator | | |
$syntax-deref-operator | | |
$syntax-arithmetic-operator | | |
$syntax-logic-operator | | |
$syntax-bitwise-operator | | |
$syntax-compare-operator | | |
$syntax-update-operator | | |
$syntax-definition-operator | | |
$syntax-type-operator | | |
$syntax-control-operator | | |
$syntax-modifier | | |
$syntax-punctuation | | |
$syntax-separator | | |
$syntax-bracket | | |
$syntax-angle-bracket | | |
$syntax-square-bracket | | |
$syntax-paren | | |
$syntax-brace | | |
$syntax-content | | |
$syntax-list | | |
$syntax-emphasis | | |
$syntax-strong | | |
$syntax-monospace | | |
$syntax-strikethrough | | |
$syntax-heading | | |
$syntax-heading-1 | | |
$syntax-heading-2 | | |
$syntax-heading-3 | | |
$syntax-heading-4 | | |
$syntax-heading-5 | | |
$syntax-heading-6 | | |
$syntax-content-separator | | |
$syntax-quote | | |