Skip to content

Design Tokens (WIP)


NB: Do not use the --token-* CSS custom properties in your code until this page is marked as ready for consumption. The token API is still being finalized and may change without warning until then.


Overview

Show token families
SectionTokensUsage
Background41For external use. Use the filters in each section to narrow tokens to the variants you need.
Text27For external use. Use the filters in each section to narrow tokens to the variants you need.
Icon31For external use. Use the filters in each section to narrow tokens to the variants you need.
Stroke27For external use. Use the filters in each section to narrow tokens to the variants you need.
Decorative30For advanced custom decorative needs.
Component41For internal use only.

Tips

  • Hover over the value of a token in the tables below to see its Eufemia Foundation name.
  • Use the filter buttons above each table to narrow tokens by modifier (for example inverse, ondark, subtle, bold or static). Multiple modifiers combine with AND.
  • You can sort the tables by clicking the column headers. Click again to reverse the sort order.

Background

Background tokens are used for surfaces, fills and interactive fill states. Typical semantic names in this section are action, neutral, selected and page.

Filter background tokens
TokenDNB LightSbanken LightCarnegie
action--token-color-background-action
action-alternative--token-color-background-action-alternative
action-alternative-hover-subtle--token-color-background-action-alternative-hover-subtle
action-disabled--token-color-background-action-disabled
action-disabled-ondark--token-color-background-action-disabled-ondark
action-focus--token-color-background-action-focus
action-focus-subtle--token-color-background-action-focus-subtle
action-hover--token-color-background-action-hover
action-hover-inverse--token-color-background-action-hover-inverse
action-hover-ondark--token-color-background-action-hover-ondark
action-hover-subtle--token-color-background-action-hover-subtle
action-hover-subtle-inverse--token-color-background-action-hover-subtle-inverse
action-hover-subtle-ondark--token-color-background-action-hover-subtle-ondark
action-inverse--token-color-background-action-inverse
action-ondark--token-color-background-action-ondark
action-pressed--token-color-background-action-pressed
action-pressed-ondark--token-color-background-action-pressed-ondark
action-pressed-subtle--token-color-background-action-pressed-subtle
action-pressed-subtle-inverse--token-color-background-action-pressed-subtle-inverse
action-pressed-subtle-ondark--token-color-background-action-pressed-subtle-ondark
error--token-color-background-error
error-subtle--token-color-background-error-subtle
info--token-color-background-info
info-subtle--token-color-background-info-subtle
marketing--token-color-background-marketing
marketing-subtle--token-color-background-marketing-subtle
neutral--token-color-background-neutral
neutral-alternative--token-color-background-neutral-alternative
neutral-base--token-color-background-neutral-base
neutral-bold--token-color-background-neutral-bold
neutral-static--token-color-background-neutral-static
neutral-subtle--token-color-background-neutral-subtle
page-background--token-color-background-page-background
positive--token-color-background-positive
positive-subtle--token-color-background-positive-subtle
selected--token-color-background-selected
selected-ondark--token-color-background-selected-ondark
selected-subtle--token-color-background-selected-subtle
selected-subtle-ondark--token-color-background-selected-subtle-ondark
warning--token-color-background-warning
warning-subtle--token-color-background-warning-subtle

Text

Text tokens are used for readable content, labels and text states.

Filter text tokens
TokenDNB LightSbanken LightCarnegie
action--token-color-text-action
action-alternative-ondark--token-color-text-action-alternative-ondark
action-disabled--token-color-text-action-disabled
action-disabled-ondark--token-color-text-action-disabled-ondark
action-focus--token-color-text-action-focus
action-hover--token-color-text-action-hover
action-hover-inverse--token-color-text-action-hover-inverse
action-hover-ondark--token-color-text-action-hover-ondark
action-inverse--token-color-text-action-inverse
action-ondark--token-color-text-action-ondark
action-pressed--token-color-text-action-pressed
action-pressed-inverse--token-color-text-action-pressed-inverse
action-pressed-ondark--token-color-text-action-pressed-ondark
destructive--token-color-text-destructive
destructive-inverse--token-color-text-destructive-inverse
neutral--token-color-text-neutral
neutral-alternative--token-color-text-neutral-alternative
neutral-inverse--token-color-text-neutral-inverse
neutral-ondark--token-color-text-neutral-ondark
neutral-onlight--token-color-text-neutral-onlight
neutral-subtle--token-color-text-neutral-subtle
neutral-subtle-ondark--token-color-text-neutral-subtle-ondark
positive--token-color-text-positive
positive-inverse--token-color-text-positive-inverse
selected--token-color-text-selected
warning--token-color-text-warning
warning-inverse--token-color-text-warning-inverse

