Component packs › Livery › Palette Builder

Palette Builder

Drag the dividers of a 60-30-10 bar or spin the base hue; harmony rules fill in the other two and the page repaints in a wipe.

Palette Builder is a 60-30-10 palette from Livery, a component pack with 8 components: Theme switcher components where every change repaints the page, not just the control. Price: $2 for the whole pack.

Built with: 60-30-10 proportion bar, harmony rules, live page wipe.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Palette Builder props

PropTypeDefaultDescription
huenumberStarting base hue, 0–360.
harmony'analogous' | 'complementary' | 'triad' | 'split'
darkboolean
autoplayboolean
onChange(p: { c60: string; c30: string; c10: string; harmony: string }) => void

Methods on the ref

Use it in React

import PaletteBuilder from './PaletteBuilder';

<PaletteBuilder />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Livery

Good for: Theme and dark mode.