Nursery is a shadcn/ui theme built around a muted red primary color (#b6a0a0) with muted indigo accents (#a0a0b6). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the muted red primary (#b6a0a0) on a red-tinted background (#0f0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #0f0505black |
| Foreground | #040101black | #ffffffwhite |
| Card | #fdfcfcsnow | #0f0505black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #fdfcfcsnow | #0f0505black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #b6a0a0darkgray | #b6a0a0darkgray |
| Primary foreground | #141010black | #141010black |
| Secondary | #a0b6a0darkgray | #a0b6a0darkgray |
| Secondary foreground | #101410black | #101410black |
| Muted | #e1eae1gainsboro | #151e15black |
| Muted foreground | #505850darkslategray | #a7afa7darkgray |
| Accent | #a0a0b6darkgray | #a0a0b6darkgray |
| Accent foreground | #101014black | #101014black |
| Destructive | #790402maroon | #fc2b27crimson |
| Destructive foreground | #feb0aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b6a0a0darkgray | #b6a0a0darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Nursery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.19);
--foreground: oklch(0.083 0.014 20.492);
--muted: oklch(0.928 0.015 145.455);
--muted-foreground: oklch(0.451 0.017 145.284);
--popover: oklch(0.991 0.002 17.19);
--popover-foreground: oklch(0.083 0.014 20.492);
--card: oklch(0.991 0.002 17.19);
--card-foreground: oklch(0.083 0.014 20.492);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.725 0.026 17.762);
--primary-foreground: oklch(0.177 0.008 17.916);
--secondary: oklch(0.753 0.039 145.173);
--secondary-foreground: oklch(0.185 0.012 145.08);
--accent: oklch(0.713 0.032 285.571);
--accent-foreground: oklch(0.173 0.01 285.358);
--destructive: oklch(0.363 0.146 29.315);
--destructive-foreground: oklch(0.831 0.092 20.287);
--ring: oklch(0.725 0.026 17.762);
--chart-1: oklch(0.725 0.026 17.762);
--chart-2: oklch(0.753 0.039 145.173);
--chart-3: oklch(0.713 0.032 285.571);
--chart-4: oklch(0.776 0.035 145.224);
--chart-5: oklch(0.721 0.032 17.916);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.021 20.305);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.021 144.833);
--muted-foreground: oklch(0.745 0.015 145.421);
--popover: oklch(0.133 0.021 20.305);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.021 20.305);
--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.725 0.026 17.762);
--primary-foreground: oklch(0.177 0.008 17.916);
--secondary: oklch(0.753 0.039 145.173);
--secondary-foreground: oklch(0.185 0.012 145.08);
--accent: oklch(0.713 0.032 285.571);
--accent-foreground: oklch(0.173 0.01 285.358);
--destructive: oklch(0.637 0.24 28.073);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.725 0.026 17.762);
--chart-1: oklch(0.725 0.026 17.762);
--chart-2: oklch(0.753 0.039 145.173);
--chart-3: oklch(0.713 0.032 285.571);
--chart-4: oklch(0.776 0.035 145.224);
--chart-5: oklch(0.721 0.032 17.916);
}