Delight is a shadcn/ui theme built around a neutral gray primary color (#282a29) with neutral gray accents (#2a2928). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the neutral gray primary (#282a29) on a teal-tinted background (#04100f).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfdmintcream | #04100fblack |
| Foreground | #031715black | #ffffffwhite |
| Card | #f6fdfdmintcream | #04100fblack |
| Card foreground | #031715black | #ffffffwhite |
| Popover | #f6fdfdmintcream | #04100fblack |
| Popover foreground | #031715black | #ffffffwhite |
| Primary | #282a29darkslategray | #282a29darkslategray |
| Primary foreground | #c1c3c3silver | #c1c3c3silver |
| Secondary | #29282adarkslategray | #29282adarkslategray |
| Secondary foreground | #c3c1c3silver | #c3c1c3silver |
| Muted | #efe5f0lavender | #190f1ablack |
| Muted foreground | #483649darkslategray | #c7b6c9silver |
| Accent | #2a2928darkslategray | #2a2928darkslategray |
| Accent foreground | #c3c3c1silver | #c3c3c1silver |
| Destructive | #c54d11chocolate | #ed6c2cchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #282a29darkslategray | #282a29darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.97:1 | AAA |
| Text on card | 17.97:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 4.72:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 9.75:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 6.77:1 | AA |
Paste this into your globals.css to use Delight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 191.087);
--foreground: oklch(0.185 0.028 188.062);
--muted: oklch(0.934 0.018 323.221);
--muted-foreground: oklch(0.36 0.04 323.617);
--popover: oklch(0.99 0.007 191.087);
--popover-foreground: oklch(0.185 0.028 188.062);
--card: oklch(0.99 0.007 191.087);
--card-foreground: oklch(0.185 0.028 188.062);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.282 0.002 191.066);
--primary-foreground: oklch(0.815 0.003 191.177);
--secondary: oklch(0.279 0.004 323.195);
--secondary-foreground: oklch(0.812 0.004 323.158);
--accent: oklch(0.282 0.003 102.367);
--accent-foreground: oklch(0.816 0.003 102.274);
--destructive: oklch(0.574 0.166 41.811);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.282 0.002 191.066);
--chart-1: oklch(0.282 0.002 191.066);
--chart-2: oklch(0.279 0.004 323.195);
--chart-3: oklch(0.282 0.003 102.367);
--chart-4: oklch(0.31 0.004 323.197);
--chart-5: oklch(0.284 0.006 190.799);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.018 189.204);
--foreground: oklch(1 0 180);
--muted: oklch(0.187 0.026 323.729);
--muted-foreground: oklch(0.796 0.033 323.322);
--popover: oklch(0.161 0.018 189.204);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.161 0.018 189.204);
--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.282 0.002 191.066);
--primary-foreground: oklch(0.815 0.003 191.177);
--secondary: oklch(0.279 0.004 323.195);
--secondary-foreground: oklch(0.812 0.004 323.158);
--accent: oklch(0.282 0.003 102.367);
--accent-foreground: oklch(0.816 0.003 102.274);
--destructive: oklch(0.678 0.175 43.865);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.282 0.002 191.066);
--chart-1: oklch(0.282 0.002 191.066);
--chart-2: oklch(0.279 0.004 323.195);
--chart-3: oklch(0.282 0.003 102.367);
--chart-4: oklch(0.31 0.004 323.197);
--chart-5: oklch(0.284 0.006 190.799);
}