Delightful is a shadcn/ui theme built around a green primary color (#79df72) with green accents (#72dfa1). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the green primary (#79df72) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #020302black |
| Foreground | #000000black | #f6f9f6whitesmoke |
| Card | #f8fdf7mintcream | #020302black |
| Card foreground | #000000black | #f6f9f6whitesmoke |
| Popover | #f8fdf7mintcream | #020302black |
| Popover foreground | #000000black | #f6f9f6whitesmoke |
| Primary | #79df72lightgreen | #79df72lightgreen |
| Primary foreground | #071906black | #071906black |
| Secondary | #b0df72darkkhaki | #b0df72darkkhaki |
| Secondary foreground | #111906black | #111906black |
| Muted | #d9dbd6gainsboro | #272924darkslategray |
| Muted foreground | #636f52dimgray | #a0ad90darkseagreen |
| Accent | #72dfa1mediumaquamarine | #72dfa1mediumaquamarine |
| Accent foreground | #06190eblack | #06190eblack |
| Destructive | #bc3a0bfirebrick | #f46f3etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #79df72lightgreen | #79df72lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 10.95:1 | AAA |
| Secondary button | 11.68:1 | AAA |
| Muted text | 3.84:1 | AA Large |
| Accent | 11.07:1 | AAA |
| Destructive | 5.59:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 10.95:1 | AAA |
| Secondary button | 11.68:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 11.07:1 | AAA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Delightful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.009 143.59);
--foreground: oklch(0 0 0);
--muted: oklch(0.889 0.008 125.854);
--muted-foreground: oklch(0.524 0.047 126.98);
--popover: oklch(0.987 0.009 143.59);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.009 143.59);
--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.817 0.175 142.466);
--primary-foreground: oklch(0.191 0.045 142.032);
--secondary: oklch(0.846 0.147 128.485);
--secondary-foreground: oklch(0.199 0.038 128.303);
--accent: oklch(0.822 0.135 156.813);
--accent-foreground: oklch(0.193 0.034 156.977);
--destructive: oklch(0.535 0.174 36.954);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.817 0.175 142.466);
--chart-1: oklch(0.817 0.175 142.466);
--chart-2: oklch(0.846 0.147 128.485);
--chart-3: oklch(0.822 0.135 156.813);
--chart-4: oklch(0.859 0.136 128.153);
--chart-5: oklch(0.822 0.182 142.429);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.012 142.517);
--foreground: oklch(0.979 0.005 143.61);
--muted: oklch(0.276 0.01 126.238);
--muted-foreground: oklch(0.728 0.043 126.551);
--popover: oklch(0.095 0.012 142.517);
--popover-foreground: oklch(0.979 0.005 143.61);
--card: oklch(0.095 0.012 142.517);
--card-foreground: oklch(0.979 0.005 143.61);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.817 0.175 142.466);
--primary-foreground: oklch(0.191 0.045 142.032);
--secondary: oklch(0.846 0.147 128.485);
--secondary-foreground: oklch(0.199 0.038 128.303);
--accent: oklch(0.822 0.135 156.813);
--accent-foreground: oklch(0.193 0.034 156.977);
--destructive: oklch(0.694 0.176 39.685);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.817 0.175 142.466);
--chart-1: oklch(0.817 0.175 142.466);
--chart-2: oklch(0.846 0.147 128.485);
--chart-3: oklch(0.822 0.135 156.813);
--chart-4: oklch(0.859 0.136 128.153);
--chart-5: oklch(0.822 0.182 142.429);
}