All Tools

CSS Variables Generator

Build a complete CSS design token system for your project. Edit color, spacing, typography, and border-radius tokens and get a ready-to-use :root { } block with all your custom properties. Copy the output and paste it into your global stylesheet.

--color-:
--color-:
--color-:
--color-:
--color-:
--color-:
--color-:
--color-:
--color-:
--color-:
--space-:
--space-:
--space-:
--space-:
--space-:
--space-:
--space-:
--space-:
--font-:
--font-:
--font-:
--font-:
--font-:
--font-:
--font-:
--font-:
--font-:
--font-:
--font-:
--font-:
--font-:
--radius-:
--radius-:
--radius-:
--radius-:
--radius-:
--radius-:

What are CSS custom properties?

CSS custom properties (also called CSS variables) are defined with a -- prefix in a :root block and referenced anywhere in your stylesheet with var(--name). They cascade and are scoped like any CSS property.

Design token categories

  • Colors — brand palette, semantic names (primary, background, text, border).
  • Spacing — consistent scale from xs to 3xl for margins, padding, gaps.
  • Typography — font sizes, weights, and families.
  • Border Radius — a shared rounding scale for UI components.