Skip to main content

Color Picker

Native system color input, custom Atelier popover (saturation, hue, hex/rgb/hsl), or both. Copy Popover for custom/both.

Native · system picker (pill)

Opens the OS color dialog — styled pill swatch, no popover.

Native · round

Custom · popover (hex / rgb / hsl)

Atelier saturation plane, hue slider, and format tabs.

Both · native + custom

System picker on the left, Atelier panel on the right.

Custom · round swatch

Custom · swatch only

#f7f3eb

Custom · panel format fields off

Disabled (both)

Error (custom)

API

PropRequiredTypeDefaultDescription
themeOptionalSiteThemeatelierVisual theme for swatch, panel, and sliders.
modeOptional"light" | "dark"lightColor mode palette.
pickerOptional"custom" | "native" | "both"customcustom — Atelier popover. native — `<input type="color">`. both — system swatch + popover.
variantOptional"swatch" | "field"swatchSwatch-only row or FieldShell with label, hint, and error.
swatchShapeOptional"pill" | "round"pillTrigger silhouette — pill lozenge or circle.
value / onChangeOptionalstringControlled hex color (#rrggbb).
formatsOptional("hex" | "rgb" | "hsl")[]hex, rgb, hslValue formats available in the panel and inline field.
defaultFormatOptional"hex" | "rgb" | "hsl"hexInitial format tab and inline notation.
showFormatInputsOptionalbooleantrueFormat tabs and value fields inside the popover panel.
showInlineHexOptionalbooleanfalseEditable value field beside the swatch (uses active format).
ColorPickerPanelOptionalcomponentPopover body only — saturation, hue, optional hex.