Blissful is a shadcn/ui theme built around a muted indigo primary color (#8a8bbc) with muted yellow accents (#bcbb8a). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted indigo primary (#8a8bbc) on an indigo-tinted background (#04040b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #04040bblack |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f4f4fbwhitesmoke | #05050fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #04040bblack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #8a8bbclightslategray | #8a8bbclightslategray |
| Primary foreground | #07080dblack | #07080dblack |
| Secondary | #bcbb8atan | #bcbb8atan |
| Secondary foreground | #0d0d07black | #0d0d07black |
| Muted | #e6e6e0gainsboro | #1f1f19black |
| Muted foreground | #5a5a58dimgray | #a7a7a5darkgray |
| Accent | #bcbb8atan | #bcbb8atan |
| Accent foreground | #0d0d07black | #0d0d07black |
| Destructive | #af3a08firebrick | #ea4e0borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8a8bbclightslategray | #8a8bbclightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 9.86:1 | AAA |
| Muted text | 5.50:1 | AA |
| Accent | 9.86:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 9.86:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 9.86:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Blissful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 285.51);
--foreground: oklch(0 0 0);
--muted: oklch(0.922 0.007 105.759);
--muted-foreground: oklch(0.467 0.003 105.723);
--popover: oklch(0.98 0.006 285.51);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.969 0.009 285.454);
--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.655 0.072 283.463);
--primary-foreground: oklch(0.135 0.012 283.741);
--secondary: oklch(0.781 0.065 107.011);
--secondary-foreground: oklch(0.156 0.011 106.873);
--accent: oklch(0.781 0.065 107.011);
--accent-foreground: oklch(0.156 0.011 106.873);
--destructive: oklch(0.514 0.161 38.747);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.655 0.072 283.463);
--chart-1: oklch(0.655 0.072 283.463);
--chart-2: oklch(0.781 0.065 107.011);
--chart-3: oklch(0.781 0.065 107.011);
--chart-4: oklch(0.8 0.06 106.875);
--chart-5: oklch(0.649 0.08 283.167);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.02 281.638);
--foreground: oklch(0.991 0.001 285.597);
--muted: oklch(0.236 0.01 106.362);
--muted-foreground: oklch(0.727 0.002 105.678);
--popover: oklch(0.113 0.02 281.638);
--popover-foreground: oklch(0.991 0.001 285.597);
--card: oklch(0.125 0.023 281.483);
--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.655 0.072 283.463);
--primary-foreground: oklch(0.135 0.012 283.741);
--secondary: oklch(0.781 0.065 107.011);
--secondary-foreground: oklch(0.156 0.011 106.873);
--accent: oklch(0.781 0.065 107.011);
--accent-foreground: oklch(0.156 0.011 106.873);
--destructive: oklch(0.634 0.202 38.26);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.655 0.072 283.463);
--chart-1: oklch(0.655 0.072 283.463);
--chart-2: oklch(0.781 0.065 107.011);
--chart-3: oklch(0.781 0.065 107.011);
--chart-4: oklch(0.8 0.06 106.875);
--chart-5: oklch(0.649 0.08 283.167);
}