Icon

Icon tokens are used for icon colors.

Filter icon tokens
TokenDNB LightSbanken LightCarnegie
action--token-color-icon-action
action-alternative-ondark--token-color-icon-action-alternative-ondark
action-disabled--token-color-icon-action-disabled
action-disabled-ondark--token-color-icon-action-disabled-ondark
action-focus--token-color-icon-action-focus
action-hover--token-color-icon-action-hover
action-hover-inverse--token-color-icon-action-hover-inverse
action-hover-ondark--token-color-icon-action-hover-ondark
action-inverse--token-color-icon-action-inverse
action-ondark--token-color-icon-action-ondark
action-pressed--token-color-icon-action-pressed
action-pressed-inverse--token-color-icon-action-pressed-inverse
action-pressed-ondark--token-color-icon-action-pressed-ondark
destructive--token-color-icon-destructive
error--token-color-icon-error
error-subtle--token-color-icon-error-subtle
info--token-color-icon-info
info-subtle--token-color-icon-info-subtle
marketing--token-color-icon-marketing
marketing-subtle--token-color-icon-marketing-subtle
neutral--token-color-icon-neutral
neutral-alternative--token-color-icon-neutral-alternative
neutral-inverse--token-color-icon-neutral-inverse
neutral-ondark--token-color-icon-neutral-ondark
neutral-static--token-color-icon-neutral-static
positive--token-color-icon-positive
positive-subtle--token-color-icon-positive-subtle
selected--token-color-icon-selected
selected-ondark--token-color-icon-selected-ondark
warning--token-color-icon-warning
warning-subtle--token-color-icon-warning-subtle

Stroke

Stroke tokens are used for borders, dividers, outlines and focus-related line work.

Filter stroke tokens
TokenDNB LightSbanken LightCarnegie
action--token-color-stroke-action
action-alternative--token-color-stroke-action-alternative
action-alternative-ondark--token-color-stroke-action-alternative-ondark
action-disabled--token-color-stroke-action-disabled
action-disabled-ondark--token-color-stroke-action-disabled-ondark
action-focus--token-color-stroke-action-focus
action-focus-subtle--token-color-stroke-action-focus-subtle
action-hover--token-color-stroke-action-hover
action-hover-inverse--token-color-stroke-action-hover-inverse
action-hover-ondark--token-color-stroke-action-hover-ondark
action-inverse--token-color-stroke-action-inverse
action-ondark--token-color-stroke-action-ondark
action-pressed--token-color-stroke-action-pressed
action-pressed-inverse--token-color-stroke-action-pressed-inverse
action-pressed-ondark--token-color-stroke-action-pressed-ondark
error--token-color-stroke-error
info--token-color-stroke-info
marketing--token-color-stroke-marketing
neutral--token-color-stroke-neutral
neutral-alternative--token-color-stroke-neutral-alternative
neutral-bold--token-color-stroke-neutral-bold
neutral-ondark--token-color-stroke-neutral-ondark
neutral-subtle--token-color-stroke-neutral-subtle
positive--token-color-stroke-positive
selected--token-color-stroke-selected
selected-ondark--token-color-stroke-selected-ondark
warning--token-color-stroke-warning

Decorative

Decorative tokens are colors to use for advanced custom decorative needs where the semantic color tokens are not the right fit. They should not be used for text. For text on dark decorative backgrounds, use the ondark text tokens, and for other backgrounds, use the neutral text tokens.

If you use decorative tokens, the First, Second, and Third sets are intended to be used one at a time, because the colors inside each set are designed to match each other.

