Nursery is a shadcn/ui theme built around a yellow primary color (#98982a) with green accents (#61982a). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#98982a) on a yellow-tinted background (#0f0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #0f0f05black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #fdfdf7snow | #131306black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfdf7snow | #131306black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #98982aolivedrab | #98982aolivedrab |
| Primary foreground | #000000black | #000000black |
| Secondary | #98612asienna | #98612asienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbd9d7gainsboro | #282624darkslategray |
| Muted foreground | #666666dimgray | #999999darkgray |
| Accent | #61982aolivedrab | #61982aolivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #842401maroon | #fe4501orangered |
| Destructive foreground | #ffcbb8peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #98982aolivedrab | #98982aolivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 5.15:1 | AA |
| Muted text | 4.06:1 | AA Large |
| Accent | 3.47:1 | AA Large |
| Destructive | 6.49:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 5.15:1 | AA |
| Muted text | 5.27:1 | AA |
| Accent | 3.47:1 | AA Large |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Nursery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 106.48);
--foreground: oklch(0.106 0.017 108.919);
--muted: oklch(0.885 0.003 67.78);
--muted-foreground: oklch(0.51 0 171.87);
--popover: oklch(0.993 0.009 106.56);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.009 106.56);
--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.66 0.128 109.453);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.542 0.1 62.633);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.619 0.152 132.547);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.41 0.137 36.952);
--destructive-foreground: oklch(0.882 0.065 40.924);
--ring: oklch(0.66 0.128 109.453);
--chart-1: oklch(0.66 0.128 109.453);
--chart-2: oklch(0.542 0.1 62.633);
--chart-3: oklch(0.619 0.152 132.547);
--chart-4: oklch(0.573 0.107 62.545);
--chart-5: oklch(0.669 0.132 109.502);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.167 0.022 108.536);
--foreground: oklch(0.994 0.002 106.439);
--muted: oklch(0.271 0.005 67.636);
--muted-foreground: oklch(0.683 0 180);
--popover: oklch(0.184 0.025 108.614);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.184 0.025 108.614);
--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.66 0.128 109.453);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.542 0.1 62.633);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.619 0.152 132.547);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.658 0.228 35.33);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.66 0.128 109.453);
--chart-1: oklch(0.66 0.128 109.453);
--chart-2: oklch(0.542 0.1 62.633);
--chart-3: oklch(0.619 0.152 132.547);
--chart-4: oklch(0.573 0.107 62.545);
--chart-5: oklch(0.669 0.132 109.502);
}