Round label colors to pick from, a plus that opens the full picker, and a live label preview.
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: An issue label editor with 9 named preset chips, a custom color fallback and Badge ink chosen for contrast
When to use
- Brand, accent and theme token settings kept as a hex, rgb or oklch string
- Label, text and highlight colors chosen from a fixed palette of named presets
- Design and drawing tools: fill and stroke inspectors, brush pickers, contrast checks and shade scales
When not to use
- Toolbar palettes that close on a pick and offer no custom shade: use the Color Picker Text & Highlight example
- A whole settings, profile or data entry screen with many fields and a save bar: use the Form blocks
- A full document writing surface with a formatting toolbar, lists and links: use the Rich Text Editor blocks
Agent notes
customcomparescolorwith eachLABEL_COLORSvalue as a string, and the picker writes lowercase hex, so keep the presets lowercaseColorPickerrenders no wrapper element, so its children lay out in the parent;classNameon it styles only the trigger it draws when given no children- A value passed in any syntax
parseColorreads is accepted, but the next change comes back written in the rootformat - Without
alpha, opacity in a passed value is ignored on screen and every value the picker emits is opaque
https://reui.io/components/color-picker/c-color-picker-5.mdget_example("c-color-picker-5")npx shadcn@latest add @reui/c-color-picker-5Shadcn Components in Color Picker Preset Swatches
About Shadcn Color Picker Preset Swatches
Preset swatches. Built by composing Badge, Card, Color Picker, Field, Input. A free, open source shadcn color picker example you can install with npx shadcn@latest add @reui/c-color-picker-5 and edit as your own code.
What You Can Build With Shadcn Color Picker Preset Swatches
- Composes Badge, Card, Color Picker, Field, Input, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-color-picker-5
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Color Picker Examples
- Inline Panel Inline color panel
- Popover Popover picker
- Color Input Color input
- Opacity Opacity
- OKLCH Token OKLCH theme token
- Format Converter Format converter
- Hue Wheel Hue wheel
- Recent Colors Recent colors
- Text & Highlight Text and highlight colors
- Channel Sliders Channel sliders
- Design Inspector Design inspector
- Contrast Checker Contrast checker
Related Shadcn Component Categories
Open-source shadcn combobox components for searchable selection, async lookup, and command menus.
Open-source shadcn command menu components for command palettes, global search, and power-user navigation.
Open-source shadcn context menu components for right-click menus, file actions, and table row actions.
Open-source shadcn data grid components for sorting and filtering, virtualized tables, and admin dashboards.
Open-source shadcn date selector components for date range picking, booking windows, and calendar filters.
Open-source shadcn dialog components for modal forms, focused tasks, and confirmations.
Frequently Asked Questions
When should I use Shadcn Color Picker Preset Swatches?
Use it for an issue label editor with 9 named preset chips, a custom color fallback and Badge ink chosen for contrast.
Shadcn Color Picker as a whole fits:
- Brand, accent and theme token settings kept as a hex, rgb or oklch string
- Label, text and highlight colors chosen from a fixed palette of named presets
- Design and drawing tools: fill and stroke inspectors, brush pickers, contrast checks and shade scales
For toolbar palettes that close on a pick and offer no custom shade, use the Color Picker Text & Highlight example. For a whole settings, profile or data entry screen with many fields and a save bar, use the Form blocks. For a full document writing surface with a formatting toolbar, lists and links, use the Rich Text Editor blocks.
How do I install Shadcn Color Picker Preset Swatches?
Is Shadcn Color Picker Preset Swatches free to use?
Which components does Shadcn Color Picker Preset Swatches use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.