Dreary is a shadcn/ui theme built around a vivid green primary color (#78fb6a) with muted light green accents (#e8ede8). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#78fb6a) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #020401black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f7fdf6mintcream | #030802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7fdf6mintcream | #030802black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #78fb6alightgreen | #78fb6alightgreen |
| Primary foreground | #063201black | #063201black |
| Secondary | #e8ede8linen | #253324darkslategray |
| Secondary foreground | #495c47darkslategray | #bccfbasilver |
| Muted | #eff1eewhitesmoke | #0e110eblack |
| Muted foreground | #414440darkslategray | #bbbfbbsilver |
| Accent | #e8ede8linen | #253324darkslategray |
| Accent foreground | #495c47darkslategray | #bccfbasilver |
| Destructive | #af3b0dfirebrick | #df4b11chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #78fb6alightgreen | #78fb6alightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 10.81:1 | AAA |
| Secondary button | 6.11:1 | AA |
| Muted text | 8.69:1 | AAA |
| Accent | 6.11:1 | AA |
| Destructive | 6.05:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 10.81:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 10.22:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Dreary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.006 142.604);
--foreground: oklch(0 0 0);
--muted: oklch(0.956 0.004 142.608);
--muted-foreground: oklch(0.383 0.008 142.54);
--popover: oklch(0.989 0.011 142.581);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.011 142.581);
--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.884 0.219 141.707);
--primary-foreground: oklch(0.276 0.089 141.177);
--secondary: oklch(0.942 0.009 142.59);
--secondary-foreground: oklch(0.453 0.041 142.252);
--accent: oklch(0.942 0.009 142.59);
--accent-foreground: oklch(0.453 0.041 142.252);
--destructive: oklch(0.515 0.16 38.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.884 0.219 141.707);
--chart-1: oklch(0.884 0.219 141.707);
--chart-2: oklch(0.942 0.009 142.59);
--chart-3: oklch(0.942 0.009 142.59);
--chart-4: oklch(0.964 0.005 142.604);
--chart-5: oklch(0.889 0.225 141.699);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.017 141.061);
--foreground: oklch(0.993 0.002 142.619);
--muted: oklch(0.172 0.007 142.464);
--muted-foreground: oklch(0.8 0.007 142.593);
--popover: oklch(0.122 0.021 141.061);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.021 141.061);
--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.884 0.219 141.707);
--primary-foreground: oklch(0.276 0.089 141.177);
--secondary: oklch(0.304 0.033 142.175);
--secondary-foreground: oklch(0.834 0.036 142.453);
--accent: oklch(0.304 0.033 142.175);
--accent-foreground: oklch(0.834 0.036 142.453);
--destructive: oklch(0.613 0.193 38.057);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.884 0.219 141.707);
--chart-1: oklch(0.884 0.219 141.707);
--chart-2: oklch(0.304 0.033 142.175);
--chart-3: oklch(0.304 0.033 142.175);
--chart-4: oklch(0.336 0.038 142.16);
--chart-5: oklch(0.889 0.225 141.699);
}