Avara UI

Color Picker & Palette

An advanced, feature-rich 360° Color Spectrum Wheel and Gradient Studio Generator component suite featuring real-time 2D color wheel spectrum tracking, lightness & opacity sliders, live shades & tints scale, color harmonies generator, dual/triple stop gradient creator, angle dial, and one-click CSS copy.

Variations

360° Color Wheel Studio with Harmonies & Shades

Advanced 360° canvas spectrum wheel featuring real-time drag tracking, lightness & opacity sliders, live 5-step shades & tints, and 5-color harmony generator.

Passvariant"standalone"
renders the 360° spectrum wheel with shades, color harmonies, format selector, and preset swatches.
format"hex" | "rgb" | "hsl"
controls the starting active color format displayed in the input field and clipboard output.

Gradient Studio & CSS Generator

High-tech gradient studio featuring linear/radial/conic gradient modes, 2-stop or 3-stop color selectors, randomize generator, angle compass dial, and one-click CSS copy.

Passvariant"gradient"
renders the multi-stop gradient generator widget with preset gallery and CSS copy.

Installation

New project? Follow the installation guide to set up Tailwind CSS, shadcn, the cn helper and lucide-react, register the @algorize-ui registry once, then copy your styles from the Themes page.

Install Color Picker

npx shadcn@latest add @algorize-ui/color-picker

components/custom/color-picker.tsx is written into your project. Copy any snippet from a Usage tab above and it runs.

Install dependencies

Nothing beyond the shared setup — Color Picker needs only the cn helper and lucide-react, which the installation guide already put in place.

Features

Discover the advanced capabilities of the ColorPicker component:
  • 360° Spectrum Color Wheel Canvas: Real-time 2D pointer tracking across the full 360-degree HSL hue & saturation color wheel canvas.
  • Shades & Tints Generator: Automatically computes 5 lightness levels (15%, 30%, 50%, 70%, 85%) for any selected color.
  • Color Harmonies Generator: Automatically generates Complementary, Analogous 1 & 2, and Triadic 1 & 2 color swatches.
  • Multi-Type Gradient Engine: Create Linear, Radial, or Conic gradients with 2-stop or 3-stop color pickers and angle compass dial.
  • Randomize Gradient Generator: Generate infinite vibrant gradient combinations at the click of a button.
  • Multi-Format Output & Copy: Toggle between HEX, RGB, and HSL formats with animated copy-to-clipboard feedback.
  • Native EyeDropper API: Integrated support for screen color sampling via browser EyeDropper API.

Props Reference: ColorPicker

PropTypeDefaultDescription
valuestring"#d0ff00"The active hex or color string value.
onChange(color: string) => voidundefinedCallback function fired when color changes.
format"hex" | "rgb" | "hsl""hex"Initial color format displayed in the input field and copy output.
variant"standalone" | "gradient""standalone"Display variant: 360° Color Wheel Studio or Gradient Studio Generator.
showShadesbooleantrueWhether to show the 5-step shades & tints spectrum row.
showHarmoniesbooleantrueWhether to show the 5-color harmony generator row (Comp, Ana 1/2, Tri 1/2).
showPresetsbooleantrueWhether to show the preset color swatches row.
showAlphabooleantrueWhether to show the transparency opacity slider.
showEyeDropperbooleantrueWhether to show the screen EyeDropper pipette button when supported.