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.
Plush is a shadcn/ui theme built around a green primary color (#72ba45) with violet accents (#8d45ba). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#72ba45) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020402black |
| Foreground | #040802black | #fcfdfcwhite |
| Card | #fcfefbwhite | #020402black |
| Card foreground | #040802black | #fcfdfcwhite |
| Popover | #fcfefbwhite | #020402black |
| Popover foreground | #040802black | #fcfdfcwhite |
| Primary | #72ba45yellowgreen | #72ba45yellowgreen |
| Primary foreground | #17250eblack | #17250eblack |
| Secondary | #8d45badarkorchid | #8d45badarkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1d1ebgainsboro | #24142eblack |
| Muted foreground | #685c70dimgray | #9b8fa3darkgray |
| Accent | #8d45badarkorchid | #8d45badarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ca1c0cfirebrick | #e31f0dred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #72ba45yellowgreen | #72ba45yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 5.68:1 | AA |
| Muted text | 4.32:1 | AA Large |
| Accent | 5.68:1 | AA |
| Destructive | 5.68:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 5.68:1 | AA |
| Muted text | 5.63:1 | AA |
| Accent | 5.68:1 | AA |
| Destructive | 4.71:1 | AA |
Paste this into your globals.css to use Plush in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 133.017);
--foreground: oklch(0.127 0.022 131.357);
--muted: oklch(0.881 0.039 312.686);
--muted-foreground: oklch(0.493 0.035 312.499);
--popover: oklch(0.995 0.005 133.017);
--popover-foreground: oklch(0.127 0.022 131.357);
--card: oklch(0.995 0.005 133.017);
--card-foreground: oklch(0.127 0.022 131.357);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.717 0.168 135.402);
--primary-foreground: oklch(0.245 0.046 134.644);
--secondary: oklch(0.535 0.183 310.02);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.535 0.183 310.02);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.537 0.207 30.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.717 0.168 135.402);
--chart-1: oklch(0.717 0.168 135.402);
--chart-2: oklch(0.535 0.183 310.02);
--chart-3: oklch(0.535 0.183 310.02);
--chart-4: oklch(0.561 0.173 310.456);
--chart-5: oklch(0.726 0.176 135.586);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.011 131.926);
--foreground: oklch(0.993 0.002 132.998);
--muted: oklch(0.227 0.053 311.269);
--muted-foreground: oklch(0.667 0.033 312.651);
--popover: oklch(0.097 0.011 131.926);
--popover-foreground: oklch(0.993 0.002 132.998);
--card: oklch(0.097 0.011 131.926);
--card-foreground: oklch(0.993 0.002 132.998);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.717 0.168 135.402);
--primary-foreground: oklch(0.245 0.046 134.644);
--secondary: oklch(0.535 0.183 310.02);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.535 0.183 310.02);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.584 0.226 30.082);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.717 0.168 135.402);
--chart-1: oklch(0.717 0.168 135.402);
--chart-2: oklch(0.535 0.183 310.02);
--chart-3: oklch(0.535 0.183 310.02);
--chart-4: oklch(0.561 0.173 310.456);
--chart-5: oklch(0.726 0.176 135.586);
}