Dreary is a shadcn/ui theme built around a blue primary color (#3e5189) with muted light blue accents (#d1d4db). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#3e5189) on a neutral background (#020408).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #020408black |
| Foreground | #000000black | #f5f6fawhitesmoke |
| Card | #f6f8fdghostwhite | #03060cblack |
| Card foreground | #000000black | #f8f9fbghostwhite |
| Popover | #fbfcfewhite | #020408black |
| Popover foreground | #000000black | #f5f6fawhitesmoke |
| Primary | #3e5189darkslateblue | #3e5189darkslateblue |
| Primary foreground | #fbfcfdwhite | #fbfcfdwhite |
| Secondary | #eaeaeclavender | #1b1b1dblack |
| Secondary foreground | #4e5056darkslategray | #b1b3b9darkgray |
| Muted | #dcdde0gainsboro | #1f2023black |
| Muted foreground | #3f4146darkslategray | #b9bbc0silver |
| Accent | #d1d4dblightgrey | #282b34darkslategray |
| Accent foreground | #363a45darkslategray | #c0c3cesilver |
| Destructive | #651a01maroon | #fd5f2btomato |
| Destructive foreground | #feb39alightsalmon | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e5189darkslateblue | #3e5189darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.39:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 7.12:1 | AAA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 8.44:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Dreary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 271.375);
--foreground: oklch(0 0 0);
--muted: oklch(0.898 0.003 271.373);
--muted-foreground: oklch(0.374 0.009 271.179);
--popover: oklch(0.99 0.004 271.375);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.007 271.34);
--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.446 0.096 268.417);
--primary-foreground: oklch(0.991 0.002 271.39);
--secondary: oklch(0.937 0.002 271.388);
--secondary-foreground: oklch(0.43 0.01 271.17);
--accent: oklch(0.869 0.01 271.295);
--accent-foreground: oklch(0.348 0.02 270.789);
--destructive: oklch(0.34 0.112 37.135);
--destructive-foreground: oklch(0.832 0.095 39.208);
--ring: oklch(0.446 0.096 268.417);
--chart-1: oklch(0.446 0.096 268.417);
--chart-2: oklch(0.937 0.002 271.388);
--chart-3: oklch(0.869 0.01 271.295);
--chart-4: oklch(0.961 0.001 271.396);
--chart-5: oklch(0.442 0.104 268.104);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.015 264.148);
--foreground: oklch(0.974 0.005 271.365);
--muted: oklch(0.245 0.005 271.216);
--muted-foreground: oklch(0.792 0.007 271.323);
--popover: oklch(0.104 0.015 264.148);
--popover-foreground: oklch(0.974 0.005 271.365);
--card: oklch(0.119 0.017 264.338);
--card-foreground: oklch(0.983 0.003 271.38);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.446 0.096 268.417);
--primary-foreground: oklch(0.991 0.002 271.39);
--secondary: oklch(0.224 0.004 271.227);
--secondary-foreground: oklch(0.768 0.008 271.309);
--accent: oklch(0.29 0.017 270.774);
--accent-foreground: oklch(0.818 0.016 271.221);
--destructive: oklch(0.686 0.202 37.632);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.446 0.096 268.417);
--chart-1: oklch(0.446 0.096 268.417);
--chart-2: oklch(0.224 0.004 271.227);
--chart-3: oklch(0.29 0.017 270.774);
--chart-4: oklch(0.255 0.005 271.211);
--chart-5: oklch(0.442 0.104 268.104);
}