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.
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.
-
Set your base tokens
Pick your four colours, then set the base spacing in rem and the corner radius in pixels.
-
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.
-
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.
Preview card
This card uses the generated surface, text, border and radius tokens.
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
Popular Tools
CSS Variable Architect
An interactive CSS Variable Architect, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / CSS Variable Architect
True-Contrast Smart Palette
An interactive True-Contrast Smart Palette, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / True-Contrast Smart Palette
CSS Unit Converter (px / rem / em / vw / vh)
An interactive CSS Unit Converter (px / rem / em / vw / vh), free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / CSS Unit Converter (px / rem / em / vw / vh)
Aspect Ratio Calculator
An interactive Aspect Ratio Calculator, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / Aspect Ratio Calculator
CSS Grid Architect
An interactive CSS Grid Architect, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / CSS Grid Architect
CSS Specificity Calculator
An interactive CSS Specificity Calculator, free to run in the browser. The companion guide sets out the method behind it, so you can check the working.
Tools / CSS Specificity Calculator