Joyous for shadcn/ui

Joyous is a shadcn/ui theme built around a neutral gray primary color (#e2e1df) with muted light yellow accents (#dad8cd). The light mode uses a neutral background (#fefefb). Dark mode keeps the neutral gray primary (#e2e1df) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fefefbwhite
#070603black
Foreground
#050401black
#fbfbf9snow
Card
#fdfcf7snow
#0a0a05black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fefefbwhite
#070603black
Popover foreground
#050401black
#fbfbf9snow
Primary
#e2e1dfgainsboro
#e2e1dfgainsboro
Primary foreground
#4a4945darkslategray
#4a4945darkslategray
Secondary
#e5e5e1gainsboro
#2b2a21darkslategray
Secondary foreground
#504e44darkslategray
#c8c5b7silver
Muted
#e7e5dagainsboro
#252418black
Muted foreground
#494846darkslategray
#b9b9b6silver
Accent
#dad8cdlightgrey
#454230darkslategray
Accent foreground
#434132darkslategray
#dbd9cclightgrey
Destructive
#d92408firebrick
#f62d0eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2e1dfgainsboro
#e2e1dfgainsboro

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.44:1AAA
Primary button6.90:1AA
Secondary button6.59:1AA
Muted text7.24:1AAA
Accent7.21:1AAA
Destructive5.01:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.50:1AAA
Primary button6.90:1AA
Secondary button8.33:1AAA
Muted text7.97:1AAA
Accent7.09:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 99.391);
  --foreground: oklch(0.105 0.018 103.846);
  --muted: oklch(0.921 0.016 99.588);
  --muted-foreground: oklch(0.403 0.004 99.49);
  --popover: oklch(0.995 0.003 99.391);
  --popover-foreground: oklch(0.105 0.018 103.846);
  --card: oklch(0.99 0.007 99.44);
  --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.91 0.003 99.388);
  --primary-foreground: oklch(0.406 0.008 99.63);
  --secondary: oklch(0.92 0.005 99.425);
  --secondary-foreground: oklch(0.423 0.017 99.884);
  --accent: oklch(0.882 0.015 99.592);
  --accent-foreground: oklch(0.373 0.025 100.213);
  --destructive: oklch(0.568 0.216 31.169);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.003 99.388);
  --chart-1: oklch(0.91 0.003 99.388);
  --chart-2: oklch(0.92 0.005 99.425);
  --chart-3: oklch(0.882 0.015 99.592);
  --chart-4: oklch(0.942 0.004 99.401);
  --chart-5: oklch(0.912 0.005 99.422);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.011 101.828);
  --foreground: oklch(0.987 0.003 99.385);
  --muted: oklch(0.257 0.021 100.356);
  --muted-foreground: oklch(0.784 0.003 99.407);
  --popover: oklch(0.124 0.011 101.828);
  --popover-foreground: oklch(0.987 0.003 99.385);
  --card: oklch(0.142 0.012 101.799);
  --card-foreground: oklch(0.994 0.001 99.363);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.91 0.003 99.388);
  --primary-foreground: oklch(0.406 0.008 99.63);
  --secondary: oklch(0.283 0.015 100.066);
  --secondary-foreground: oklch(0.822 0.02 99.685);
  --accent: oklch(0.378 0.03 100.331);
  --accent-foreground: oklch(0.884 0.018 99.639);
  --destructive: oklch(0.627 0.236 31.265);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.003 99.388);
  --chart-1: oklch(0.91 0.003 99.388);
  --chart-2: oklch(0.283 0.015 100.066);
  --chart-3: oklch(0.378 0.03 100.331);
  --chart-4: oklch(0.316 0.018 100.093);
  --chart-5: oklch(0.912 0.005 99.422);
}