CSSAwwwards
+ Submit tool
utilities

CSS Design Tokens with Custom Properties

A complete design token system using CSS custom properties for color, spacing, typography, and motion.

Design tokens are the foundation of any scalable design system. Implemented as CSS custom properties on :root, they create a single source of truth for every visual value in your project. Tokens that reference other tokens (aliases) let you build semantic layers — a brand colour referenced by a component colour token, which is then used in component CSS.

Live CSS Editor
CSS
Preview
Edit CSS → see live previewTab = 2 spaces

Usage Note

Use semantic tokens (--color-primary, --color-text) in component CSS, not primitive tokens (--green-500). This way, swapping a brand colour only requires changing one primitive token. Components automatically inherit the change through the semantic token chain.

Tags
#design-tokens#css-variables#custom-properties#design-system#theming
Share on XLinkedIn