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
SectionBaseStateAdvancedUsage
Background141611For external use, but with caution.
Text1296For external use, but with caution.
Icon894For external use, but with caution.
Stroke12105For external use, but with caution.
Decorative0030For advanced custom decorative needs.
Component18194For internal use only.

Tips

  • Hover over the value of a token in the tables below to see its Eufemia Foundation name.
  • You can also filter tokens by type using the filter buttons above the tables.
  • 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.

Show background token types
TokenDNBSbankenCarnegie
Baseaction--token-color-background-action
Baseaction-alternative--token-color-background-action-alternative
Baseaction-inverse--token-color-background-action-inverse
Baseerror--token-color-background-error
Baseinfo--token-color-background-info
Basemarketing--token-color-background-marketing
Baseneutral--token-color-background-neutral
Baseneutral-alternative--token-color-background-neutral-alternative
Baseneutral-base--token-color-background-neutral-base
Baseneutral-bold--token-color-background-neutral-bold
Basepage-background--token-color-background-page-background
Basepositive--token-color-background-positive
Baseselected--token-color-background-selected
Basewarning--token-color-background-warning
Stateaction-alternative-hover-subtle--token-color-background-action-alternative-hover-subtle
Stateaction-disabled--token-color-background-action-disabled
Stateaction-disabled-ondark--token-color-background-action-disabled-ondark
Stateaction-focus--token-color-background-action-focus
Stateaction-focus-subtle--token-color-background-action-focus-subtle
Stateaction-hover--token-color-background-action-hover
Stateaction-hover-inverse--token-color-background-action-hover-inverse
Stateaction-hover-ondark--token-color-background-action-hover-ondark
Stateaction-hover-subtle--token-color-background-action-hover-subtle
Stateaction-hover-subtle-inverse--token-color-background-action-hover-subtle-inverse
Stateaction-hover-subtle-ondark--token-color-background-action-hover-subtle-ondark
Stateaction-pressed--token-color-background-action-pressed
Stateaction-pressed-ondark--token-color-background-action-pressed-ondark
Stateaction-pressed-subtle--token-color-background-action-pressed-subtle
Stateaction-pressed-subtle-inverse--token-color-background-action-pressed-subtle-inverse
Stateaction-pressed-subtle-ondark--token-color-background-action-pressed-subtle-ondark
Advancedaction-ondark--token-color-background-action-ondark
Advancederror-subtle--token-color-background-error-subtle
Advancedinfo-subtle--token-color-background-info-subtle
Advancedmarketing-subtle--token-color-background-marketing-subtle
Advancedneutral-static--token-color-background-neutral-static
Advancedneutral-subtle--token-color-background-neutral-subtle
Advancedpositive-subtle--token-color-background-positive-subtle
Advancedselected-ondark--token-color-background-selected-ondark
Advancedselected-subtle--token-color-background-selected-subtle
Advancedselected-subtle-ondark--token-color-background-selected-subtle-ondark
Advancedwarning-subtle--token-color-background-warning-subtle

Text

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

Show text token types
TokenDNBSbankenCarnegie
Baseaction--token-color-text-action
Baseaction-inverse--token-color-text-action-inverse
Basedestructive--token-color-text-destructive
Basedestructive-inverse--token-color-text-destructive-inverse
Baseneutral--token-color-text-neutral
Baseneutral-alternative--token-color-text-neutral-alternative
Baseneutral-inverse--token-color-text-neutral-inverse
Basepositive--token-color-text-positive
Basepositive-inverse--token-color-text-positive-inverse
Baseselected--token-color-text-selected
Basewarning--token-color-text-warning
Basewarning-inverse--token-color-text-warning-inverse
Stateaction-disabled--token-color-text-action-disabled
Stateaction-disabled-ondark--token-color-text-action-disabled-ondark
Stateaction-focus--token-color-text-action-focus
Stateaction-hover--token-color-text-action-hover
Stateaction-hover-inverse--token-color-text-action-hover-inverse
Stateaction-hover-ondark--token-color-text-action-hover-ondark
Stateaction-pressed--token-color-text-action-pressed
Stateaction-pressed-inverse--token-color-text-action-pressed-inverse
Stateaction-pressed-ondark--token-color-text-action-pressed-ondark
Advancedaction-alternative-ondark--token-color-text-action-alternative-ondark
Advancedaction-ondark--token-color-text-action-ondark
Advancedneutral-ondark--token-color-text-neutral-ondark
Advancedneutral-onlight--token-color-text-neutral-onlight
Advancedneutral-subtle--token-color-text-neutral-subtle
Advancedneutral-subtle-ondark--token-color-text-neutral-subtle-ondark

Icon

Icon tokens are used for icon colors.

