CSS Variables Generator
Build CSS custom properties and JSON for color ramps, named palettes, spacing and typography.
css-variables-generatorLOCAL WORKSPACE
Enabling local controls…
Variable type
Settings
Preview and export
- --brand-50
#f7f7fe - --brand-100
#eff0fe - --brand-200
#d8d9fc - --brand-300
#b1b3f8 - --brand-400
#8a8cf5 - --brand-500
#6366f1 - --brand-600
#5457cd - --brand-700
#4547a9 - --brand-800
#323379 - --brand-900
#1e1f48 - --brand-950
#0f0f24
CSS
:root {
--brand-50: #f7f7fe;
--brand-100: #eff0fe;
--brand-200: #d8d9fc;
--brand-300: #b1b3f8;
--brand-400: #8a8cf5;
--brand-500: #6366f1;
--brand-600: #5457cd;
--brand-700: #4547a9;
--brand-800: #323379;
--brand-900: #1e1f48;
--brand-950: #0f0f24;
}How to use this tool
Choose a variable type, edit its values and prefix, then preview and export the resulting tokens.
When not to use it
Color ramps have 11 steps with the input at 500. Numeric previews convert rem using a 16px root. Drafts stay in the page.