Components
← All components

Color Picker

stimeo--color-picker

Per-channel sliders and a hex input that stay in two-way sync.

The stimeo--color-picker controller decomposes color selection into independent WAI-ARIA Slider channels (hue, saturation, lightness, and an optional alpha) rather than a 2-D palette, so every adjustment is keyboard- and screen-reader-operable (WCAG 1.4.1: not by color alone). Each slider carries aria-valuenow and a human-readable aria-valuetext like "Hue 210 degrees"; the hex input stays two-way synced and normalized; the current color is published on --stimeo-color (here driving the preview swatch) and mirrored into a hidden form field. Pointer-drag listeners are bound to an AbortController and released on drag end and on disconnect (Turbo navigation included), and the color is fully reconstructable from the hex value. Behavior only — the swatch and track visuals are this Playground's CSS (the thumb positions come from a small consumer script).

running
Hue
Saturation
Lightness

Keyboard

KeyAction
↑ / → Increase the focused channel by one step.
↓ / ← Decrease the focused channel by one step.
PageUp / PageDown Increase / decrease by a larger step.
Home / End Jump the channel to its minimum / maximum.