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.
Party is a shadcn/ui theme built around a vivid green primary color (#3ca611) with vivid violet accents (#7c11a6). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the vivid green primary (#3ca611) on a green-tinted background (#060b04).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #060b04black |
| Foreground | #000000black | #f9fbf9mintcream |
| Card | #f9fcf8mintcream | #060b04black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #f9fcf8mintcream | #060b04black |
| Popover foreground | #000000black | #f9fbf9mintcream |
| Primary | #3ca611forestgreen | #3ca611forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7c11a6darkmagenta | #7c11a6darkmagenta |
| Secondary foreground | #f8edfdlavenderblush | #f8edfdlavenderblush |
| Muted | #eae4eclavender | #19131bblack |
| Muted foreground | #524955darkslategray | #b3aab6darkgray |
| Accent | #7c11a6darkmagenta | #7c11a6darkmagenta |
| Accent foreground | #f8edfdlavenderblush | #f8edfdlavenderblush |
| Destructive | #dd1d08red | #f62a13orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3ca611forestgreen | #3ca611forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 3.15:1 | AA Large |
| Secondary button | 7.43:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 7.43:1 | AAA |
| Destructive | 4.91:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 3.15:1 | AA Large |
| Secondary button | 7.43:1 | AAA |
| Muted text | 8.13:1 | AAA |
| Accent | 7.43:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Party in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 136.631);
--foreground: oklch(0 0 0);
--muted: oklch(0.926 0.013 316.568);
--muted-foreground: oklch(0.418 0.024 316.443);
--popover: oklch(0.988 0.007 136.631);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.007 136.631);
--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.639 0.197 139.503);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.45 0.213 312.748);
--secondary-foreground: oklch(0.959 0.025 316.532);
--accent: oklch(0.45 0.213 312.748);
--accent-foreground: oklch(0.959 0.025 316.532);
--destructive: oklch(0.573 0.223 30.375);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.639 0.197 139.503);
--chart-1: oklch(0.639 0.197 139.503);
--chart-2: oklch(0.45 0.213 312.748);
--chart-3: oklch(0.45 0.213 312.748);
--chart-4: oklch(0.476 0.226 312.675);
--chart-5: oklch(0.646 0.202 139.648);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.021 135.235);
--foreground: oklch(0.987 0.004 136.621);
--muted: oklch(0.197 0.019 316.33);
--muted-foreground: oklch(0.748 0.021 316.529);
--popover: oklch(0.141 0.021 135.235);
--popover-foreground: oklch(0.987 0.004 136.621);
--card: oklch(0.141 0.021 135.235);
--card-foreground: oklch(0.987 0.004 136.621);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.639 0.197 139.503);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.45 0.213 312.748);
--secondary-foreground: oklch(0.959 0.025 316.532);
--accent: oklch(0.45 0.213 312.748);
--accent-foreground: oklch(0.959 0.025 316.532);
--destructive: oklch(0.626 0.238 30.487);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.639 0.197 139.503);
--chart-1: oklch(0.639 0.197 139.503);
--chart-2: oklch(0.45 0.213 312.748);
--chart-3: oklch(0.45 0.213 312.748);
--chart-4: oklch(0.476 0.226 312.675);
--chart-5: oklch(0.646 0.202 139.648);
}