Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProPick a brand color in a popover and immediately see how white and black text read on it (ratio and AA result in words), which text color to use, and a button sample, so unreadable choices are caught while choosing. Use this when a chosen color becomes a button or badge background.
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 choose an accent color that will carry text (buttons, badges, banners) and should know right away if it is readable.
Do not use it when: For choosing text on an existing background, use the contrast checker directly.
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 | Description |
|---|---|---|
initial | string | The starting color. |
onChange | (color, text) => void | The new color and the better text color (#ffffff or #000000). |
The pattern ships with a Testing Library test (brand-color-picker-with-contrast.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.