Blissful is a shadcn/ui theme built around a deep red primary color (#5b2620) with deep indigo accents (#26205b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#5b2620) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #090201black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #090201black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #090201black | #ffffffwhite |
| Primary | #5b2620saddlebrown | #5b2620saddlebrown |
| Primary foreground | #eac7c3pink | #eac7c3pink |
| Secondary | #205b26darkslategray | #205b26darkslategray |
| Secondary foreground | #c3eac7lightgrey | #c3eac7lightgrey |
| Muted | #d6dbd7gainsboro | #242924darkslategray |
| Muted foreground | #4b534cdarkslategray | #acb4addarkgray |
| Accent | #26205bmidnightblue | #26205bmidnightblue |
| Accent foreground | #c7c3eathistle | #c7c3eathistle |
| Destructive | #913203saddlebrown | #fb7837coral |
| Destructive foreground | #fedac8bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b2620saddlebrown | #5b2620saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 5.67:1 | AA |
| Accent | 8.65:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 7.00:1 | AAA |
| Accent | 8.65:1 | AAA |
| Destructive | 7.85:1 | AAA |
Paste this into your globals.css to use Blissful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.021 32.91);
--muted: oklch(0.887 0.007 148.499);
--muted-foreground: oklch(0.433 0.015 148.192);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.021 32.91);
--card: oklch(1 0 180);
--card-foreground: oklch(0.104 0.021 32.91);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.341 0.079 28.347);
--primary-foreground: oklch(0.857 0.041 25.445);
--secondary: oklch(0.418 0.103 145.18);
--secondary-foreground: oklch(0.899 0.063 147.782);
--accent: oklch(0.288 0.101 282.483);
--accent-foreground: oklch(0.832 0.055 289.742);
--destructive: oklch(0.451 0.137 40.816);
--destructive-foreground: oklch(0.914 0.047 48.185);
--ring: oklch(0.341 0.079 28.347);
--chart-1: oklch(0.341 0.079 28.347);
--chart-2: oklch(0.418 0.103 145.18);
--chart-3: oklch(0.288 0.101 282.483);
--chart-4: oklch(0.453 0.114 145.121);
--chart-5: oklch(0.342 0.084 28.607);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.273 0.01 148.178);
--muted-foreground: oklch(0.761 0.013 148.397);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.341 0.079 28.347);
--primary-foreground: oklch(0.857 0.041 25.445);
--secondary: oklch(0.418 0.103 145.18);
--secondary-foreground: oklch(0.899 0.063 147.782);
--accent: oklch(0.288 0.101 282.483);
--accent-foreground: oklch(0.832 0.055 289.742);
--destructive: oklch(0.717 0.177 44.446);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.341 0.079 28.347);
--chart-1: oklch(0.341 0.079 28.347);
--chart-2: oklch(0.418 0.103 145.18);
--chart-3: oklch(0.288 0.101 282.483);
--chart-4: oklch(0.453 0.114 145.121);
--chart-5: oklch(0.342 0.084 28.607);
}