Joyous for shadcn/ui

Joyous is a shadcn/ui theme built around a muted light purple primary color (#f8f7f8) with muted light pink accents (#f8f7f8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#f8f7f8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0b020dblack
#fbf9fbsnow
Card
#ffffffwhite
#000000black
Card foreground
#0b020dblack
#fbf9fbsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#0b020dblack
#fbf9fbsnow
Primary
#f8f7f8whitesmoke
#f8f7f8whitesmoke
Primary foreground
#655469dimgray
#655469dimgray
Secondary
#f7f7f8whitesmoke
#f7f7f8whitesmoke
Secondary foreground
#5b5469dimgray
#5b5469dimgray
Muted
#ecebeflavender
#111014black
Muted foreground
#615b6bdimgray
#9994a4darkgray
Accent
#f8f7f8whitesmoke
#f8f7f8whitesmoke
Accent foreground
#695462dimgray
#695462dimgray
Destructive
#aa3609firebrick
#f46a34tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8f7f8whitesmoke
#f8f7f8whitesmoke

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button6.47:1AA
Secondary button6.70:1AA
Muted text5.51:1AA
Accent6.43:1AA
Destructive6.48:1AA
Dark mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button6.47:1AA
Secondary button6.70:1AA
Muted text6.43:1AA
Accent6.43:1AA
Destructive6.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.038 322.514);
  --muted: oklch(0.943 0.005 301.4);
  --muted-foreground: oklch(0.484 0.026 300.627);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.038 322.514);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.038 322.514);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.976 0.003 320.536);
  --primary-foreground: oklch(0.471 0.039 320.654);
  --secondary: oklch(0.976 0.002 301.455);
  --secondary-foreground: oklch(0.46 0.034 300.286);
  --accent: oklch(0.976 0.002 337.313);
  --accent-foreground: oklch(0.472 0.034 338.675);
  --destructive: oklch(0.499 0.158 37.936);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.976 0.003 320.536);
  --chart-1: oklch(0.976 0.003 320.536);
  --chart-2: oklch(0.976 0.002 301.455);
  --chart-3: oklch(0.976 0.002 337.313);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.976 0.003 320.537);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.003 320.536);
  --muted: oklch(0.176 0.008 300.737);
  --muted-foreground: oklch(0.675 0.024 300.923);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.003 320.536);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.003 320.536);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.976 0.003 320.536);
  --primary-foreground: oklch(0.471 0.039 320.654);
  --secondary: oklch(0.976 0.002 301.455);
  --secondary-foreground: oklch(0.46 0.034 300.286);
  --accent: oklch(0.976 0.002 337.313);
  --accent-foreground: oklch(0.472 0.034 338.675);
  --destructive: oklch(0.687 0.183 40.428);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.976 0.003 320.536);
  --chart-1: oklch(0.976 0.003 320.536);
  --chart-2: oklch(0.976 0.002 301.455);
  --chart-3: oklch(0.976 0.002 337.313);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.976 0.003 320.537);
}