Skip to content
Ovatly

CSS Variable Palette Builder

100% PrivateColor & Design Tools

Turn a pasted list of colors into a :root block of CSS design tokens.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

CSS custom properties
--color-primary--color-accent--color-ink--color-paper
:root {
  --color-primary: #2563EB;
  --color-accent: #F59E0B;
  --color-ink: #1B1E23;
  --color-paper: #FAFAF7;
}
Tailwind config snippet
/* Tailwind CSS v4: paste inside your CSS file */
@theme {
  --color-primary: #2563EB;
  --color-accent: #F59E0B;
  --color-ink: #1B1E23;
  --color-paper: #FAFAF7;
}

/* Tailwind CSS v3: tailwind.config.js */
// theme: { extend: { colors: {
        primary: "var(--color-primary)",
        accent: "var(--color-accent)",
        ink: "var(--color-ink)",
        paper: "var(--color-paper)",
// } } }
  1. 1Paste one color per line, as name: hex, or just hex values.
  2. 2Set the variable prefix (color by default).
  3. 3Check the parsed color chips for mistakes.
  4. 4Copy the CSS variables block or the Tailwind snippet.

About this tool

The CSS Variable Palette Builder turns a pasted list of colors into design tokens: a :root block of CSS custom properties plus a Tailwind snippet (v4 @theme and a v3 config form) that reference the same names. Paste colors with role names like primary or paper, or paste bare hex values and let the tool number them.

Related tools

Advertisement

Part of Ovatly's free tools in Color & Design Tools.