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.
Nurse is a shadcn/ui theme built around a vivid green primary color (#07a21e) with vivid purple accents (#a2078a). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid green primary (#07a21e) on a green-tinted background (#050b06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #050b06black |
| Foreground | #010401black | #ffffffwhite |
| Card | #f8fbf9mintcream | #060e07black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fbf9mintcream | #060e07black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #07a21eforestgreen | #07a21eforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a2078adarkmagenta | #a2078adarkmagenta |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4d3e1gainsboro | #2c1b29darkslategray |
| Muted foreground | #494148darkslategray | #beb6bdsilver |
| Accent | #a2078adarkmagenta | #a2078adarkmagenta |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9e4410saddlebrown | #d15a15chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #07a21eforestgreen | #07a21eforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 3.40:1 | AA Large |
| Secondary button | 7.17:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 3.40:1 | AA Large |
| Secondary button | 7.17:1 | AAA |
| Muted text | 8.16:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Nurse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 150.216);
--foreground: oklch(0.098 0.018 149.071);
--muted: oklch(0.885 0.026 330.62);
--muted-foreground: oklch(0.385 0.016 330.774);
--popover: oklch(0.986 0.005 150.184);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.005 150.184);
--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.617 0.2 143.658);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.211 336.532);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.487 0.211 336.532);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.498 0.134 45.108);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.617 0.2 143.658);
--chart-1: oklch(0.617 0.2 143.658);
--chart-2: oklch(0.487 0.211 336.532);
--chart-3: oklch(0.487 0.211 336.532);
--chart-4: oklch(0.519 0.226 336.586);
--chart-5: oklch(0.624 0.204 143.558);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.017 149.519);
--foreground: oklch(1 0 180);
--muted: oklch(0.251 0.035 331.945);
--muted-foreground: oklch(0.785 0.013 330.466);
--popover: oklch(0.153 0.019 149.173);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.019 149.173);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.617 0.2 143.658);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.211 336.532);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.487 0.211 336.532);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.609 0.167 44.596);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.617 0.2 143.658);
--chart-1: oklch(0.617 0.2 143.658);
--chart-2: oklch(0.487 0.211 336.532);
--chart-3: oklch(0.487 0.211 336.532);
--chart-4: oklch(0.519 0.226 336.586);
--chart-5: oklch(0.624 0.204 143.558);
}