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.
Prey is a shadcn/ui theme built around a muted light yellow primary color (#dddbd5) with muted light yellow accents (#c7c5bc). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the muted light yellow primary (#dddbd5) on a yellow-tinted background (#0a0905).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #0a0905black |
| Foreground | #0d0a02black | #fdfdfcwhite |
| Card | #fcfbf8snow | #0a0905black |
| Card foreground | #0d0a02black | #fdfdfcwhite |
| Popover | #fcfbf8snow | #0a0905black |
| Popover foreground | #0d0a02black | #fdfdfcwhite |
| Primary | #dddbd5gainsboro | #dddbd5gainsboro |
| Primary foreground | #464339darkslategray | #464339darkslategray |
| Secondary | #dcdcdbgainsboro | #25231dblack |
| Secondary foreground | #444341darkslategray | #c3bfb1silver |
| Muted | #f5f4efwhitesmoke | #100e0ablack |
| Muted foreground | #665f4ddimgray | #b2ac99darkgray |
| Accent | #c7c5bcsilver | #3b3626darkslategray |
| Accent foreground | #2c2b25darkslategray | #d5cfbelightgrey |
| Destructive | #8b3104saddlebrown | #f9722ftomato |
| Destructive foreground | #fdd7c4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dddbd5gainsboro | #dddbd5gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 5.75:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 8.50:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 7.47:1 | AAA |
Paste this into your globals.css to use Prey in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 91.444);
--foreground: oklch(0.147 0.023 96.387);
--muted: oklch(0.966 0.006 91.466);
--muted-foreground: oklch(0.488 0.03 91.79);
--popover: oklch(0.988 0.004 91.444);
--popover-foreground: oklch(0.147 0.023 96.387);
--card: oklch(0.988 0.004 91.444);
--card-foreground: oklch(0.147 0.023 96.387);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.89 0.008 91.487);
--primary-foreground: oklch(0.383 0.016 91.716);
--secondary: oklch(0.893 0.002 91.424);
--secondary-foreground: oklch(0.383 0.003 91.487);
--accent: oklch(0.822 0.012 91.53);
--accent-foreground: oklch(0.288 0.01 91.675);
--destructive: oklch(0.438 0.131 41.168);
--destructive-foreground: oklch(0.906 0.05 48.144);
--ring: oklch(0.89 0.008 91.487);
--chart-1: oklch(0.89 0.008 91.487);
--chart-2: oklch(0.893 0.002 91.424);
--chart-3: oklch(0.822 0.012 91.53);
--chart-4: oklch(0.917 0.001 91.42);
--chart-5: oklch(0.892 0.01 91.509);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.009 94.233);
--foreground: oklch(0.993 0.001 91.421);
--muted: oklch(0.165 0.01 91.783);
--muted-foreground: oklch(0.744 0.027 91.683);
--popover: oklch(0.139 0.009 94.233);
--popover-foreground: oklch(0.993 0.001 91.421);
--card: oklch(0.139 0.009 94.233);
--card-foreground: oklch(0.993 0.001 91.421);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.89 0.008 91.487);
--primary-foreground: oklch(0.383 0.016 91.716);
--secondary: oklch(0.257 0.012 91.738);
--secondary-foreground: oklch(0.803 0.019 91.602);
--accent: oklch(0.333 0.027 91.814);
--accent-foreground: oklch(0.855 0.025 91.637);
--destructive: oklch(0.705 0.182 43.913);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.89 0.008 91.487);
--chart-1: oklch(0.89 0.008 91.487);
--chart-2: oklch(0.257 0.012 91.738);
--chart-3: oklch(0.333 0.027 91.814);
--chart-4: oklch(0.291 0.014 91.75);
--chart-5: oklch(0.892 0.01 91.509);
}