Dev
Dummy CSS Variable Set Generator
Used by developers, writers, and creators worldwide.
A dummy CSS variable set generator eliminates the tedious boilerplate of hand-writing design tokens from scratch. Paste the output directly into a global CSS file and you instantly have a complete :root declaration block covering colour palettes, spacing scales, typography sizes, border radii, shadows, and transition timings. Choose from five theme presets — light, dark, brand, minimal, or full-system — and set a custom prefix like --app or --ds to match your project's naming convention. Useful for frontend developers scaffolding component libraries, design engineers prototyping client themes, and anyone who needs a consistent token foundation without spending an afternoon on setup.
Loading usage…
Free forever — no account required
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Select a theme type from the dropdown — choose light, dark, brand, minimal, or full design-system based on what your project needs.
- Enter a variable prefix in the text field that matches your project naming convention, such as --app, --brand, or --ui.
- Click the generate button to produce a complete :root block of CSS custom property declarations.
- Copy the output and paste it into your global CSS file, a dedicated tokens.css, or your design system's base stylesheet.
- Adjust individual token values as needed to match your brand colours, type scale, or spacing system.
Use Cases
- •Scaffolding a tokens.css file for a new React or Vue component library with a custom --ds prefix
- •Generating paired light and dark variable sets under the same prefix for CSS-based theme switching
- •Populating a Storybook global decorator with realistic spacing, colour, and typography tokens
- •Replacing hardcoded hex values in a legacy stylesheet with a structured --brand token set
- •Rapidly prototyping a client brand theme using the brand preset before a Figma handoff
Tips
- →Generate both a light and dark theme with the same prefix, then layer them using :root and [data-theme='dark'] selectors for instant theme switching.
- →Use the full design-system theme as a checklist — it reveals which token categories (elevation, motion, borders) you may have forgotten in your own system.
- →Name your prefix after your npm package scope (e.g. --acme if your package is @acme/ui) to keep tokens traceable back to their library.
- →After generating, run the output through a CSS linter like Stylelint to catch any token names that conflict with existing project variables before committing.
- →Pair the generated spacing scale tokens with a CSS Grid or Flexbox layout system so gap and padding values always reference the same scale, keeping vertical rhythm consistent.
- →For Figma-to-code workflows, match the generated token names to your Figma variable names — this makes token sync tools like Token Studio work with minimal remapping.
FAQ
what CSS properties does the dummy CSS variable set generator actually output
The generator outputs colour palette tokens (primary, secondary, neutral, and semantic states), a spacing scale, font sizes, font families, line heights, border radii, box shadow levels, and transition timings. The full-system theme gives the most complete output; minimal covers just the essentials for quick prototypes.
how do I use CSS variables to switch between light and dark themes
Generate both themes using the same prefix, then place the light set inside :root and the dark set inside a [data-theme='dark'] selector or a @media (prefers-color-scheme: dark) block. Toggle the attribute on your root element via JavaScript or let the media query handle it automatically.
what prefix should I use for CSS custom properties
Use a short, project-specific prefix like --app, --ds, or an abbreviated brand name — avoid generic names like --css or --var that can collide with third-party libraries. A consistent prefix also makes your tokens easy to identify in browser DevTools.