Merry for shadcn/ui

Merry is a shadcn/ui theme built around a muted deep green primary color (#414a3f) with muted light green accents (#d1dfce). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the muted deep green primary (#414a3f) on a green-tinted background (#060b05).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#060b05black
Foreground
#020401black
#fcfdfbsnow
Card
#f8fdf7mintcream
#060b05black
Card foreground
#020401black
#fcfdfbsnow
Popover
#f8fdf7mintcream
#060b05black
Popover foreground
#020401black
#fcfdfbsnow
Primary
#414a3fdarkslategray
#414a3fdarkslategray
Primary foreground
#dce1dbgainsboro
#dce1dbgainsboro
Secondary
#e3e9e2gainsboro
#171e15black
Secondary foreground
#465742darkslategray
#aac0a5darkgray
Muted
#dbe2d9gainsboro
#1e261dblack
Muted foreground
#5b6b57dimgray
#98a894darkseagreen
Accent
#d1dfcelightgrey
#263a22darkslategray
Accent foreground
#354a30darkslategray
#bdd6b8silver
Destructive
#c13e01firebrick
#fe702ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#414a3fdarkslategray
#414a3fdarkslategray

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button6.91:1AA
Secondary button6.30:1AA
Muted text4.32:1AA Large
Accent6.95:1AA
Destructive5.32:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button6.91:1AA
Secondary button8.76:1AAA
Muted text6.20:1AA
Accent7.85:1AAA
Destructive7.59:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 139.983);
  --foreground: oklch(0.098 0.016 138.415);
  --muted: oklch(0.906 0.015 139.976);
  --muted-foreground: oklch(0.507 0.036 139.932);
  --popover: oklch(0.988 0.009 139.983);
  --popover-foreground: oklch(0.098 0.016 138.415);
  --card: oklch(0.988 0.009 139.983);
  --card-foreground: oklch(0.098 0.016 138.415);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.399 0.022 139.944);
  --primary-foreground: oklch(0.903 0.009 139.983);
  --secondary: oklch(0.928 0.011 139.98);
  --secondary-foreground: oklch(0.436 0.041 139.919);
  --accent: oklch(0.888 0.028 139.963);
  --accent-foreground: oklch(0.384 0.05 139.909);
  --destructive: oklch(0.547 0.176 38.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.399 0.022 139.944);
  --chart-1: oklch(0.399 0.022 139.944);
  --chart-2: oklch(0.928 0.011 139.98);
  --chart-3: oklch(0.888 0.028 139.963);
  --chart-4: oklch(0.95 0.008 139.984);
  --chart-5: oklch(0.402 0.03 139.93);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.018 138.76);
  --foreground: oklch(0.994 0.003 139.988);
  --muted: oklch(0.257 0.02 139.927);
  --muted-foreground: oklch(0.713 0.033 139.951);
  --popover: oklch(0.139 0.018 138.76);
  --popover-foreground: oklch(0.994 0.003 139.988);
  --card: oklch(0.139 0.018 138.76);
  --card-foreground: oklch(0.994 0.003 139.988);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.399 0.022 139.944);
  --primary-foreground: oklch(0.903 0.009 139.983);
  --secondary: oklch(0.224 0.02 139.922);
  --secondary-foreground: oklch(0.783 0.043 139.944);
  --accent: oklch(0.325 0.05 139.913);
  --accent-foreground: oklch(0.85 0.049 139.941);
  --destructive: oklch(0.71 0.188 42.486);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.399 0.022 139.944);
  --chart-1: oklch(0.399 0.022 139.944);
  --chart-2: oklch(0.224 0.02 139.922);
  --chart-3: oklch(0.325 0.05 139.913);
  --chart-4: oklch(0.259 0.024 139.918);
  --chart-5: oklch(0.402 0.03 139.93);
}