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.
| Family | Tokens |
|---|---|
| Colour | 55 colours in five themes |
| Typography | 3 families, 15 text styles |
| Layout | 9 spacing steps, 8 radii, 5 shadows, 5 z-index layers, 8 density values |
| Iconography | 53 stroke icons |
Use tokens by name, never hex.