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
| Section | Base | State | Advanced | Usage |
|---|---|---|---|---|
| Background | 14 | 16 | 11 | For external use, but with caution. |
| Text | 12 | 9 | 6 | For external use, but with caution. |
| Icon | 8 | 9 | 4 | For external use, but with caution. |
| Stroke | 12 | 10 | 5 | For external use, but with caution. |
| Decorative | 0 | 0 | 30 | For advanced custom decorative needs. |
| Component | 18 | 19 | 4 | For 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.
| Token | DNB | Sbanken | Carnegie | ||
|---|---|---|---|---|---|
| Base | action | --token-color-background-action | |||
| Base | action-alternative | --token-color-background-action-alternative | |||
| Base | action-inverse | --token-color-background-action-inverse | |||
| Base | error | --token-color-background-error | |||
| Base | info | --token-color-background-info | |||
| Base | marketing | --token-color-background-marketing | |||
| Base | neutral | --token-color-background-neutral | |||
| Base | neutral-alternative | --token-color-background-neutral-alternative | |||
| Base | neutral-base | --token-color-background-neutral-base | |||
| Base | neutral-bold | --token-color-background-neutral-bold | |||
| Base | page-background | --token-color-background-page-background | |||
| Base | positive | --token-color-background-positive | |||
| Base | selected | --token-color-background-selected | |||
| Base | warning | --token-color-background-warning | |||
| State | action-alternative-hover-subtle | --token-color-background-action-alternative-hover-subtle | |||
| State | action-disabled | --token-color-background-action-disabled | |||
| State | action-disabled-ondark | --token-color-background-action-disabled-ondark | |||
| State | action-focus | --token-color-background-action-focus | |||
| State | action-focus-subtle | --token-color-background-action-focus-subtle | |||
| State | action-hover | --token-color-background-action-hover | |||
| State | action-hover-inverse | --token-color-background-action-hover-inverse | |||
| State | action-hover-ondark | --token-color-background-action-hover-ondark | |||
| State | action-hover-subtle | --token-color-background-action-hover-subtle | |||
| State | action-hover-subtle-inverse | --token-color-background-action-hover-subtle-inverse | |||
| State | action-hover-subtle-ondark | --token-color-background-action-hover-subtle-ondark | |||
| State | action-pressed | --token-color-background-action-pressed | |||
| State | action-pressed-ondark | --token-color-background-action-pressed-ondark | |||
| State | action-pressed-subtle | --token-color-background-action-pressed-subtle | |||
| State | action-pressed-subtle-inverse | --token-color-background-action-pressed-subtle-inverse | |||
| State | action-pressed-subtle-ondark | --token-color-background-action-pressed-subtle-ondark | |||
| Advanced | action-ondark | --token-color-background-action-ondark | |||
| Advanced | error-subtle | --token-color-background-error-subtle | |||
| Advanced | info-subtle | --token-color-background-info-subtle | |||
| Advanced | marketing-subtle | --token-color-background-marketing-subtle | |||
| Advanced | neutral-static | --token-color-background-neutral-static | |||
| Advanced | neutral-subtle | --token-color-background-neutral-subtle | |||
| Advanced | positive-subtle | --token-color-background-positive-subtle | |||
| Advanced | selected-ondark | --token-color-background-selected-ondark | |||
| Advanced | selected-subtle | --token-color-background-selected-subtle | |||
| Advanced | selected-subtle-ondark | --token-color-background-selected-subtle-ondark | |||
| Advanced | warning-subtle | --token-color-background-warning-subtle |
Text
Text tokens are used for readable content, labels and text states.
| Token | DNB | Sbanken | Carnegie | ||
|---|---|---|---|---|---|
| Base | action | --token-color-text-action | |||
| Base | action-inverse | --token-color-text-action-inverse | |||
| Base | destructive | --token-color-text-destructive | |||
| Base | destructive-inverse | --token-color-text-destructive-inverse | |||
| Base | neutral | --token-color-text-neutral | |||
| Base | neutral-alternative | --token-color-text-neutral-alternative | |||
| Base | neutral-inverse | --token-color-text-neutral-inverse | |||
| Base | positive | --token-color-text-positive | |||
| Base | positive-inverse | --token-color-text-positive-inverse | |||
| Base | selected | --token-color-text-selected | |||
| Base | warning | --token-color-text-warning | |||
| Base | warning-inverse | --token-color-text-warning-inverse | |||
| State | action-disabled | --token-color-text-action-disabled | |||
| State | action-disabled-ondark | --token-color-text-action-disabled-ondark | |||
| State | action-focus | --token-color-text-action-focus | |||
| State | action-hover | --token-color-text-action-hover | |||
| State | action-hover-inverse | --token-color-text-action-hover-inverse | |||
| State | action-hover-ondark | --token-color-text-action-hover-ondark | |||
| State | action-pressed | --token-color-text-action-pressed | |||
| State | action-pressed-inverse | --token-color-text-action-pressed-inverse | |||
| State | action-pressed-ondark | --token-color-text-action-pressed-ondark | |||
| Advanced | action-alternative-ondark | --token-color-text-action-alternative-ondark | |||
| Advanced | action-ondark | --token-color-text-action-ondark | |||
| Advanced | neutral-ondark | --token-color-text-neutral-ondark | |||
| Advanced | neutral-onlight | --token-color-text-neutral-onlight | |||
| Advanced | neutral-subtle | --token-color-text-neutral-subtle | |||
| Advanced | neutral-subtle-ondark | --token-color-text-neutral-subtle-ondark |
Icon
Icon tokens are used for icon colors.
| Token | DNB | Sbanken | Carnegie | ||
|---|---|---|---|---|---|
| Base | action | --token-color-icon-action | |||
| Base | action-inverse | --token-color-icon-action-inverse | |||
| Base | destructive | --token-color-icon-destructive | |||
| Base | marketing | --token-color-icon-marketing | |||
| Base | neutral | --token-color-icon-neutral | |||
| Base | neutral-alternative | --token-color-icon-neutral-alternative | |||
| Base | neutral-inverse | --token-color-icon-neutral-inverse | |||
| Base | selected | --token-color-icon-selected | |||
| State | action-disabled | --token-color-icon-action-disabled | |||
| State | action-disabled-ondark | --token-color-icon-action-disabled-ondark | |||
| State | action-focus | --token-color-icon-action-focus | |||
| State | action-hover | --token-color-icon-action-hover | |||
| State | action-hover-inverse | --token-color-icon-action-hover-inverse | |||
| State | action-hover-ondark | --token-color-icon-action-hover-ondark | |||
| State | action-pressed | --token-color-icon-action-pressed | |||
| State | action-pressed-inverse | --token-color-icon-action-pressed-inverse | |||
| State | action-pressed-ondark | --token-color-icon-action-pressed-ondark | |||
| Advanced | action-alternative-ondark | --token-color-icon-action-alternative-ondark | |||
| Advanced | action-ondark | --token-color-icon-action-ondark | |||
| Advanced | neutral-ondark | --token-color-icon-neutral-ondark | |||
| Advanced | selected-ondark | --token-color-icon-selected-ondark |
Stroke
Stroke tokens are used for borders, dividers, outlines and focus-related line work.
| Token | DNB | Sbanken | Carnegie | ||
|---|---|---|---|---|---|
| Base | action | --token-color-stroke-action | |||
| Base | action-alternative | --token-color-stroke-action-alternative | |||
| Base | action-inverse | --token-color-stroke-action-inverse | |||
| Base | error | --token-color-stroke-error | |||
| Base | info | --token-color-stroke-info | |||
| Base | marketing | --token-color-stroke-marketing | |||
| Base | neutral | --token-color-stroke-neutral | |||
| Base | neutral-alternative | --token-color-stroke-neutral-alternative | |||
| Base | neutral-bold | --token-color-stroke-neutral-bold | |||
| Base | positive | --token-color-stroke-positive | |||
| Base | selected | --token-color-stroke-selected | |||
| Base | warning | --token-color-stroke-warning | |||
| State | action-disabled | --token-color-stroke-action-disabled | |||
| State | action-disabled-ondark | --token-color-stroke-action-disabled-ondark | |||
| State | action-focus | --token-color-stroke-action-focus | |||
| State | action-focus-subtle | --token-color-stroke-action-focus-subtle | |||
| State | action-hover | --token-color-stroke-action-hover | |||
| State | action-hover-inverse | --token-color-stroke-action-hover-inverse | |||
| State | action-hover-ondark | --token-color-stroke-action-hover-ondark | |||
| State | action-pressed | --token-color-stroke-action-pressed | |||
| State | action-pressed-inverse | --token-color-stroke-action-pressed-inverse | |||
| State | action-pressed-ondark | --token-color-stroke-action-pressed-ondark | |||
| Advanced | action-alternative-ondark | --token-color-stroke-action-alternative-ondark | |||
| Advanced | action-ondark | --token-color-stroke-action-ondark | |||
| Advanced | neutral-ondark | --token-color-stroke-neutral-ondark | |||
| Advanced | neutral-subtle | --token-color-stroke-neutral-subtle | |||
| Advanced | selected-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.
| Token | DNB | Sbanken | Carnegie | ||
|---|---|---|---|---|---|
| First | base | --token-color-decorative-first-base | |||
| First | base-static | --token-color-decorative-first-base-static | |||
| First | bold | --token-color-decorative-first-bold | |||
| First | bold-static | --token-color-decorative-first-bold-static | |||
| First | intense | --token-color-decorative-first-intense | |||
| First | intense-static | --token-color-decorative-first-intense-static | |||
| First | muted | --token-color-decorative-first-muted | |||
| First | muted-static | --token-color-decorative-first-muted-static | |||
| First | subtle | --token-color-decorative-first-subtle | |||
| First | subtle-static | --token-color-decorative-first-subtle-static | |||
| Second | base | --token-color-decorative-second-base | |||
| Second | base-static | --token-color-decorative-second-base-static | |||
| Second | bold | --token-color-decorative-second-bold | |||
| Second | bold-static | --token-color-decorative-second-bold-static | |||
| Second | intense | --token-color-decorative-second-intense | |||
| Second | intense-static | --token-color-decorative-second-intense-static | |||
| Second | muted | --token-color-decorative-second-muted | |||
| Second | muted-static | --token-color-decorative-second-muted-static | |||
| Second | subtle | --token-color-decorative-second-subtle | |||
| Second | subtle-static | --token-color-decorative-second-subtle-static | |||
| Third | base | --token-color-decorative-third-base | |||
| Third | base-static | --token-color-decorative-third-base-static | |||
| Third | bold | --token-color-decorative-third-bold | |||
| Third | bold-static | --token-color-decorative-third-bold-static | |||
| Third | intense | --token-color-decorative-third-intense | |||
| Third | intense-static | --token-color-decorative-third-intense-static | |||
| Third | muted | --token-color-decorative-third-muted | |||
| Third | muted-static | --token-color-decorative-third-muted-static | |||
| Third | subtle | --token-color-decorative-third-subtle | |||
| Third | subtle-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.
| Token | DNB | Sbanken | Carnegie | ||
|---|---|---|---|---|---|
| button | Base | --token-color-component-button-background-action | |||
| button | Base | --token-color-component-button-background-action-destructive | |||
| button | State | --token-color-component-button-background-action-destructive-hover | |||
| button | State | --token-color-component-button-background-action-destructive-hover-subtle | |||
| button | State | --token-color-component-button-background-action-destructive-pressed | |||
| button | State | --token-color-component-button-background-action-destructive-pressed-subtle | |||
| button | State | --token-color-component-button-background-action-hover | |||
| button | Base | --token-color-component-button-icon-action | |||
| button | Base | --token-color-component-button-icon-action-destructive | |||
| button | State | --token-color-component-button-icon-action-destructive-hover | |||
| button | State | --token-color-component-button-icon-action-destructive-pressed | |||
| button | State | --token-color-component-button-icon-action-disabled | |||
| button | State | --token-color-component-button-icon-action-hover | |||
| button | Base | --token-color-component-button-icon-neutral | |||
| button | Base | --token-color-component-button-icon-neutral-destructive | |||
| button | Advanced | --token-color-component-button-icon-neutral-ondark | |||
| button | Base | --token-color-component-button-stroke-action | |||
| button | Base | --token-color-component-button-stroke-action-destructive | |||
| button | State | --token-color-component-button-stroke-action-destructive-hover | |||
| button | State | --token-color-component-button-stroke-action-destructive-pressed | |||
| button | State | --token-color-component-button-stroke-action-hover | |||
| button | Base | --token-color-component-button-stroke-selected | |||
| button | Base | --token-color-component-button-text-action | |||
| button | Base | --token-color-component-button-text-action-destructive | |||
| button | State | --token-color-component-button-text-action-destructive-hover | |||
| button | State | --token-color-component-button-text-action-destructive-pressed | |||
| button | State | --token-color-component-button-text-action-disabled | |||
| button | State | --token-color-component-button-text-action-hover | |||
| button | State | --token-color-component-button-text-action-hover-inverse | |||
| button | State | --token-color-component-button-text-action-hover-ondark | |||
| button | Base | --token-color-component-button-text-action-inverse | |||
| button | Advanced | --token-color-component-button-text-action-ondark | |||
| button | Base | --token-color-component-button-text-neutral | |||
| button | Base | --token-color-component-button-text-neutral-destructive | |||
| button | Base | --token-color-component-button-text-neutral-inverse | |||
| button | Advanced | --token-color-component-button-text-neutral-ondark | |||
| dimmer | Base | --token-color-component-dimmer-background | |||
| progressbar | Advanced | --token-color-component-progressbar-neutral-onsubtle | |||
| switch | State | --token-color-component-switch-action-disabled-ondark | |||
| table | Base | --token-color-component-table-background-neutral-alternative | |||
| tooltip | Base | --token-color-component-tooltip-background-neutral |