Skip to main content

Foundations

Tokens live in one file, src/tokens/tokens.json, and are generated into:

  • health-components/tokens.css: CSS custom properties (--co-*) for every theme,
  • health-components/tokens: typed JavaScript data (tokens, colorValue, tokenVar),
  • health-components/tokens.json: the raw source, for design tools and native apps.

Every component reads tokens as CSS variables, so a theme change needs no code change.

FamilyTokens
Colour55 colours in five themes
Typography3 families, 15 text styles
Layout9 spacing steps, 8 radii, 5 shadows, 5 z-index layers, 8 density values
Iconography53 stroke icons

Use tokens by name, never hex.