Overjoyed for shadcn/ui

Overjoyed is a shadcn/ui theme built around a light green primary color (#d8f4d7) with muted light green accents (#c8dfc8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#d8f4d7) on a green-tinted background (#060f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#060f05black
Foreground
#051505black
#fcfdfcwhite
Card
#ffffffwhite
#060f05black
Card foreground
#051505black
#fcfdfcwhite
Popover
#ffffffwhite
#060f05black
Popover foreground
#051505black
#fcfdfcwhite
Primary
#d8f4d7gainsboro
#d8f4d7gainsboro
Primary foreground
#0c280bblack
#0c280bblack
Secondary
#e7efe7beige
#2b2c2adarkslategray
Secondary foreground
#192518black
#c3c6c3silver
Muted
#d2e5d2gainsboro
#1a2d1ablack
Muted foreground
#5f685edimgray
#97a197darkgray
Accent
#c8dfc8lightgrey
#3d483ddarkslategray
Accent foreground
#2b4a2bdarkslategray
#d9ded8gainsboro
Destructive
#770a08maroon
#f13f3btomato
Destructive foreground
#fab9b7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d8f4d7gainsboro
#d8f4d7gainsboro

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button13.43:1AAA
Secondary button13.52:1AAA
Muted text4.37:1AA Large
Accent7.03:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button13.43:1AAA
Secondary button8.13:1AAA
Muted text5.45:1AA
Accent7.04:1AAA
Destructive3.80: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.174 0.04 143.196);
  --muted: oklch(0.902 0.033 144.842);
  --muted-foreground: oklch(0.507 0.02 144.826);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.174 0.04 143.196);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.174 0.04 143.196);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.938 0.047 144.74);
  --primary-foreground: oklch(0.245 0.06 143.187);
  --secondary: oklch(0.943 0.014 144.998);
  --secondary-foreground: oklch(0.248 0.028 144.256);
  --accent: oklch(0.881 0.04 144.776);
  --accent-foreground: oklch(0.377 0.065 143.805);
  --destructive: oklch(0.364 0.141 28.512);
  --destructive-foreground: oklch(0.844 0.076 19.898);
  --ring: oklch(0.938 0.047 144.74);
  --chart-1: oklch(0.938 0.047 144.74);
  --chart-2: oklch(0.943 0.014 144.998);
  --chart-3: oklch(0.881 0.04 144.776);
  --chart-4: oklch(0.964 0.009 145.038);
  --chart-5: oklch(0.939 0.05 144.721);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.027 143.692);
  --foreground: oklch(0.993 0.001 145.092);
  --muted: oklch(0.276 0.043 143.934);
  --muted-foreground: oklch(0.697 0.018 144.917);
  --popover: oklch(0.155 0.027 143.692);
  --popover-foreground: oklch(0.993 0.001 145.092);
  --card: oklch(0.155 0.027 143.692);
  --card-foreground: oklch(0.993 0.001 145.092);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.938 0.047 144.74);
  --primary-foreground: oklch(0.245 0.06 143.187);
  --secondary: oklch(0.292 0.004 145.006);
  --secondary-foreground: oklch(0.823 0.004 145.066);
  --accent: oklch(0.387 0.022 144.688);
  --accent-foreground: oklch(0.895 0.01 145.024);
  --destructive: oklch(0.635 0.216 26.614);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0.047 144.74);
  --chart-1: oklch(0.938 0.047 144.74);
  --chart-2: oklch(0.292 0.004 145.006);
  --chart-3: oklch(0.387 0.022 144.688);
  --chart-4: oklch(0.322 0.005 145.002);
  --chart-5: oklch(0.939 0.05 144.721);
}