Blissful for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.78:1AAA
Text on card19.18:1AAA
Primary button6.21:1AA
Secondary button9.86:1AAA
Muted text5.50:1AA
Accent9.86:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.92:1AAA
Text on card20.24:1AAA
Primary button6.21:1AA
Secondary button9.86:1AAA
Muted text6.88:1AA
Accent9.86:1AAA
Destructive3.76:1AA Large

CSS variables

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);
}