Dew is a shadcn/ui theme built around a muted blue primary color (#979db5) with muted light blue accents (#dbdce1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#979db5) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020204black |
| Foreground | #000000black | #f9fafaghostwhite |
| Card | #fcfcfcsnow | #030407black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #ffffffwhite | #020204black |
| Popover foreground | #000000black | #f9fafaghostwhite |
| Primary | #979db5darkgray | #979db5darkgray |
| Primary foreground | #0b0c0fblack | #0b0c0fblack |
| Secondary | #dbdce1gainsboro | #262626darkslategray |
| Secondary foreground | #3f414bdarkslategray | #bfbfbfsilver |
| Muted | #dcdde0gainsboro | #231f1fblack |
| Muted foreground | #42454cdarkslategray | #bdb3b3silver |
| Accent | #dbdce1gainsboro | #262626darkslategray |
| Accent foreground | #3f414bdarkslategray | #bfbfbfsilver |
| Destructive | #b51d12firebrick | #ea3b2ecrimson |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #979db5darkgray | #979db5darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 7.97:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 4.06:1 | AA Large |
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 0 0);
--muted: oklch(0.896 0.005 273.801);
--muted-foreground: oklch(0.39 0.014 273.444);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.699 0.036 273.226);
--primary-foreground: oklch(0.153 0.007 273.256);
--secondary: oklch(0.895 0.007 273.783);
--secondary-foreground: oklch(0.378 0.017 273.309);
--accent: oklch(0.895 0.007 273.783);
--accent-foreground: oklch(0.378 0.017 273.309);
--destructive: oklch(0.498 0.187 29.606);
--destructive-foreground: oklch(0.99 0.004 22.262);
--ring: oklch(0.699 0.036 273.226);
--chart-1: oklch(0.699 0.036 273.226);
--chart-2: oklch(0.895 0.007 273.783);
--chart-3: oklch(0.895 0.007 273.783);
--chart-4: oklch(0.92 0.005 273.804);
--chart-5: oklch(0.695 0.042 273.091);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.009 269.345);
--foreground: oklch(0.984 0.001 273.851);
--muted: oklch(0.244 0.007 17.653);
--muted-foreground: oklch(0.774 0.011 17.404);
--popover: oklch(0.085 0.009 269.345);
--popover-foreground: oklch(0.984 0.001 273.851);
--card: oklch(0.107 0.011 269.345);
--card-foreground: oklch(0.992 0.001 273.858);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.699 0.036 273.226);
--primary-foreground: oklch(0.153 0.007 273.256);
--secondary: oklch(0.27 0 180);
--secondary-foreground: oklch(0.805 0 169.695);
--accent: oklch(0.27 0 180);
--accent-foreground: oklch(0.805 0 169.695);
--destructive: oklch(0.618 0.214 28.976);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.699 0.036 273.226);
--chart-1: oklch(0.699 0.036 273.226);
--chart-2: oklch(0.27 0 180);
--chart-3: oklch(0.27 0 180);
--chart-4: oklch(0.301 0 189.462);
--chart-5: oklch(0.695 0.042 273.091);
}