Shady is a shadcn/ui theme built around a vivid green primary color (#63f86d) with muted light green accents (#d3dfd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#63f86d) on a green-tinted background (#030c04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030c04black |
| Foreground | #000000black | #f6f8f6whitesmoke |
| Card | #ffffffwhite | #030c04black |
| Card foreground | #000000black | #f6f8f6whitesmoke |
| Popover | #ffffffwhite | #030c04black |
| Popover foreground | #000000black | #f6f8f6whitesmoke |
| Primary | #63f86dlightgreen | #63f86dlightgreen |
| Primary foreground | #022704black | #022704black |
| Secondary | #e6eae6gainsboro | #2f3130darkslategray |
| Secondary foreground | #475748darkslategray | #c8cbc9silver |
| Muted | #cce6cdlightgrey | #19331bdarkgreen |
| Muted foreground | #424d42darkslategray | #b2bdb3silver |
| Accent | #d3dfd3lightgrey | #39463adarkslategray |
| Accent foreground | #364a37darkslategray | #d5ddd5gainsboro |
| Destructive | #752500maroon | #fa4f00orangered |
| Destructive foreground | #ffc4a8navajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #63f86dlightgreen | #63f86dlightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 11.69:1 | AAA |
| Secondary button | 6.35:1 | AA |
| Muted text | 6.63:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 6.76:1 | AA |
| Text on background | 18.59:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 11.69:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 7.14:1 | AAA |
| Destructive | 3.39:1 | AA Large |
Paste this into your globals.css to use Shady in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.898 0.043 147.062);
--muted-foreground: oklch(0.407 0.023 146.972);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.869 0.221 144.474);
--primary-foreground: oklch(0.238 0.073 144.069);
--secondary: oklch(0.933 0.008 147.466);
--secondary-foreground: oklch(0.438 0.031 146.818);
--accent: oklch(0.891 0.02 147.319);
--accent-foreground: oklch(0.386 0.041 146.426);
--destructive: oklch(0.384 0.12 40.271);
--destructive-foreground: oklch(0.866 0.078 46.027);
--ring: oklch(0.869 0.221 144.474);
--chart-1: oklch(0.869 0.221 144.474);
--chart-2: oklch(0.933 0.008 147.466);
--chart-3: oklch(0.891 0.02 147.319);
--chart-4: oklch(0.956 0.005 147.494);
--chart-5: oklch(0.874 0.227 144.396);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.026 146.146);
--foreground: oklch(0.978 0.004 147.508);
--muted: oklch(0.294 0.054 145.482);
--muted-foreground: oklch(0.787 0.019 147.298);
--popover: oklch(0.14 0.026 146.146);
--popover-foreground: oklch(0.978 0.004 147.508);
--card: oklch(0.14 0.026 146.146);
--card-foreground: oklch(0.978 0.004 147.508);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.869 0.221 144.474);
--primary-foreground: oklch(0.238 0.073 144.069);
--secondary: oklch(0.312 0.004 147.413);
--secondary-foreground: oklch(0.838 0.004 147.503);
--accent: oklch(0.379 0.026 146.843);
--accent-foreground: oklch(0.888 0.013 147.404);
--destructive: oklch(0.661 0.217 37.85);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.869 0.221 144.474);
--chart-1: oklch(0.869 0.221 144.474);
--chart-2: oklch(0.312 0.004 147.413);
--chart-3: oklch(0.379 0.026 146.843);
--chart-4: oklch(0.343 0.005 147.409);
--chart-5: oklch(0.874 0.227 144.396);
}