Skip to content
Forms

PaintMixer

A colour field on an artist's palette. Each press drops a dab into the well, it swirls in, and the colour is what real pigment would give: yellow and blue make green, not grey. Undo a dab or clean the well.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
paints{ name, color, power? }[]5 paintsFive work best. power is tinting strength.
defaultDabsnumber[][0, 1, 1]Paint indexes already in the well.
namestring-Form field name. Sends the hex colour.
onChange(hex: string) => void-Called with the new hex colour, or "" when clean.
labelstring"Mix a colour"Read out by screen readers.
classNamestring"w-full max-w-lg"Set the width here. Everything scales with it.