Show decorative token groups
Show decorative token variants
TokenDNB LightSbanken LightCarnegie
Firstbase--token-color-decorative-first-base
Firstbase-static--token-color-decorative-first-base-static
Firstbold--token-color-decorative-first-bold
Firstbold-static--token-color-decorative-first-bold-static
Firstintense--token-color-decorative-first-intense
Firstintense-static--token-color-decorative-first-intense-static
Firstmuted--token-color-decorative-first-muted
Firstmuted-static--token-color-decorative-first-muted-static
Firstsubtle--token-color-decorative-first-subtle
Firstsubtle-static--token-color-decorative-first-subtle-static
Secondbase--token-color-decorative-second-base
Secondbase-static--token-color-decorative-second-base-static
Secondbold--token-color-decorative-second-bold
Secondbold-static--token-color-decorative-second-bold-static
Secondintense--token-color-decorative-second-intense
Secondintense-static--token-color-decorative-second-intense-static
Secondmuted--token-color-decorative-second-muted
Secondmuted-static--token-color-decorative-second-muted-static
Secondsubtle--token-color-decorative-second-subtle
Secondsubtle-static--token-color-decorative-second-subtle-static
Thirdbase--token-color-decorative-third-base
Thirdbase-static--token-color-decorative-third-base-static
Thirdbold--token-color-decorative-third-bold
Thirdbold-static--token-color-decorative-third-bold-static
Thirdintense--token-color-decorative-third-intense
Thirdintense-static--token-color-decorative-third-intense-static
Thirdmuted--token-color-decorative-third-muted
Thirdmuted-static--token-color-decorative-third-muted-static
Thirdsubtle--token-color-decorative-third-subtle
Thirdsubtle-static--token-color-decorative-third-subtle-static

Component

NB: Do not use. These tokens are reserved for internal use only.

Component tokens are the component-specific layer. They are useful when a broad semantic token is not precise enough and the API needs a token with an explicit component role, such as button, tooltip or table.

After -component-, the next segment is the component name, followed by the role path. Example:

--token-color-component-button-background-action.

Filter component tokens
TokenDNB LightSbanken LightCarnegie
button--token-color-component-button-background-action
button--token-color-component-button-background-action-destructive
button--token-color-component-button-background-action-destructive-hover
button--token-color-component-button-background-action-destructive-hover-subtle
button--token-color-component-button-background-action-destructive-pressed
button--token-color-component-button-background-action-destructive-pressed-subtle
button--token-color-component-button-background-action-hover
button--token-color-component-button-icon-action
button--token-color-component-button-icon-action-destructive
button--token-color-component-button-icon-action-destructive-hover
button--token-color-component-button-icon-action-destructive-pressed
button--token-color-component-button-icon-action-disabled
button--token-color-component-button-icon-action-hover
button--token-color-component-button-icon-neutral
button--token-color-component-button-icon-neutral-destructive
button--token-color-component-button-icon-neutral-ondark
button--token-color-component-button-stroke-action
button--token-color-component-button-stroke-action-destructive
button--token-color-component-button-stroke-action-destructive-hover
button--token-color-component-button-stroke-action-destructive-pressed
button--token-color-component-button-stroke-action-hover
button--token-color-component-button-stroke-selected
button--token-color-component-button-text-action
button--token-color-component-button-text-action-destructive
button--token-color-component-button-text-action-destructive-hover
button--token-color-component-button-text-action-destructive-pressed
button--token-color-component-button-text-action-disabled
button--token-color-component-button-text-action-hover
button--token-color-component-button-text-action-hover-inverse
button--token-color-component-button-text-action-hover-ondark
button--token-color-component-button-text-action-inverse
button--token-color-component-button-text-action-ondark
button--token-color-component-button-text-neutral
button--token-color-component-button-text-neutral-destructive
button--token-color-component-button-text-neutral-inverse
button--token-color-component-button-text-neutral-ondark
dimmer--token-color-component-dimmer-background
progressbar--token-color-component-progressbar-neutral-onsubtle
switch--token-color-component-switch-action-disabled-ondark
table--token-color-component-table-background-neutral-alternative
tooltip--token-color-component-tooltip-background-neutral