Blissful for shadcn/ui

Blissful is a shadcn/ui theme built around a vivid deep green primary color (#4e5e08) with vivid deep purple accents (#5e084e). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid deep green primary (#4e5e08) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#fefefbwhite
#030402black
Foreground
#0f1202black
#f8f8f7whitesmoke
Card
#fefefbwhite
#030402black
Card foreground
#0f1202black
#f8f8f7whitesmoke
Popover
#fefefbwhite
#030402black
Popover foreground
#0f1202black
#f8f8f7whitesmoke
Primary
#4e5e08darkolivegreen
#4e5e08darkolivegreen
Primary foreground
#e7f7a1palegoldenrod
#e7f7a1palegoldenrod
Secondary
#084e5edarkslategray
#084e5edarkslategray
Secondary foreground
#a1e7f7paleturquoise
#a1e7f7paleturquoise
Muted
#dae1e2gainsboro
#1d2425black
Muted foreground
#4e656adimgray
#95acb1darkgray
Accent
#5e084eindigo
#5e084eindigo
Accent foreground
#f7a1e7plum
#f7a1e7plum
Destructive
#662200maroon
#ff6619orangered
Destructive foreground
#ffbb99burlywood
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4e5e08darkolivegreen
#4e5e08darkolivegreen

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button6.18:1AA
Secondary button6.71:1AA
Muted text4.65:1AA
Accent6.89:1AA
Destructive7.14:1AAA
Dark mode
Text on background19.36:1AAA
Text on card19.36:1AAA
Primary button6.18:1AA
Secondary button6.71:1AA
Muted text6.62:1AA
Accent6.89:1AA
Destructive7.16:1AAA

CSS variables

Paste this into your globals.css to use Blissful in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.005 114.911);
  --foreground: oklch(0.175 0.034 117.402);
  --muted: oklch(0.904 0.008 212.67);
  --muted-foreground: oklch(0.489 0.028 212.918);
  --popover: oklch(0.996 0.005 114.911);
  --popover-foreground: oklch(0.175 0.034 117.402);
  --card: oklch(0.996 0.005 114.911);
  --card-foreground: oklch(0.175 0.034 117.402);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.454 0.105 120.631);
  --primary-foreground: oklch(0.946 0.111 117.035);
  --secondary: oklch(0.394 0.068 218.259);
  --secondary-foreground: oklch(0.888 0.074 213.242);
  --accent: oklch(0.333 0.138 337.636);
  --accent-foreground: oklch(0.816 0.135 333.595);
  --destructive: oklch(0.352 0.106 42.086);
  --destructive-foreground: oklch(0.847 0.091 47.611);
  --ring: oklch(0.454 0.105 120.631);
  --chart-1: oklch(0.454 0.105 120.631);
  --chart-2: oklch(0.394 0.068 218.259);
  --chart-3: oklch(0.333 0.138 337.636);
  --chart-4: oklch(0.434 0.075 218.555);
  --chart-5: oklch(0.459 0.107 120.779);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.01 115.339);
  --foreground: oklch(0.979 0.002 114.866);
  --muted: oklch(0.254 0.011 212.793);
  --muted-foreground: oklch(0.729 0.026 212.759);
  --popover: oklch(0.1 0.01 115.339);
  --popover-foreground: oklch(0.979 0.002 114.866);
  --card: oklch(0.1 0.01 115.339);
  --card-foreground: oklch(0.979 0.002 114.866);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.454 0.105 120.631);
  --primary-foreground: oklch(0.946 0.111 117.035);
  --secondary: oklch(0.394 0.068 218.259);
  --secondary-foreground: oklch(0.888 0.074 213.242);
  --accent: oklch(0.333 0.138 337.636);
  --accent-foreground: oklch(0.816 0.135 333.595);
  --destructive: oklch(0.696 0.202 41.791);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.454 0.105 120.631);
  --chart-1: oklch(0.454 0.105 120.631);
  --chart-2: oklch(0.394 0.068 218.259);
  --chart-3: oklch(0.333 0.138 337.636);
  --chart-4: oklch(0.434 0.075 218.555);
  --chart-5: oklch(0.459 0.107 120.779);
}