CURRENT VALUE
One source of truth
The same typed value can drive a theme token, an API payload, or a preview swatch without client-side string parsing.
Hex input + normalized Signal
FORM
Color
Color gives people a typed picker with live format details, semantic schemes, and a string Signal contract.
PLAYGROUND
Build a color token
bind keeps the selected hex value available to the rest of the view. The format rows are opt-in so a compact field can stay focused.
hex: #3b82f6rgb: rgb(59, 130, 246)oklch: target-derivedCURRENT VALUE
One source of truth
The same typed value can drive a theme token, an API payload, or a preview swatch without client-side string parsing.
Hex input + normalized Signal
signal brandColor value:"#3b82f6"
Color bind:brandColor label:"Brand color" labelFloating:true showHex:true showRgb:true showOklch:true variant:"outlined" scheme:"primary" size:"lg" name:"brand-color"FORMATS
Expose the formats your workflow needs
Hex is the source value. RGB, CMYK, and OKLCH summaries can be shown together for design tools and color handoff.
hex: #14b8a6rgb: rgb(20, 184, 166)cmyk: cmyk(89%, 0%, 10%, 28%)oklch: target-derivedhex: #a855f7oklch: target-derivedColor value:"#14b8a6" label:"Product accent" showHex:true showRgb:true showCmyk:true showOklch:true variant:"soft" scheme:"success" size:"md" name:"product-accent"
Color value:"#a855f7" label:"Campaign highlight" showHex:true showOklch:true variant:"line" scheme:"secondary" size:"sm" name:"campaign-highlight"STATES AND SURFACES
Make feedback part of the field
Use the same color picker contract for resting, validated, and corrective states.
hex: #3b82f6Used for the active campaign palette.hex: #ef4444Choose a color with enough contrast for body text.BEHAVIOR
One portable color model
Dowe lowers the same hex value, format summaries, labels, and feedback text to web, SwiftUI, and Compose targets.
BINDING
String Signal
bind reads and writes a validated hex string without executing user JavaScript.
FORMATS
Opt-in details
showHex, showRgb, showCmyk, and showOklch add deterministic summaries below the picker.
VALIDATION
Hex only
value and Signal values use the #RRGGBB contract so every target starts from the same color.
API
Props
Color also accepts the applicable common spacing, sizing, typography, visibility, accessibility, and shadow props.
Prop | Type | Default |
|---|---|---|
No dataThere are no records to display | ||