Designing with tokens

November 26, 2026 · Brand identity

The stylesheet defines the site’s design tokens once, as custom properties on :root in src/styles/global.css. A component never writes a colour or a size directly; it uses the token that says what the value is for.

Two layers of colour

Primitives are the raw palette. Semantic colours say what a colour is for, and point at a primitive. Changing the brand colour is one edit to the semantic token, not a search through every component.

Why it matters here

Studio’s Variables view lists the tokens in their groups, and its Styles view edits the rules that use them. A site built this way stays editable through the dashboard instead of needing a developer for every colour change.