Skip to content
ZeroServer.tools

Color Scheme Generator

Generate light and dark CSS custom property color schemes from a single primary color.

Preview

primary (light)#6366f1
primary (dark)#9698f3
background#ffffff
bg dark#0f172a
surface#f8fafc
surface dark#1e293b
text#0f172a
text dark#f8fafc
CSS Custom Properties

CSS Color Scheme Generator — light & dark mode in one click

This tool generates a complete set of CSS custom properties (variables) for both light and dark themes from a single primary color. All derived colors are computed using HSL math — lightening, darkening, and hue shifts — so the palette is always harmonious. The minimal scheme includes primary, surface, text, and border variables. The full scheme adds semantic colors: success (120° hue shift), warning (45° shift), and error (−45° shift) — plus shadow values. Apply the dark theme by setting data-theme="dark" on <html> or any container element. Pair with the Color Palette Generator for a full design token system.

Private & free — this tool runs entirely in your browser.

Recommended: Kinsta Fast managed hosting — up to $500 + 10% recurring.affiliate

Related Design & CSS tools