Generate CSS custom property declarations for your design system. Add, edit, and copy variables instantly. Free, private, and runs locally in your browser.
Build your CSS custom properties (variables) and copy the generated :root block.
{vars.map((v, i) => ( updateVar(i, "name", e.target.value)} className="mb-1" /> updateVar(i, "value", e.target.value)} /> removeVar(i)} className="text-red-500">Remove ))} Add Variable Generated CSS Copy CSSVariables declared with --name that can be reused throughout a stylesheet and changed dynamically.
Yes. The CSS is generated entirely in your browser.
Yes — define a :root for light mode and a [data-theme="dark"] block with the same variable names.
CSS custom properties (a.k.a. CSS variables) are now supported in every browser and have replaced Sass variables for most use cases. This generator builds a starter
semantic names (
No — IE11 lacks support. If you still need IE11, fall back to Sass variables or use a PostCSS plugin to inline values.
Yes —
Negligibly. Modern browsers cache resolved values; the difference is unmeasurable in real apps.
Inside the declaration, yes. As media query thresholds (e.g.
Yes — that is the convention and matches the CSS property syntax.