Delightful is a shadcn/ui theme built around a deep pink primary color (#1d0615) with deep blue accents (#06151d). The light mode uses a neutral background (#fefbfd). Dark mode keeps the deep pink primary (#1d0615) on a neutral background (#080306).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #080306black |
| Foreground | #090106black | #f8f7f8whitesmoke |
| Card | #fefbfdsnow | #080306black |
| Card foreground | #090106black | #f8f7f8whitesmoke |
| Popover | #fefbfdsnow | #080306black |
| Popover foreground | #090106black | #f8f7f8whitesmoke |
| Primary | #1d0615black | #1d0615black |
| Primary foreground | #e175bborchid | #e175bborchid |
| Secondary | #151d06black | #151d06black |
| Secondary foreground | #8fc52byellowgreen | #8fc52byellowgreen |
| Muted | #daded3gainsboro | #282c21darkslategray |
| Muted foreground | #4d5440darkolivegreen | #b8bfabsilver |
| Accent | #06151dblack | #06151dblack |
| Accent foreground | #75bbe1skyblue | #75bbe1skyblue |
| Destructive | #a1140cfirebrick | #d51a10firebrick |
| Destructive foreground | #fde4e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d0615black | #1d0615black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 8.76:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 8.76:1 | AAA |
| Destructive | 5.25:1 | AA |
Paste this into your globals.css to use Delightful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 338.078);
--foreground: oklch(0.103 0.032 338.475);
--muted: oklch(0.896 0.016 122.495);
--muted-foreground: oklch(0.432 0.032 123.395);
--popover: oklch(0.991 0.004 338.078);
--popover-foreground: oklch(0.103 0.032 338.475);
--card: oklch(0.991 0.004 338.078);
--card-foreground: oklch(0.103 0.032 338.475);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.172 0.047 342.985);
--primary-foreground: oklch(0.706 0.157 342.263);
--secondary: oklch(0.217 0.042 125.587);
--secondary-foreground: oklch(0.757 0.183 127.739);
--accent: oklch(0.188 0.027 233.383);
--accent-foreground: oklch(0.76 0.089 233.188);
--destructive: oklch(0.454 0.175 29.306);
--destructive-foreground: oklch(0.938 0.028 21.279);
--ring: oklch(0.172 0.047 342.985);
--chart-1: oklch(0.172 0.047 342.985);
--chart-2: oklch(0.217 0.042 125.587);
--chart-3: oklch(0.188 0.027 233.383);
--chart-4: oklch(0.265 0.055 126.276);
--chart-5: oklch(0.172 0.049 343.159);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.019 338.28);
--foreground: oklch(0.976 0.002 338.034);
--muted: oklch(0.285 0.021 123.4);
--muted-foreground: oklch(0.793 0.028 122.763);
--popover: oklch(0.108 0.019 338.28);
--popover-foreground: oklch(0.976 0.002 338.034);
--card: oklch(0.108 0.019 338.28);
--card-foreground: oklch(0.976 0.002 338.034);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.172 0.047 342.985);
--primary-foreground: oklch(0.706 0.157 342.263);
--secondary: oklch(0.217 0.042 125.587);
--secondary-foreground: oklch(0.757 0.183 127.739);
--accent: oklch(0.188 0.027 233.383);
--accent-foreground: oklch(0.76 0.089 233.188);
--destructive: oklch(0.557 0.217 29.395);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.172 0.047 342.985);
--chart-1: oklch(0.172 0.047 342.985);
--chart-2: oklch(0.217 0.042 125.587);
--chart-3: oklch(0.188 0.027 233.383);
--chart-4: oklch(0.265 0.055 126.276);
--chart-5: oklch(0.172 0.049 343.159);
}