Dry is a shadcn/ui theme built around a deep violet primary color (#0c0816) with deep green accents (#08160c). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the deep violet primary (#0c0816) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #000000black |
| Foreground | #05030dblack | #ffffffwhite |
| Card | #f9f7fdghostwhite | #000000black |
| Card foreground | #05030dblack | #ffffffwhite |
| Popover | #f9f7fdghostwhite | #000000black |
| Popover foreground | #05030dblack | #ffffffwhite |
| Primary | #0c0816black | #0c0816black |
| Primary foreground | #9781cfmediumpurple | #9781cfmediumpurple |
| Secondary | #160c08black | #160c08black |
| Secondary foreground | #cf9781rosybrown | #cf9781rosybrown |
| Muted | #f2ebe8linen | #17100dblack |
| Muted foreground | #69615ddimgray | #a29996darkgray |
| Accent | #08160cblack | #08160cblack |
| Accent foreground | #41aa5emediumseagreen | #41aa5emediumseagreen |
| Destructive | #cc4400chocolate | #f05000orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c0816black | #0c0816black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.28:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 4.77:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Dry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 299.181);
--foreground: oklch(0.109 0.03 299.025);
--muted: oklch(0.945 0.009 43.044);
--muted-foreground: oklch(0.499 0.012 42.925);
--popover: oklch(0.98 0.007 299.181);
--popover-foreground: oklch(0.109 0.03 299.025);
--card: oklch(0.98 0.007 299.181);
--card-foreground: oklch(0.109 0.03 299.025);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.15 0.03 295.877);
--primary-foreground: oklch(0.656 0.116 296.093);
--secondary: oklch(0.168 0.019 42.861);
--secondary-foreground: oklch(0.726 0.075 42.501);
--accent: oklch(0.185 0.028 152.052);
--accent-foreground: oklch(0.659 0.147 149.747);
--destructive: oklch(0.573 0.182 39.341);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.15 0.03 295.877);
--chart-1: oklch(0.15 0.03 295.877);
--chart-2: oklch(0.168 0.019 42.861);
--chart-3: oklch(0.185 0.028 152.052);
--chart-4: oklch(0.203 0.027 42.345);
--chart-5: oklch(0.149 0.032 295.677);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.18 0.014 42.618);
--muted-foreground: oklch(0.689 0.011 42.988);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.15 0.03 295.877);
--primary-foreground: oklch(0.656 0.116 296.093);
--secondary: oklch(0.168 0.019 42.861);
--secondary-foreground: oklch(0.726 0.075 42.501);
--accent: oklch(0.185 0.028 152.052);
--accent-foreground: oklch(0.659 0.147 149.747);
--destructive: oklch(0.646 0.207 38.939);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.15 0.03 295.877);
--chart-1: oklch(0.15 0.03 295.877);
--chart-2: oklch(0.168 0.019 42.861);
--chart-3: oklch(0.185 0.028 152.052);
--chart-4: oklch(0.203 0.027 42.345);
--chart-5: oklch(0.149 0.032 295.677);
}