Color Picker

A 366px panel for choosing a solid or gradient colour: a fill-type collection, gradient stops, a saturation and brightness spectrum, hue and opacity sliders, a Hex, RGB or CSS field and recently used swatches. Basic or Fancy, square or pill.

Stops
Recently Used

Add a basic Orvain Color Picker set to a gradient fill, from transparent to “#335CFF”, with a hue and opacity slider, a Hex value, the recently used colours and a close button.

Orvain MCPIncluded with the library

When to use#

  • When people set a brand, theme or chart colour and need any value, not only a preset.
  • For gradients, where each stop needs its own colour and position.

When not to use

  • Use a Radio group of swatches when only a few fixed colours are allowed.

Anatomy#

1Fill types

Solid, Linear, Radial, Angular and Diamond in a 60px grey well; the chosen one sits in a 44px white chip.

2Stops

An H5 title with add and reverse buttons, over a 40px gradient slider whose 32px thumbs are the stops.

3Spectrum

324×232, saturation across and brightness down, with a 14px thumb ringed white.

4Eyedropper, hue and opacity

A 48px eyedropper beside two 20px sliders.

5Value and swatches

A format picker and a value field on a 4% wash, then a row of 32px Color Dots.

States#

Basic

Three white sections split by hairlines, radius 16, a soft 8/10 shadow.

Fancy

The sections become cards on #fcfcfc, with Custom and Libraries tabs and a close button on top.

Pill

The well, buttons, field and chips go fully round; the panel keeps its 16px radius.

Color Dots

Default; Hover shrinks the dot 2px; Selected adds a white inner ring and a 1.5px tinted halo.

Source#

The Color Picker ships in the free packages, @orvain/react and @orvain/vue, and in the Figma library with every variant and state shown above. The code on this page is the code you install.

Install the packages

Used in these blocks