UI
← Home

Color Area

The saturation/lightness square of a color picker: a 2-D pad where a single pointer position sets two values at once — horizontal maps to saturation, vertical to lightness. The two axes are exposed as `role="slider"` controls with `aria-valuenow`, each operable with the arrow keys; dragging the pad moves both.

  • Axe
  • Focus
  • Drag

Preview

Saturation: 50
Lightness: 50

Installation

npx shadcn@latest add https://ui.publictheta.com/r/color-area.json

Conformance

Verified against the @publictheta/ui-spec color-area specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.

  • Axe No WCAG 2 A/AA axe-core violations
  • Focus A visible focus indicator appears on keyboard focus (WCAG 2.4.7)
  • Drag Pointer-drag surfaces don't select text or hijack touch scrolling

See the full conformance matrix across all components.