Overjoyed for shadcn/ui

Overjoyed is a shadcn/ui theme built around a muted green primary color (#518a58) with muted red accents (#8a5851). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#518a58) on a green-tinted background (#040b05).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b05black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#040b05black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#040b05black
Popover foreground
#000000black
#ffffffwhite
Primary
#518a58seagreen
#518a58seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#58518adarkslateblue
#58518adarkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6d5ddgainsboro
#23222adarkslategray
Muted foreground
#52515ddimgray
#a4a2aedarkgray
Accent
#8a5851sienna
#8a5851sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a51a0dfirebrick
#ed2e1dorangered
Destructive foreground
#fde9e7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#518a58seagreen
#518a58seagreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.08:1AA Large
Secondary button7.08:1AAA
Muted text5.33:1AA
Accent5.84:1AA
Destructive6.52:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button4.08:1AA Large
Secondary button7.08:1AAA
Muted text6.26:1AA
Accent5.84:1AA
Destructive4.20:1AA Large

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 0 0);
  --muted: oklch(0.875 0.012 291.531);
  --muted-foreground: oklch(0.439 0.02 290.916);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.581 0.097 146.894);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.468 0.091 287.696);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.514 0.068 27.87);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.465 0.175 30.068);
  --destructive-foreground: oklch(0.95 0.022 23.818);
  --ring: oklch(0.581 0.097 146.894);
  --chart-1: oklch(0.581 0.097 146.894);
  --chart-2: oklch(0.468 0.091 287.696);
  --chart-3: oklch(0.514 0.068 27.87);
  --chart-4: oklch(0.49 0.096 287.657);
  --chart-5: oklch(0.587 0.107 146.652);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.022 148.03);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.257 0.016 290.598);
  --muted-foreground: oklch(0.718 0.017 291.318);
  --popover: oklch(0.139 0.022 148.03);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.022 148.03);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.581 0.097 146.894);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.468 0.091 287.696);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.514 0.068 27.87);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.611 0.226 30.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.581 0.097 146.894);
  --chart-1: oklch(0.581 0.097 146.894);
  --chart-2: oklch(0.468 0.091 287.696);
  --chart-3: oklch(0.514 0.068 27.87);
  --chart-4: oklch(0.49 0.096 287.657);
  --chart-5: oklch(0.587 0.107 146.652);
}