A colour picker that checks the colour: a saturation and brightness field, a hue bar, the hex, its contrast on your surfaces with WCAG badges, and presets; drags follow, clicks glide.
pnpm dlx shadcn@latest add @beautiful-ui-pro/color-pickerNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { ColorPicker } from "@/components/ui/notchset/color-picker";
const palette = ["#111110", "#FF4D1F", "#2F6FEB", "#1F9D55", "#B7791F"];
export function AgentColour() {
const [hex, setHex] = React.useState("#2F6FEB");
return <ColorPicker label="Triage" value={hex} onValueChange={setHex} presets={palette} />;
}value / onValueChange–
"#RRGGBB"Controlled; or defaultValue.
label–
ReactNodeThe name in the trigger.
presets–
string[]Swatches.
surfaces–
{ label, color }[]Contrast is shown against each; default paper and void.
components/ui/notchset/color-picker.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.