Foundations
Foundations are the values every component is made of: color, type, space, radius, elevation, glass and motion. They are tokens, and the tokens live in one place: tokens/*.json in this repository. Everything else (the CSS variables, the JSON for code and design tools, the contrast report and this site) is generated from it on every build.
The token layers
Section titled “The token layers”Primitives: 145 tokens. Raw values with neutral names: color.electric.500, space.4, radius.lg. A primitive says what a value is, never what it is for. Components never use primitives directly.
Semantic: 73 tokens. Roles: color.text.muted, color.primary.fill, color.status.error-tint, radius.control. Each one has a value for light and for dark. Components use only these.
Brand themes: 2. Xendiz is the base; every semantic value in tokens/semantic.json is the Xendiz value. tokens/brands/waardex.json overrides 41 semantic tokens with the WaardeX palette, display font, radii and shadows. Nothing else changes: same names, same components, same rules.
Modes: 2. Light is the default and the brand’s home. Dark is for long sessions in the platform. Together: 4 themes, 218 tokens in all.
One source, several outputs
Section titled “One source, several outputs”| Output | Where | For |
|---|---|---|
xg-tokens.css |
/downloads/xg-tokens.css | every web product: CSS custom properties, all brands and modes |
xg-tokens.json |
/downloads/xg-tokens.json | code that needs values (charts, emails, native), import into design tools |
| Contrast report | Accessibility | every text and UI pair, measured in every theme on every build |
| This site | here | it is styled by the same variables it documents |
The pages
Section titled “The pages”- Color: the ramps and every semantic color, per brand and mode.
- Typography: two families per brand, one scale.
- Spacing and radius: the 4 px grid and the corner rules.
- Elevation, glass and motion: shadows, the frosted surface and its fallback, durations and easing.
- Grid and layout, Iconography, Writing and voice.
- Tokens: how to use them in code, and how to change one.