Dreary is a shadcn/ui theme built around a yellow primary color (#c3a360) with green accents (#b1c360). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#c3a360) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #040301black |
| Foreground | #130f06black | #f9f8f5whitesmoke |
| Card | #fcfbf8snow | #070603black |
| Card foreground | #0f0c05black | #fbfaf9snow |
| Popover | #fcfbf8snow | #070603black |
| Popover foreground | #0f0c05black | #fbfaf9snow |
| Primary | #c3a360darkkhaki | #c3a360darkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #c37260indianred | #c37260indianred |
| Secondary foreground | #000000black | #000000black |
| Muted | #dfd9d8gainsboro | #272120black |
| Muted foreground | #695854dimgray | #ab9a96rosybrown |
| Accent | #b1c360darkkhaki | #b1c360darkkhaki |
| Accent foreground | #000000black | #000000black |
| Destructive | #782b07saddlebrown | #f37439tomato |
| Destructive foreground | #fbccb7peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c3a360darkkhaki | #c3a360darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 8.75:1 | AAA |
| Secondary button | 5.89:1 | AA |
| Muted text | 4.81:1 | AA |
| Accent | 10.80:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 8.75:1 | AAA |
| Secondary button | 5.89:1 | AA |
| Muted text | 5.85:1 | AA |
| Accent | 10.80:1 | AAA |
| Destructive | 7.40:1 | AAA |
Paste this into your globals.css to use Dreary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 86.015);
--foreground: oklch(0.171 0.019 86.739);
--muted: oklch(0.89 0.007 32.661);
--muted-foreground: oklch(0.475 0.023 32.755);
--popover: oklch(0.987 0.004 86.023);
--popover-foreground: oklch(0.156 0.016 88.291);
--card: oklch(0.987 0.004 86.023);
--card-foreground: oklch(0.156 0.016 88.291);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.73 0.094 85.252);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.637 0.106 33.535);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.781 0.126 118.014);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.399 0.117 40.941);
--destructive-foreground: oklch(0.881 0.061 46.201);
--ring: oklch(0.73 0.094 85.252);
--chart-1: oklch(0.73 0.094 85.252);
--chart-2: oklch(0.637 0.106 33.535);
--chart-3: oklch(0.781 0.126 118.014);
--chart-4: oklch(0.661 0.098 33.383);
--chart-5: oklch(0.735 0.099 85.088);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 90.659);
--foreground: oklch(0.98 0.004 86.023);
--muted: oklch(0.256 0.009 32.711);
--muted-foreground: oklch(0.7 0.021 32.694);
--popover: oklch(0.122 0.011 90.659);
--popover-foreground: oklch(0.986 0.003 86.017);
--card: oklch(0.122 0.011 90.659);
--card-foreground: oklch(0.986 0.003 86.017);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.73 0.094 85.252);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.637 0.106 33.535);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.781 0.126 118.014);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.701 0.172 43.348);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.73 0.094 85.252);
--chart-1: oklch(0.73 0.094 85.252);
--chart-2: oklch(0.637 0.106 33.535);
--chart-3: oklch(0.781 0.126 118.014);
--chart-4: oklch(0.661 0.098 33.383);
--chart-5: oklch(0.735 0.099 85.088);
}