Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProChoose a photo or logo and get its dominant colors (median cut), with each swatch's share of the picture, its hex, a click to copy and the best text color. Everything runs in the browser. Use this when a brand or theme should start from an image.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
People pick colors from a logo, product photo or mood image.
Do not use it when: Photos with gradients give muddy averages; use the eyedropper to pick exact colors instead.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | 6 | Colors to extract. |
read | (file) => Promise<Uint8ClampedArray | number[]> | canvas | RGBA pixels of a small copy of the image. |
onPalette | (colors: string[]) => void | - | The hex values, most common first. |
extractPalette(rgba, count) is exported.
The pattern ships with a Testing Library test (palette-from-image.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.