Blissful for shadcn/ui

Blissful is a shadcn/ui theme built around a light violet primary color (#ddccef) with light green accents (#dfefcc). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the light violet primary (#ddccef) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#fcfbfewhite
#07050ablack
Foreground
#0c0514black
#faf9fbghostwhite
Card
#fcfbfewhite
#07050ablack
Card foreground
#0c0514black
#faf9fbghostwhite
Popover
#fcfbfewhite
#07050ablack
Popover foreground
#0c0514black
#faf9fbghostwhite
Primary
#ddccefgainsboro
#ddccefgainsboro
Primary foreground
#422069indigo
#422069indigo
Secondary
#dfefccgainsboro
#dfefccgainsboro
Secondary foreground
#121b08black
#121b08black
Muted
#f2f5f0whitesmoke
#0d0f0ablack
Muted foreground
#67705cdimgray
#9aa38fdarkseagreen
Accent
#dfefccgainsboro
#dfefccgainsboro
Accent foreground
#121b08black
#121b08black
Destructive
#66200bmaroon
#e74c1dchocolate
Destructive foreground
#f6bdaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ddccefgainsboro
#ddccefgainsboro

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button8.51:1AAA
Secondary button14.67:1AAA
Muted text4.70:1AA
Accent14.67:1AAA
Destructive7.23:1AAA
Dark mode
Text on background19.31:1AAA
Text on card19.31:1AAA
Primary button8.51:1AAA
Secondary button14.67:1AAA
Muted text7.34:1AAA
Accent14.67:1AAA
Destructive3.84: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.989 0.005 307.052);
  --foreground: oklch(0.139 0.035 305.214);
  --muted: oklch(0.966 0.006 127.194);
  --muted-foreground: oklch(0.532 0.033 127.899);
  --popover: oklch(0.989 0.005 307.052);
  --popover-foreground: oklch(0.139 0.035 305.214);
  --card: oklch(0.989 0.005 307.052);
  --card-foreground: oklch(0.139 0.035 305.214);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.87 0.051 306.397);
  --primary-foreground: oklch(0.333 0.122 301.48);
  --secondary: oklch(0.932 0.05 127.781);
  --secondary-foreground: oklch(0.209 0.037 129.624);
  --accent: oklch(0.932 0.05 127.781);
  --accent-foreground: oklch(0.209 0.037 129.624);
  --destructive: oklch(0.349 0.105 36.629);
  --destructive-foreground: oklch(0.846 0.07 37.599);
  --ring: oklch(0.87 0.051 306.397);
  --chart-1: oklch(0.87 0.051 306.397);
  --chart-2: oklch(0.932 0.05 127.781);
  --chart-3: oklch(0.932 0.05 127.781);
  --chart-4: oklch(0.948 0.038 127.614);
  --chart-5: oklch(0.869 0.054 306.355);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.015 307.932);
  --foreground: oklch(0.983 0.003 307.069);
  --muted: oklch(0.164 0.01 127.879);
  --muted-foreground: oklch(0.703 0.031 127.663);
  --popover: oklch(0.123 0.015 307.932);
  --popover-foreground: oklch(0.983 0.003 307.069);
  --card: oklch(0.123 0.015 307.932);
  --card-foreground: oklch(0.983 0.003 307.069);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.87 0.051 306.397);
  --primary-foreground: oklch(0.333 0.122 301.48);
  --secondary: oklch(0.932 0.05 127.781);
  --secondary-foreground: oklch(0.209 0.037 129.624);
  --accent: oklch(0.932 0.05 127.781);
  --accent-foreground: oklch(0.209 0.037 129.624);
  --destructive: oklch(0.629 0.199 36.119);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.87 0.051 306.397);
  --chart-1: oklch(0.87 0.051 306.397);
  --chart-2: oklch(0.932 0.05 127.781);
  --chart-3: oklch(0.932 0.05 127.781);
  --chart-4: oklch(0.948 0.038 127.614);
  --chart-5: oklch(0.869 0.054 306.355);
}