Blissful is a shadcn/ui theme built around a deep purple primary color (#6b2957) with deep red accents (#6b2936). The light mode uses a neutral background (#fbf8fb). Dark mode keeps the deep purple primary (#6b2957) on a purple-tinted background (#0d070b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fbsnow | #0d070bblack |
| Foreground | #050103black | #fbf9fasnow |
| Card | #faf5f8whitesmoke | #11090eblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fbf8fbsnow | #0d070bblack |
| Popover foreground | #050103black | #fbf9fasnow |
| Primary | #6b2957purple | #6b2957purple |
| Primary foreground | #f0d6e8mistyrose | #f0d6e8mistyrose |
| Secondary | #5e296bdarkslateblue | #5e296bdarkslateblue |
| Secondary foreground | #ebd6f0lavender | #ebd6f0lavender |
| Muted | #e4e1e5gainsboro | #1d1a1eblack |
| Muted foreground | #4d4c4ddarkslategray | #b3b2b3darkgray |
| Accent | #6b2936saddlebrown | #6b2936saddlebrown |
| Accent foreground | #f0d6dbgainsboro | #f0d6dbgainsboro |
| Destructive | #862004darkred | #f95b2ftomato |
| Destructive foreground | #fdccbfpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6b2957purple | #6b2957purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.59:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 8.14:1 | AAA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.54:1 | AA |
Paste this into your globals.css to use Blissful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 335.953);
--foreground: oklch(0.082 0.026 336.628);
--muted: oklch(0.913 0.006 319.446);
--muted-foreground: oklch(0.417 0.003 319.446);
--popover: oklch(0.983 0.004 335.953);
--popover-foreground: oklch(0.082 0.026 336.628);
--card: oklch(0.975 0.007 335.997);
--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.392 0.112 340.913);
--primary-foreground: oklch(0.903 0.036 336.607);
--secondary: oklch(0.384 0.121 319.181);
--secondary-foreground: oklch(0.901 0.04 319.456);
--accent: oklch(0.38 0.096 10.546);
--accent-foreground: oklch(0.899 0.029 4.037);
--destructive: oklch(0.409 0.141 34.682);
--destructive-foreground: oklch(0.885 0.059 35.968);
--ring: oklch(0.392 0.112 340.913);
--chart-1: oklch(0.392 0.112 340.913);
--chart-2: oklch(0.384 0.121 319.181);
--chart-3: oklch(0.38 0.096 10.546);
--chart-4: oklch(0.41 0.131 319.167);
--chart-5: oklch(0.393 0.118 341.227);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.015 337.14);
--foreground: oklch(0.984 0.002 335.907);
--muted: oklch(0.223 0.009 319.455);
--muted-foreground: oklch(0.764 0.003 319.445);
--popover: oklch(0.141 0.015 337.14);
--popover-foreground: oklch(0.984 0.002 335.907);
--card: oklch(0.153 0.017 337.806);
--card-foreground: oklch(0.992 0.001 335.887);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.392 0.112 340.913);
--primary-foreground: oklch(0.903 0.036 336.607);
--secondary: oklch(0.384 0.121 319.181);
--secondary-foreground: oklch(0.901 0.04 319.456);
--accent: oklch(0.38 0.096 10.546);
--accent-foreground: oklch(0.899 0.029 4.037);
--destructive: oklch(0.674 0.201 35.848);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.392 0.112 340.913);
--chart-1: oklch(0.392 0.112 340.913);
--chart-2: oklch(0.384 0.121 319.181);
--chart-3: oklch(0.38 0.096 10.546);
--chart-4: oklch(0.41 0.131 319.167);
--chart-5: oklch(0.393 0.118 341.227);
}