Color picker
One colour, edited in OKLCH: lightness, chroma and hue, each a slider whose track is the gradient it moves along, plus the raw value for anything the sliders cannot say. A panel, not a popover: put it in a Dropdown to float it.
| Class | Effect | Type |
|---|---|---|
.color-picker | The panel: a box of its own, unless flat. | root |
.color-picker-xs.color-picker-sm.color-picker-md.color-picker-lg.color-picker-xl | Sets size, one class per value. | axis size |
.color-picker-flat | No box: the host — a dropdown, a card — draws it. | flag |
.color-picker-channel | One channel: its letter, its track, its number. | part |
.color-picker-head | The preview and the value field, on one line. | part |
.color-picker-presets | A row of .swatch, one click away. | part |
.color-picker-preview | The colour, over a checkerboard. Reads --color-picker-value. | part |
.color-picker-track | A range input painted with --color-picker-track. | part |
.color-picker-value | The raw value field, an .input. | part |