Overjoyed for shadcn/ui

Overjoyed is a shadcn/ui theme built around a vivid light blue primary color (#a9b8f4) with vivid light green accents (#b8f4a9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#a9b8f4) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#ffffffwhite
#020203black
Foreground
#010204black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#030407black
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#020203black
Popover foreground
#010204black
#f9f9fbghostwhite
Primary
#a9b8f4lightsteelblue
#a9b8f4lightsteelblue
Primary foreground
#0c1c5fmidnightblue
#0c1c5fmidnightblue
Secondary
#f4a9b8lightpink
#f4a9b8lightpink
Secondary foreground
#5f0c1cmaroon
#5f0c1cmaroon
Muted
#ebdbdegainsboro
#241417black
Muted foreground
#554447darkslategray
#bbaaaddarkgray
Accent
#b8f4a9palegreen
#b8f4a9palegreen
Accent foreground
#1c5f0cdarkgreen
#1c5f0cdarkgreen
Destructive
#d42308firebrick
#e22508orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a9b8f4lightsteelblue
#a9b8f4lightsteelblue

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.54:1AAA
Primary button8.04:1AAA
Secondary button7.20:1AAA
Muted text6.80:1AA
Accent6.16:1AA
Destructive5.21:1AA
Dark mode
Text on background19.72:1AAA
Text on card19.97:1AAA
Primary button8.04:1AAA
Secondary button7.20:1AAA
Muted text7.97:1AAA
Accent6.16:1AA
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.079 0.015 266.211);
  --muted: oklch(0.905 0.019 3.748);
  --muted-foreground: oklch(0.406 0.024 4.726);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.079 0.015 266.211);
  --card: oklch(0.992 0 161.565);
  --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.792 0.088 273.396);
  --primary-foreground: oklch(0.269 0.12 266.602);
  --secondary: oklch(0.811 0.091 6.142);
  --secondary-foreground: oklch(0.318 0.115 16.727);
  --accent: oklch(0.909 0.118 139.453);
  --accent-foreground: oklch(0.428 0.131 140.469);
  --destructive: oklch(0.558 0.212 31.183);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.792 0.088 273.396);
  --chart-1: oklch(0.792 0.088 273.396);
  --chart-2: oklch(0.811 0.091 6.142);
  --chart-3: oklch(0.909 0.118 139.453);
  --chart-4: oklch(0.839 0.075 5.551);
  --chart-5: oklch(0.79 0.091 273.316);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.007 271.435);
  --foreground: oklch(0.984 0.002 275.014);
  --muted: oklch(0.214 0.028 6.692);
  --muted-foreground: oklch(0.754 0.02 3.893);
  --popover: oklch(0.086 0.007 271.435);
  --popover-foreground: oklch(0.984 0.002 275.014);
  --card: oklch(0.108 0.009 271.435);
  --card-foreground: oklch(0.992 0.001 275.024);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.792 0.088 273.396);
  --primary-foreground: oklch(0.269 0.12 266.602);
  --secondary: oklch(0.811 0.091 6.142);
  --secondary-foreground: oklch(0.318 0.115 16.727);
  --accent: oklch(0.909 0.118 139.453);
  --accent-foreground: oklch(0.428 0.131 140.469);
  --destructive: oklch(0.587 0.223 31.143);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.792 0.088 273.396);
  --chart-1: oklch(0.792 0.088 273.396);
  --chart-2: oklch(0.811 0.091 6.142);
  --chart-3: oklch(0.909 0.118 139.453);
  --chart-4: oklch(0.839 0.075 5.551);
  --chart-5: oklch(0.79 0.091 273.316);
}