Dew is a shadcn/ui theme built around a vivid deep red primary color (#130204) with muted light red accents (#e6e0e1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#130204) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070304black |
| Foreground | #080203black | #fbf8f9snow |
| Card | #ffffffwhite | #070304black |
| Card foreground | #080203black | #fbf8f9snow |
| Popover | #ffffffwhite | #070304black |
| Popover foreground | #080203black | #fbf8f9snow |
| Primary | #130204black | #130204black |
| Primary foreground | #f05670indianred | #f05670indianred |
| Secondary | #e6e0e1gainsboro | #261d1eblack |
| Secondary foreground | #524245darkslategray | #c4b1b4silver |
| Muted | #e6d6d9gainsboro | #29191cblack |
| Muted foreground | #5f494ddimgray | #b6a0a4darkgray |
| Accent | #e6e0e1gainsboro | #261d1eblack |
| Accent foreground | #524245darkslategray | #c4b1b4silver |
| Destructive | #782f08saddlebrown | #f06114chocolate |
| Destructive foreground | #facfb7peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #130204black | #130204black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 7.23:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Dew in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.016 5.959);
--muted: oklch(0.889 0.018 5.967);
--muted-foreground: oklch(0.43 0.03 7.238);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.016 5.959);
--card: oklch(1 0 180);
--card-foreground: oklch(0.106 0.016 5.959);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.127 0.04 8.422);
--primary-foreground: oklch(0.665 0.189 14.041);
--secondary: oklch(0.911 0.007 5.644);
--secondary-foreground: oklch(0.396 0.023 6.917);
--accent: oklch(0.911 0.007 5.644);
--accent-foreground: oklch(0.396 0.023 6.917);
--destructive: oklch(0.403 0.112 43.512);
--destructive-foreground: oklch(0.885 0.059 49.873);
--ring: oklch(0.127 0.04 8.422);
--chart-1: oklch(0.127 0.04 8.422);
--chart-2: oklch(0.911 0.007 5.644);
--chart-3: oklch(0.911 0.007 5.644);
--chart-4: oklch(0.936 0.005 5.586);
--chart-5: oklch(0.126 0.041 8.583);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.014 5.894);
--foreground: oklch(0.983 0.003 5.54);
--muted: oklch(0.236 0.026 8.255);
--muted-foreground: oklch(0.726 0.026 6.371);
--popover: oklch(0.107 0.014 5.894);
--popover-foreground: oklch(0.983 0.003 5.54);
--card: oklch(0.107 0.014 5.894);
--card-foreground: oklch(0.983 0.003 5.54);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.127 0.04 8.422);
--primary-foreground: oklch(0.665 0.189 14.041);
--secondary: oklch(0.24 0.015 7.017);
--secondary-foreground: oklch(0.776 0.023 6.195);
--accent: oklch(0.24 0.015 7.017);
--accent-foreground: oklch(0.776 0.023 6.195);
--destructive: oklch(0.667 0.192 42.631);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.127 0.04 8.422);
--chart-1: oklch(0.127 0.04 8.422);
--chart-2: oklch(0.24 0.015 7.017);
--chart-3: oklch(0.24 0.015 7.017);
--chart-4: oklch(0.271 0.018 7.115);
--chart-5: oklch(0.126 0.041 8.583);
}