Dry is a shadcn/ui theme built around a near-white primary color (#f8fcf8) with near-white accents (#fcf8fc). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the near-white primary (#f8fcf8) on a green-tinted background (#050b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #050b04black |
| Foreground | #000000black | #f9faf9snow |
| Card | #f8fbf8mintcream | #060e06black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f8fbf8mintcream | #060e06black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #f8fcf8mintcream | #f8fcf8mintcream |
| Primary foreground | #1b421adarkgreen | #1b421adarkgreen |
| Secondary | #fcf8fcsnow | #fcf8fcsnow |
| Secondary foreground | #88378brebeccapurple | #88378brebeccapurple |
| Muted | #ebdaeclavender | #241325black |
| Muted foreground | #5f4e5fdimgray | #b0a0b1darkgray |
| Accent | #fcf8fcsnow | #fcf8fcsnow |
| Accent foreground | #88378brebeccapurple | #88378brebeccapurple |
| Destructive | #d00401red | #fe0f0bred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8fcf8mintcream | #f8fcf8mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 11.01:1 | AAA |
| Secondary button | 6.72:1 | AA |
| Muted text | 5.76:1 | AA |
| Accent | 6.72:1 | AA |
| Destructive | 5.67:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 11.01:1 | AAA |
| Secondary button | 6.72:1 | AA |
| Muted text | 7.10:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Dry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 144.602);
--foreground: oklch(0 0 0);
--muted: oklch(0.908 0.03 324.823);
--muted-foreground: oklch(0.447 0.035 325.101);
--popover: oklch(0.986 0.005 144.585);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.005 144.585);
--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.987 0.007 144.571);
--primary-foreground: oklch(0.339 0.079 142.996);
--secondary: oklch(0.983 0.007 324.666);
--secondary-foreground: oklch(0.481 0.153 326.31);
--accent: oklch(0.983 0.007 324.666);
--accent-foreground: oklch(0.481 0.153 326.31);
--destructive: oklch(0.54 0.22 29.359);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.987 0.007 144.571);
--chart-1: oklch(0.987 0.007 144.571);
--chart-2: oklch(0.983 0.007 324.666);
--chart-3: oklch(0.983 0.007 324.666);
--chart-4: oklch(1.009 0.004 144.595);
--chart-5: oklch(0.987 0.008 144.568);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.02 143.37);
--foreground: oklch(0.985 0.002 144.607);
--muted: oklch(0.22 0.041 325.706);
--muted-foreground: oklch(0.724 0.031 324.888);
--popover: oklch(0.154 0.023 143.384);
--popover-foreground: oklch(0.993 0.001 144.613);
--card: oklch(0.154 0.023 143.384);
--card-foreground: oklch(0.993 0.001 144.613);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.987 0.007 144.571);
--primary-foreground: oklch(0.339 0.079 142.996);
--secondary: oklch(0.983 0.007 324.666);
--secondary-foreground: oklch(0.481 0.153 326.31);
--accent: oklch(0.983 0.007 324.666);
--accent-foreground: oklch(0.481 0.153 326.31);
--destructive: oklch(0.629 0.254 29.1);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.987 0.007 144.571);
--chart-1: oklch(0.987 0.007 144.571);
--chart-2: oklch(0.983 0.007 324.666);
--chart-3: oklch(0.983 0.007 324.666);
--chart-4: oklch(1.009 0.004 144.595);
--chart-5: oklch(0.987 0.008 144.568);
}