Delightful is a shadcn/ui theme built around a muted deep teal primary color (#324849) with neutral gray accents (#d9dddd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#324849) on a teal-tinted background (#050f10).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050f10black |
| Foreground | #030c0cblack | #f6f9f9whitesmoke |
| Card | #fcfcfcsnow | #061314black |
| Card foreground | #020808black | #f9fbfbghostwhite |
| Popover | #fcfcfcsnow | #061314black |
| Popover foreground | #020808black | #f9fbfbghostwhite |
| Primary | #324849darkslategray | #324849darkslategray |
| Primary foreground | #cededegainsboro | #cededegainsboro |
| Secondary | #d9ddddgainsboro | #2e3333darkslategray |
| Secondary foreground | #3e4646darkslategray | #c6cdcdlightgrey |
| Muted | #eef2f2whitesmoke | #0d1111black |
| Muted foreground | #585f5fdimgray | #a0a7a7darkgray |
| Accent | #d9ddddgainsboro | #2e3333darkslategray |
| Accent foreground | #3e4646darkslategray | #c6cdcdlightgrey |
| Destructive | #dc0909red | #f62828crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #324849darkslategray | #324849darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.09:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 7.09:1 | AAA |
| Destructive | 5.12:1 | AA |
| Text on background | 18.29:1 | AAA |
| Text on card | 18.17:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Delightful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.017 196.595);
--muted: oklch(0.957 0.004 198.292);
--muted-foreground: oklch(0.48 0.009 198.085);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.126 0.015 196.484);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.126 0.015 196.484);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.385 0.028 197.364);
--primary-foreground: oklch(0.888 0.016 198.09);
--secondary: oklch(0.895 0.005 198.286);
--secondary-foreground: oklch(0.388 0.01 197.977);
--accent: oklch(0.895 0.005 198.286);
--accent-foreground: oklch(0.388 0.01 197.977);
--destructive: oklch(0.565 0.228 28.921);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.028 197.364);
--chart-1: oklch(0.385 0.028 197.364);
--chart-2: oklch(0.895 0.005 198.286);
--chart-3: oklch(0.895 0.005 198.286);
--chart-4: oklch(0.918 0.004 198.304);
--chart-5: oklch(0.389 0.032 197.257);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.017 196.865);
--foreground: oklch(0.979 0.003 198.311);
--muted: oklch(0.175 0.007 197.816);
--muted-foreground: oklch(0.722 0.008 198.193);
--popover: oklch(0.176 0.019 196.901);
--popover-foreground: oklch(0.986 0.002 198.328);
--card: oklch(0.176 0.019 196.901);
--card-foreground: oklch(0.986 0.002 198.328);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.385 0.028 197.364);
--primary-foreground: oklch(0.888 0.016 198.09);
--secondary: oklch(0.317 0.008 197.998);
--secondary-foreground: oklch(0.842 0.007 198.239);
--accent: oklch(0.317 0.008 197.998);
--accent-foreground: oklch(0.842 0.007 198.239);
--destructive: oklch(0.625 0.237 27.603);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.028 197.364);
--chart-1: oklch(0.385 0.028 197.364);
--chart-2: oklch(0.317 0.008 197.998);
--chart-3: oklch(0.317 0.008 197.998);
--chart-4: oklch(0.348 0.009 197.987);
--chart-5: oklch(0.389 0.032 197.257);
}