Merry for shadcn/ui

Merry is a shadcn/ui theme built around a vivid violet primary color (#c552ef) with muted light violet accents (#d4cbd7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#c552ef) on a neutral background (#070208).

Color palette

TokenLightDark
Background
#ffffffwhite
#070208black
Foreground
#100613black
#fdfcfdwhite
Card
#ffffffwhite
#070208black
Card foreground
#100613black
#fdfcfdwhite
Popover
#ffffffwhite
#070208black
Popover foreground
#100613black
#fdfcfdwhite
Primary
#c552efmediumorchid
#c552efmediumorchid
Primary foreground
#000000black
#000000black
Secondary
#d4cbd7lightgrey
#2e2d2edarkslategray
Secondary foreground
#3c313fdarkslategray
#c7c6c7silver
Muted
#e9e6eblavender
#181419black
Muted foreground
#5a575cdimgray
#a7a3a8darkgray
Accent
#d4cbd7lightgrey
#2e2d2edarkslategray
Accent foreground
#3c313fdarkslategray
#c7c6c7silver
Destructive
#8e0d0bdarkred
#ee1a17red
Destructive foreground
#fbd0d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c552efmediumorchid
#c552efmediumorchid

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button5.84:1AA
Secondary button7.82:1AAA
Muted text5.73:1AA
Accent7.82:1AAA
Destructive6.78:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button5.84:1AA
Secondary button8.01:1AAA
Muted text7.30:1AAA
Accent8.01:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.032 317.025);
  --muted: oklch(0.928 0.008 317.17);
  --muted-foreground: oklch(0.461 0.01 317.14);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.032 317.025);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.032 317.025);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.653 0.237 315.713);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.853 0.019 317.139);
  --secondary-foreground: oklch(0.33 0.029 316.986);
  --accent: oklch(0.853 0.019 317.139);
  --accent-foreground: oklch(0.33 0.029 316.986);
  --destructive: oklch(0.413 0.161 28.592);
  --destructive-foreground: oklch(0.895 0.049 19.246);
  --ring: oklch(0.653 0.237 315.713);
  --chart-1: oklch(0.653 0.237 315.713);
  --chart-2: oklch(0.853 0.019 317.139);
  --chart-3: oklch(0.853 0.019 317.139);
  --chart-4: oklch(0.878 0.016 317.149);
  --chart-5: oklch(0.653 0.243 315.615);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.025 319.27);
  --foreground: oklch(0.992 0.002 317.185);
  --muted: oklch(0.2 0.011 317.059);
  --muted-foreground: oklch(0.721 0.009 317.161);
  --popover: oklch(0.104 0.025 319.27);
  --popover-foreground: oklch(0.992 0.002 317.185);
  --card: oklch(0.104 0.025 319.27);
  --card-foreground: oklch(0.992 0.002 317.185);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.653 0.237 315.713);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.3 0.002 317.175);
  --secondary-foreground: oklch(0.829 0.002 317.184);
  --accent: oklch(0.3 0.002 317.175);
  --accent-foreground: oklch(0.829 0.002 317.184);
  --destructive: oklch(0.602 0.237 28.723);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.653 0.237 315.713);
  --chart-1: oklch(0.653 0.237 315.713);
  --chart-2: oklch(0.3 0.002 317.175);
  --chart-3: oklch(0.3 0.002 317.175);
  --chart-4: oklch(0.33 0.002 317.174);
  --chart-5: oklch(0.653 0.243 315.615);
}