Generate feedback colors (success, warning, error, and info) for shadcn/ui
Go to generatorUsed by 4k+ developers. Want me to build your product next? Let's work together.
Broadcast is a shadcn/ui theme built around a vivid pink primary color (#fd63b0) with muted light pink accents (#d8cfd4). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the vivid pink primary (#fd63b0) on a pink-tinted background (#0c0408).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #0c0408black |
| Foreground | #000000black | #fbf9fasnow |
| Card | #fcf3f7lavenderblush | #10050ablack |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fcf3f7lavenderblush | #10050ablack |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #fd63b0hotpink | #fd63b0hotpink |
| Primary foreground | #2d0117black | #2d0117black |
| Secondary | #d8cfd4lightgrey | #1a191ablack |
| Secondary foreground | #41353bdarkslategray | #b5b0b3darkgray |
| Muted | #e9cedbgainsboro | #311624black |
| Muted foreground | #715b66dimgray | #a48e99rosybrown |
| Accent | #d8cfd4lightgrey | #1a191ablack |
| Accent foreground | #41353bdarkslategray | #b5b0b3darkgray |
| Destructive | #c55616chocolate | #e97a3aperu |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fd63b0hotpink | #fd63b0hotpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 4.22:1 | AA Large |
| Accent | 7.69:1 | AAA |
| Destructive | 4.43:1 | AA Large |
| Text on background | 19.36:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 7.30:1 | AAA |
Paste this into your globals.css to use Broadcast in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 345.333);
--foreground: oklch(0 0 0);
--muted: oklch(0.877 0.034 346.132);
--muted-foreground: oklch(0.497 0.034 346.831);
--popover: oklch(0.972 0.011 345.43);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.972 0.011 345.43);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.717 0.201 352.314);
--primary-foreground: oklch(0.196 0.078 354.852);
--secondary: oklch(0.864 0.011 345.48);
--secondary-foreground: oklch(0.343 0.019 346.552);
--accent: oklch(0.864 0.011 345.48);
--accent-foreground: oklch(0.343 0.019 346.552);
--destructive: oklch(0.587 0.158 45.037);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.717 0.201 352.314);
--chart-1: oklch(0.717 0.201 352.314);
--chart-2: oklch(0.864 0.011 345.48);
--chart-3: oklch(0.864 0.011 345.48);
--chart-4: oklch(0.888 0.009 345.411);
--chart-5: oklch(0.718 0.206 352.548);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.022 345.196);
--foreground: oklch(0.984 0.002 345.195);
--muted: oklch(0.245 0.047 349.798);
--muted-foreground: oklch(0.67 0.031 346.317);
--popover: oklch(0.136 0.025 346.941);
--popover-foreground: oklch(0.992 0.001 345.169);
--card: oklch(0.136 0.025 346.941);
--card-foreground: oklch(0.992 0.001 345.169);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.717 0.201 352.314);
--primary-foreground: oklch(0.196 0.078 354.852);
--secondary: oklch(0.214 0.003 345.482);
--secondary-foreground: oklch(0.762 0.006 345.352);
--accent: oklch(0.214 0.003 345.482);
--accent-foreground: oklch(0.762 0.006 345.352);
--destructive: oklch(0.695 0.157 47.907);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.717 0.201 352.314);
--chart-1: oklch(0.717 0.201 352.314);
--chart-2: oklch(0.214 0.003 345.482);
--chart-3: oklch(0.214 0.003 345.482);
--chart-4: oklch(0.247 0.004 345.512);
--chart-5: oklch(0.718 0.206 352.548);
}