Down is a shadcn/ui theme built around a vivid green primary color (#b8ef67) with neutral gray accents (#d7d8d5). The light mode uses a neutral background (#fafdf7). Dark mode keeps the vivid green primary (#b8ef67) on a green-tinted background (#080a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf7mintcream | #080a05black |
| Foreground | #090d02black | #fdfdfcwhite |
| Card | #fafdf7mintcream | #080a05black |
| Card foreground | #090d02black | #fdfdfcwhite |
| Popover | #fafdf7mintcream | #080a05black |
| Popover foreground | #090d02black | #fdfdfcwhite |
| Primary | #b8ef67darkkhaki | #b8ef67darkkhaki |
| Primary foreground | #152003black | #152003black |
| Secondary | #d7d8d5lightgrey | #171915black |
| Secondary foreground | #3e403bdarkslategray | #b1b5aadarkgray |
| Muted | #e9ebe6linen | #171914black |
| Muted foreground | #4d4e4bdarkslategray | #b3b4b1darkgray |
| Accent | #d7d8d5lightgrey | #171915black |
| Accent foreground | #3e403bdarkslategray | #b1b5aadarkgray |
| Destructive | #a22c0bfirebrick | #f15f37tomato |
| Destructive foreground | #fde8e2mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8ef67darkkhaki | #b8ef67darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 12.57:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 12.57:1 | AAA |
| Secondary button | 8.50:1 | AAA |
| Muted text | 8.46:1 | AAA |
| Accent | 8.50:1 | AAA |
| Destructive | 6.43:1 | AA |
Paste this into your globals.css to use Down in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 124.463);
--foreground: oklch(0.151 0.029 124.044);
--muted: oklch(0.936 0.007 124.453);
--muted-foreground: oklch(0.422 0.005 124.523);
--popover: oklch(0.99 0.008 124.463);
--popover-foreground: oklch(0.151 0.029 124.044);
--card: oklch(0.99 0.008 124.463);
--card-foreground: oklch(0.151 0.029 124.044);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.887 0.175 127.848);
--primary-foreground: oklch(0.226 0.052 128.024);
--secondary: oklch(0.88 0.005 124.42);
--secondary-foreground: oklch(0.367 0.009 124.685);
--accent: oklch(0.88 0.005 124.42);
--accent-foreground: oklch(0.367 0.009 124.685);
--destructive: oklch(0.475 0.159 34.802);
--destructive-foreground: oklch(0.947 0.024 35.951);
--ring: oklch(0.887 0.175 127.848);
--chart-1: oklch(0.887 0.175 127.848);
--chart-2: oklch(0.88 0.005 124.42);
--chart-3: oklch(0.88 0.005 124.42);
--chart-4: oklch(0.903 0.004 124.404);
--chart-5: oklch(0.893 0.18 127.972);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.014 123.884);
--foreground: oklch(0.993 0.001 124.362);
--muted: oklch(0.211 0.01 125.046);
--muted-foreground: oklch(0.768 0.004 124.429);
--popover: oklch(0.141 0.014 123.884);
--popover-foreground: oklch(0.993 0.001 124.362);
--card: oklch(0.141 0.014 123.884);
--card-foreground: oklch(0.993 0.001 124.362);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.887 0.175 127.848);
--primary-foreground: oklch(0.226 0.052 128.024);
--secondary: oklch(0.209 0.007 124.796);
--secondary-foreground: oklch(0.768 0.016 124.65);
--accent: oklch(0.209 0.007 124.796);
--accent-foreground: oklch(0.768 0.016 124.65);
--destructive: oklch(0.668 0.188 36.092);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.887 0.175 127.848);
--chart-1: oklch(0.887 0.175 127.848);
--chart-2: oklch(0.209 0.007 124.796);
--chart-3: oklch(0.209 0.007 124.796);
--chart-4: oklch(0.243 0.008 124.842);
--chart-5: oklch(0.893 0.18 127.972);
}