Shady is a shadcn/ui theme built around a vivid deep green primary color (#032110) with vivid deep pink accents (#210313). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid deep green primary (#032110) on a green-tinted background (#030c07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030c07black |
| Foreground | #05140cblack | #fcfdfcwhite |
| Card | #fbfefcwhite | #030c07black |
| Card foreground | #05140cblack | #fcfdfcwhite |
| Popover | #fbfefcwhite | #030c07black |
| Popover foreground | #05140cblack | #fcfdfcwhite |
| Primary | #032110black | #032110black |
| Primary foreground | #14db6espringgreen | #14db6espringgreen |
| Secondary | #210313black | #210313black |
| Secondary foreground | #f165b2hotpink | #f165b2hotpink |
| Muted | #ede8eblinen | #171215black |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #210313black | #210313black |
| Accent foreground | #f165b2hotpink | #f165b2hotpink |
| Destructive | #5c160amaroon | #e95035tomato |
| Destructive foreground | #f5afa3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #032110black | #032110black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.58:1 | AAA |
| Text on card | 18.58:1 | AAA |
| Primary button | 9.29:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 7.68:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 7.32:1 | AAA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 9.29:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 9.33:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Shady in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 162.534);
--foreground: oklch(0.176 0.028 158.916);
--muted: oklch(0.936 0.006 342.771);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.994 0.003 162.534);
--popover-foreground: oklch(0.176 0.028 158.916);
--card: oklch(0.994 0.003 162.534);
--card-foreground: oklch(0.176 0.028 158.916);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.219 0.048 155.841);
--primary-foreground: oklch(0.782 0.207 150.997);
--secondary: oklch(0.171 0.059 349.402);
--secondary-foreground: oklch(0.703 0.189 348.948);
--accent: oklch(0.171 0.059 349.402);
--accent-foreground: oklch(0.703 0.189 348.948);
--destructive: oklch(0.318 0.103 32.381);
--destructive-foreground: oklch(0.818 0.084 30.18);
--ring: oklch(0.219 0.048 155.841);
--chart-1: oklch(0.219 0.048 155.841);
--chart-2: oklch(0.171 0.059 349.402);
--chart-3: oklch(0.171 0.059 349.402);
--chart-4: oklch(0.208 0.074 351.311);
--chart-5: oklch(0.22 0.05 155.69);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.021 162.291);
--foreground: oklch(0.994 0.002 162.558);
--muted: oklch(0.189 0.009 343.715);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.142 0.021 162.291);
--popover-foreground: oklch(0.994 0.002 162.558);
--card: oklch(0.142 0.021 162.291);
--card-foreground: oklch(0.994 0.002 162.558);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.219 0.048 155.841);
--primary-foreground: oklch(0.782 0.207 150.997);
--secondary: oklch(0.171 0.059 349.402);
--secondary-foreground: oklch(0.703 0.189 348.948);
--accent: oklch(0.171 0.059 349.402);
--accent-foreground: oklch(0.703 0.189 348.948);
--destructive: oklch(0.637 0.193 32.341);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.219 0.048 155.841);
--chart-1: oklch(0.219 0.048 155.841);
--chart-2: oklch(0.171 0.059 349.402);
--chart-3: oklch(0.171 0.059 349.402);
--chart-4: oklch(0.208 0.074 351.311);
--chart-5: oklch(0.22 0.05 155.69);
}