Dry is a shadcn/ui theme built around a muted deep green primary color (#2a2c20) with muted deep indigo accents (#23202c). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted deep green primary (#2a2c20) on a green-tinted background (#0d1004).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #0d1004black |
| Foreground | #000000black | #f8f9f5whitesmoke |
| Card | #fbfcf8snow | #111405black |
| Card foreground | #000000black | #fbfbf9snow |
| Popover | #fdfdfbsnow | #0d1004black |
| Popover foreground | #000000black | #f8f9f5whitesmoke |
| Primary | #2a2c20darkslategray | #2a2c20darkslategray |
| Primary foreground | #c5c9b5silver | #c5c9b5silver |
| Secondary | #23202cdarkslategray | #23202cdarkslategray |
| Secondary foreground | #bab5c9silver | #bab5c9silver |
| Muted | #edeaf6lavender | #0c0915black |
| Muted foreground | #56545fdimgray | #a3a0abdarkgray |
| Accent | #23202cdarkslategray | #23202cdarkslategray |
| Accent foreground | #bab5c9silver | #bab5c9silver |
| Destructive | #aa0909darkred | #f20d0dred |
| Destructive foreground | #fee7e7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a2c20darkslategray | #2a2c20darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.68:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 8.35:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 18.14:1 | AAA |
| Text on card | 17.98:1 | AAA |
| Primary button | 8.35:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Dry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 117.13);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.016 296.769);
--muted-foreground: oklch(0.452 0.018 296.378);
--popover: oklch(0.995 0.003 117.13);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.006 117.181);
--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.288 0.022 118.456);
--primary-foreground: oklch(0.828 0.028 117.694);
--secondary: oklch(0.253 0.023 295.394);
--secondary-foreground: oklch(0.784 0.029 296.409);
--accent: oklch(0.253 0.023 295.394);
--accent-foreground: oklch(0.784 0.029 296.409);
--destructive: oklch(0.466 0.187 28.698);
--destructive-foreground: oklch(0.946 0.025 17.605);
--ring: oklch(0.288 0.022 118.456);
--chart-1: oklch(0.288 0.022 118.456);
--chart-2: oklch(0.253 0.023 295.394);
--chart-3: oklch(0.253 0.023 295.394);
--chart-4: oklch(0.281 0.027 295.306);
--chart-5: oklch(0.291 0.026 118.689);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.166 0.025 118.93);
--foreground: oklch(0.981 0.005 117.173);
--muted: oklch(0.152 0.025 293.909);
--muted-foreground: oklch(0.712 0.016 296.685);
--popover: oklch(0.166 0.025 118.93);
--popover-foreground: oklch(0.981 0.005 117.173);
--card: oklch(0.183 0.029 119.628);
--card-foreground: oklch(0.987 0.003 117.141);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.288 0.022 118.456);
--primary-foreground: oklch(0.828 0.028 117.694);
--secondary: oklch(0.253 0.023 295.394);
--secondary-foreground: oklch(0.784 0.029 296.409);
--accent: oklch(0.253 0.023 295.394);
--accent-foreground: oklch(0.784 0.029 296.409);
--destructive: oklch(0.607 0.245 28.879);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.288 0.022 118.456);
--chart-1: oklch(0.288 0.022 118.456);
--chart-2: oklch(0.253 0.023 295.394);
--chart-3: oklch(0.253 0.023 295.394);
--chart-4: oklch(0.281 0.027 295.306);
--chart-5: oklch(0.291 0.026 118.689);
}