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.

UtilityTokenValueOn white
text-default--brand-black#07140D18.8:1 · AAA
text-inverse--white#FFFFFF—
text-current—currentColor—
text-transparent—transparent—
text-light--grey-700#6666665.7:1 · AA
text-lighter--grey-light#ECECEC1.2:1 · Fail
text-lightest--grey-500#8C8C8C3.4:1 · AA large
text-extra-light--grey-300#E6E6E61.2:1 · Fail
text-success--green-800#0077345.7:1 · AA
text-warning--yellow-900#6363136.3:1 · AA
text-error--red-700#D011115.6:1 · AA
text-accent--brand-green#00FF9D1.3:1 · Fail
text-accent-dark--brand-green-dark#00C87B2.2:1 · Fail
text-on-gradient—rgba(0, 0, 0, 0.55)—
text-on-dark--white#FFFFFF—

Background

Utility classes bg-{name}.

UtilityTokenValue
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}.

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

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

NameTokenValue
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 2px
rounded-xs 4px
rounded-sm 8px
rounded-md 12px
rounded-lg 16px
rounded-pill 100px

Shadows

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)