Show icon token types
TokenDNBSbankenCarnegie
Baseaction--token-color-icon-action
Baseaction-inverse--token-color-icon-action-inverse
Basedestructive--token-color-icon-destructive
Basemarketing--token-color-icon-marketing
Baseneutral--token-color-icon-neutral
Baseneutral-alternative--token-color-icon-neutral-alternative
Baseneutral-inverse--token-color-icon-neutral-inverse
Baseselected--token-color-icon-selected
Stateaction-disabled--token-color-icon-action-disabled
Stateaction-disabled-ondark--token-color-icon-action-disabled-ondark
Stateaction-focus--token-color-icon-action-focus
Stateaction-hover--token-color-icon-action-hover
Stateaction-hover-inverse--token-color-icon-action-hover-inverse
Stateaction-hover-ondark--token-color-icon-action-hover-ondark
Stateaction-pressed--token-color-icon-action-pressed
Stateaction-pressed-inverse--token-color-icon-action-pressed-inverse
Stateaction-pressed-ondark--token-color-icon-action-pressed-ondark
Advancedaction-alternative-ondark--token-color-icon-action-alternative-ondark
Advancedaction-ondark--token-color-icon-action-ondark
Advancedneutral-ondark--token-color-icon-neutral-ondark
Advancedselected-ondark--token-color-icon-selected-ondark

Stroke

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

Show stroke token types
TokenDNBSbankenCarnegie
Baseaction--token-color-stroke-action
Baseaction-alternative--token-color-stroke-action-alternative
Baseaction-inverse--token-color-stroke-action-inverse
Baseerror--token-color-stroke-error
Baseinfo--token-color-stroke-info
Basemarketing--token-color-stroke-marketing
Baseneutral--token-color-stroke-neutral
Baseneutral-alternative--token-color-stroke-neutral-alternative
Baseneutral-bold--token-color-stroke-neutral-bold
Basepositive--token-color-stroke-positive
Baseselected--token-color-stroke-selected
Basewarning--token-color-stroke-warning
Stateaction-disabled--token-color-stroke-action-disabled
Stateaction-disabled-ondark--token-color-stroke-action-disabled-ondark
Stateaction-focus--token-color-stroke-action-focus
Stateaction-focus-subtle--token-color-stroke-action-focus-subtle
Stateaction-hover--token-color-stroke-action-hover
Stateaction-hover-inverse--token-color-stroke-action-hover-inverse
Stateaction-hover-ondark--token-color-stroke-action-hover-ondark
Stateaction-pressed--token-color-stroke-action-pressed
Stateaction-pressed-inverse--token-color-stroke-action-pressed-inverse
Stateaction-pressed-ondark--token-color-stroke-action-pressed-ondark
Advancedaction-alternative-ondark--token-color-stroke-action-alternative-ondark
Advancedaction-ondark--token-color-stroke-action-ondark
Advancedneutral-ondark--token-color-stroke-neutral-ondark
Advancedneutral-subtle--token-color-stroke-neutral-subtle
Advancedselected-ondark--token-color-stroke-selected-ondark

Decorative

Decorative tokens are colors to use for advanced custom decorative needs where the semantic color tokens are not the right fit.

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
TokenDNBSbankenCarnegie
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.

Show component token types
TokenDNBSbankenCarnegie
buttonBase--token-color-component-button-background-action
buttonBase--token-color-component-button-background-action-destructive
buttonState--token-color-component-button-background-action-destructive-hover
buttonState--token-color-component-button-background-action-destructive-hover-subtle
buttonState--token-color-component-button-background-action-destructive-pressed
buttonState--token-color-component-button-background-action-destructive-pressed-subtle
buttonState--token-color-component-button-background-action-hover
buttonBase--token-color-component-button-icon-action
buttonBase--token-color-component-button-icon-action-destructive
buttonState--token-color-component-button-icon-action-destructive-hover
buttonState--token-color-component-button-icon-action-destructive-pressed
buttonState--token-color-component-button-icon-action-disabled
buttonState--token-color-component-button-icon-action-hover
buttonBase--token-color-component-button-icon-neutral
buttonBase--token-color-component-button-icon-neutral-destructive
buttonAdvanced--token-color-component-button-icon-neutral-ondark
buttonBase--token-color-component-button-stroke-action
buttonBase--token-color-component-button-stroke-action-destructive
buttonState--token-color-component-button-stroke-action-destructive-hover
buttonState--token-color-component-button-stroke-action-destructive-pressed
buttonState--token-color-component-button-stroke-action-hover
buttonBase--token-color-component-button-stroke-selected
buttonBase--token-color-component-button-text-action
buttonBase--token-color-component-button-text-action-destructive
buttonState--token-color-component-button-text-action-destructive-hover
buttonState--token-color-component-button-text-action-destructive-pressed
buttonState--token-color-component-button-text-action-disabled
buttonState--token-color-component-button-text-action-hover
buttonState--token-color-component-button-text-action-hover-inverse
buttonState--token-color-component-button-text-action-hover-ondark
buttonBase--token-color-component-button-text-action-inverse
buttonAdvanced--token-color-component-button-text-action-ondark
buttonBase--token-color-component-button-text-neutral
buttonBase--token-color-component-button-text-neutral-destructive
buttonBase--token-color-component-button-text-neutral-inverse
buttonAdvanced--token-color-component-button-text-neutral-ondark
dimmerBase--token-color-component-dimmer-background
progressbarAdvanced--token-color-component-progressbar-neutral-onsubtle
switchState--token-color-component-switch-action-disabled-ondark
tableBase--token-color-component-table-background-neutral-alternative
tooltipBase--token-color-component-tooltip-background-neutral