Delightful is a shadcn/ui theme built around a vivid light red primary color (#fdf1f1) with vivid light indigo accents (#f1f1fd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#fdf1f1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040101black | #fcf8f8snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040101black | #fcf8f8snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040101black | #fcf8f8snow |
| Primary | #fdf1f1lavenderblush | #fdf1f1lavenderblush |
| Primary foreground | #a71616firebrick | #a71616firebrick |
| Secondary | #f1fdf1honeydew | #f1fdf1honeydew |
| Secondary foreground | #0a4d0adarkgreen | #0a4d0adarkgreen |
| Muted | #d0e7d0gainsboro | #182f18black |
| Muted foreground | #5a685adimgray | #97a597darkseagreen |
| Accent | #f1f1fdaliceblue | #f1f1fdaliceblue |
| Accent foreground | #3d3de6royalblue | #3d3de6royalblue |
| Destructive | #73210cmaroon | #de3f17orangered |
| Destructive foreground | #f8c6balightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdf1f1lavenderblush | #fdf1f1lavenderblush |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 9.67:1 | AAA |
| Muted text | 4.48:1 | AA Large |
| Accent | 6.25:1 | AA |
| Destructive | 7.04:1 | AAA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 9.67:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 4.36: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.079 0.019 22.344);
--muted: oklch(0.904 0.039 145.242);
--muted-foreground: oklch(0.5 0.027 145.159);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.079 0.019 22.344);
--card: oklch(1 0 180);
--card-foreground: oklch(0.079 0.019 22.344);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.969 0.013 17.376);
--primary-foreground: oklch(0.467 0.178 27.746);
--secondary: oklch(0.983 0.02 145.423);
--secondary-foreground: oklch(0.366 0.115 142.766);
--accent: oklch(0.963 0.016 286.101);
--accent-foreground: oklch(0.487 0.244 272.669);
--destructive: oklch(0.376 0.12 34.682);
--destructive-foreground: oklch(0.867 0.059 34.389);
--ring: oklch(0.969 0.013 17.376);
--chart-1: oklch(0.969 0.013 17.376);
--chart-2: oklch(0.983 0.02 145.423);
--chart-3: oklch(0.963 0.016 286.101);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.968 0.013 17.385);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 17.229);
--muted: oklch(0.28 0.05 144.085);
--muted-foreground: oklch(0.707 0.025 145.307);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.004 17.229);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.004 17.229);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.969 0.013 17.376);
--primary-foreground: oklch(0.467 0.178 27.746);
--secondary: oklch(0.983 0.02 145.423);
--secondary-foreground: oklch(0.366 0.115 142.766);
--accent: oklch(0.963 0.016 286.101);
--accent-foreground: oklch(0.487 0.244 272.669);
--destructive: oklch(0.598 0.201 34.232);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.969 0.013 17.376);
--chart-1: oklch(0.969 0.013 17.376);
--chart-2: oklch(0.983 0.02 145.423);
--chart-3: oklch(0.963 0.016 286.101);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.968 0.013 17.385);
}