Skip to content

Color Picker

A color area, channel sliders, swatches and a hex field around one immutable color value.

Styled with CSS Tailwind

Area, hue, alpha, swatch and field

Every part binds the same BitBhColor. The area picks two channels (saturation and brightness by default) by pointer or with the arrow keys on its thumb - a focusable role="slider" with aria-roledescription="2D slider" announced as "Saturation 80%, Brightness 60%". A BitBhColorSlider is a BitBhSlider for one channel ("120°", "50%"), its track painted with --bit-bh-color-slider-gradient. The color keeps its hue through gray, so the hue slider doesn't jump. The field takes hex, rgb() or hsl().

An unhandled error has occurred. Reload 🗙