Tokens
Design tokens are the named values behind every colour, radius and shadow in the system. They ship in @ebrains/assets as CSS variables (styles/vars.css), utility classes (styles/output.css) and JavaScript modules (tokens/*.js). Use the semantic tokens below rather than raw hex values, so components keep their meaning when the palette changes.
The tables on this page are generated from those token files at build time, so they always list what the CSS framework ships. For installation, CDN links and a reference of all utility classes and CSS variables, see the CSS Framework page.
Loading output.css automatically loads the fonts, so you can skip loading them separately.
Text
Utility classes text-{name}. The badge shows the contrast of the colour as text on white.
| Utility | Token | Value | On white |
|---|---|---|---|
text-default | --brand-black | #07140D | 18.8:1 · AAA |
text-inverse | --white | #FFFFFF | — |
text-current | — | currentColor | — |
text-transparent | — | transparent | — |
text-light | --grey-700 | #666666 | 5.7:1 · AA |
text-lighter | --grey-light | #ECECEC | 1.2:1 · Fail |
text-lightest | --grey-500 | #8C8C8C | 3.4:1 · AA large |
text-extra-light | --grey-300 | #E6E6E6 | 1.2:1 · Fail |
text-success | --green-800 | #007734 | 5.7:1 · AA |
text-warning | --yellow-900 | #636313 | 6.3:1 · AA |
text-error | --red-700 | #D01111 | 5.6:1 · AA |
text-accent | --brand-green | #00FF9D | 1.3:1 · Fail |
text-accent-dark | --brand-green-dark | #00C87B | 2.2:1 · Fail |
text-on-gradient | — | rgba(0, 0, 0, 0.55) | — |
text-on-dark | --white | #FFFFFF | — |
Background
Utility classes bg-{name}.
| Utility | Token | Value |
|---|---|---|
bg-default | --brand-black | #07140D |
bg-inverse | --white | #FFFFFF |
bg-inverse-soft | — | rgba(0, 0, 0, .05) |
bg-dark | --grey-light | #ECECEC |
bg-darker | --grey-dark | #7A7B7A |
bg-strong | --grey-700 | #666666 |
bg-strong-dark | --grey-800 | #4D4D4D |
bg-stronger | --grey-900 | #242424 |
bg-strongest | --brand-black | #07140D |
bg-accent | --brand-green | #00FF9D |
bg-accent-dark | --brand-green-dark | #00C87B |
bg-success | --green-200 | #D3FFDC |
bg-warning | --yellow-200 | #FFFFCB |
bg-error | --red-200 | #FFE0E1 |
bg-current | — | currentColor |
bg-transparent | — | transparent |
bg-overlay | — | rgba(0, 0, 0, 0.25) |
bg-on-gradient | — | rgba(0, 0, 0, 0.1) |
bg-on-dark | — | rgba(255, 255, 255, 0.2) |
Border
Utility classes border-{name}.
| Utility | Token | Value |
|---|---|---|
border-default | --brand-black | #07140D |
border-inverse | --white | #FFFFFF |
border-inverse-soft | — | rgba(255, 255, 255, 0.3) |
border-inverse-softer | — | rgba(255, 255, 255, 0.15) |
border-soft | — | rgba(0, 0, 0, .15) |
border-softer | — | rgba(0, 0, 0, .1) |
border-softest | — | rgba(0, 0, 0, .05) |
border-accent | --brand-green | #00FF9D |
border-accent-dark | --brand-green-dark | #00C87B |
border-error | --red-700 | #D01111 |
border-current | — | currentColor |
border-transparent | — | transparent |
border-grey | --grey-light | #ECECEC |
border-grey-dark | --grey-dark | #7A7B7A |
Outline
Outline colours used for focus rings: brand black by default, green on dark surfaces. These are token mappings used inside components, not utility classes.
| Name | Token | Value |
|---|---|---|
default | --brand-black | #07140D |
accent | --brand-green | #00FF9D |
accent-dark | --brand-green-dark | #00C87B |
Underline
Underline colours used by links and underlined components. These are token mappings, not utility classes.
| Name | Token | Value |
|---|---|---|
accent | --brand-green | #00FF9D |
accent-dark | --brand-green-dark | #00C87B |
light | --grey-700 | #666666 |
lighter | --grey-600 | #6E6E6E |
lightest | --grey-500 | #8C8C8C |
extra-light | --grey-300 | #E6E6E6 |
Radius
Utility classes rounded-{name}.
rounded-xxs
2pxrounded-xs
4pxrounded-sm
8pxrounded-md
12pxrounded-lg
16pxrounded-pill
100pxShadows
Utility classes shadow-{name}.
shadow-small
0px 1px 3px rgba(7, 20, 13, 0.1)shadow-medium
0px 4px 12px rgba(7, 20, 13, 0.15)shadow-hover
0px 8px 24px rgba(7, 20, 13, 0.2)shadow-accent
0px 0px 16px rgba(0, 255, 157, 0.5)shadow-accent-focus
0 0 0 3px rgba(0, 255, 157, 0.3)shadow-border
0 1px 3px rgba(7, 20, 13, 0.1)shadow-border-top
0 -1px 3px rgba(7, 20, 13, 0.1)shadow-elevated
0px 2px 8px rgba(7, 20, 13, 0.12)shadow-overlay
0px 16px 48px rgba(7, 20, 13, 0.3)