Interactive tool

Turn a colour and spacing scale into working CSS variables

Pick four colours, a base spacing and a corner radius. The tool turns them into a block of CSS custom properties: your colours, a border colour, five spacing steps, four corner radii and two shadows, ready to copy. Check the names suit your project before you paste them in.

How-To Guide

Building a design token system with CSS Variable Architect

The tool turns four colours, a base spacing and a corner radius into a set of CSS custom properties you can paste into a stylesheet. It covers setting your base values, reading what the tool makes from them, and changing a value for one component or theme.

Level: Intermediate
Best for: Web and product designers building or maintaining a design system
Screenshot of the CSS Variable Architect interface showing a generated set of CSS custom properties
  1. Set your base tokens

    Pick your four colours, then set the base spacing in rem and the corner radius in pixels.

  2. Generate the variable scale

    The tool makes the spacing steps and corner radii from your two base values, and a border colour from your surface and text colours.

  3. Override and apply in context

    See how to scope a variable to a single component or theme without breaking the inheritance it relies on.

CSS Variable Architect

Pick a few base values and get a ready to paste CSS custom property block. Everything updates live in your browser, nothing is sent anywhere.

Colours
Scale

Preview card

This card uses the generated surface, text, border and radius tokens.

Free Tools

Build your CSS variable system without leaving the browser

The tool takes your colours, a base spacing and a corner radius, and writes them as CSS custom properties grouped under colours, spacing, radius and shadows. The names follow a common pattern, such as --space-md, so rename them on paste if your project uses its own.

No sign-up needed · Works in your browser · Free to use