Design tokens, explained
Tokens are the named values behind every design system — the single source of truth for color, type, spacing, radius, and elevation. Change the token, and everything built on it updates at once.
Tokens are the named values behind every design system — the single source of truth for color, type, spacing, radius, and elevation. Change the token, and everything built on it updates at once.
Without tokens, a brand color is a hex code copy-pasted into hundreds of files. Rebranding means a fragile find-and-replace. With tokens, that color has a name — primary — and every button, link, and badge references the name. One edit, system-wide.
The swatches below are the live tokens of your currently active theme. Switch themes back in the playground and this page inherits the change — that's tokens doing their job:
primary, accent), surfaces (bg, surface, surface-alt), text, and semantic states (success, warning, error, info).font-heading, font-body, font-mono.radius-sm through radius-full for consistent corners.shadow-sm, shadow-md, shadow-lg for depth.In AIDesignSys, every theme is just these tokens written in plain markdown. Open the Foundations panel on the homepage to see them rendered as a live specimen — colors, a type scale, and shape demos — for the active theme.
When you ask an assistant to build UI, "make it match our brand" is meaningless without values. A design-tokens.json file gives it the exact palette and scale to reference — so it writes var(--primary) instead of inventing #3B82F6. Tokens turn "on-brand" from a vibe into a constraint the model can actually follow.
That's why every AI Package export leads with the tokens file, and why every component prompt is pre-filled with the active theme's real values.
primary, surface, radius-md, shadow-lg — that store the raw decisions of a design system. Reference the name instead of hardcoding a value, and a single change updates everywhere.design-tokens.json grouped into colors, typography, radius, and elevation — plus a human-editable theme markdown file you can download, edit, and re-upload..md, change a value, and upload it back — the entire component library re-themes live so you can validate before exporting.Open the Foundations panel and see your active theme's tokens as a live specimen.
Explore the tokens →