Merry for shadcn/ui

Merry is a shadcn/ui theme built around a light violet primary color (#dfbbed) with light green accents (#c8edbb). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light violet primary (#dfbbed) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#060208black
#f8f6f9whitesmoke
Card
#fdfbfewhite
#000000black
Card foreground
#060208black
#f8f6f9whitesmoke
Popover
#fdfbfewhite
#000000black
Popover foreground
#060208black
#f8f6f9whitesmoke
Primary
#dfbbedthistle
#dfbbedthistle
Primary foreground
#4b195dindigo
#4b195dindigo
Secondary
#c8edbblightgrey
#c8edbblightgrey
Secondary foreground
#2b5d19forestgreen
#2b5d19forestgreen
Muted
#dce1dbgainsboro
#20241eblack
Muted foreground
#42523ddarkslategray
#b3c2adsilver
Accent
#c8edbblightgrey
#c8edbblightgrey
Accent foreground
#2b5d19forestgreen
#2b5d19forestgreen
Destructive
#b50303darkred
#f10404red
Destructive foreground
#ffebeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dfbbedthistle
#dfbbedthistle

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button7.79:1AAA
Secondary button6.06:1AA
Muted text6.31:1AA
Accent6.06:1AA
Destructive6.16:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button7.79:1AAA
Secondary button6.06:1AA
Muted text8.42:1AAA
Accent6.06:1AA
Destructive4.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 317.18);
  --foreground: oklch(0.106 0.023 319.041);
  --muted: oklch(0.904 0.009 137.213);
  --muted-foreground: oklch(0.419 0.04 137.443);
  --popover: oklch(0.991 0.004 317.18);
  --popover-foreground: oklch(0.106 0.023 319.041);
  --card: oklch(0.991 0.004 317.18);
  --card-foreground: oklch(0.106 0.023 319.041);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.839 0.079 316.971);
  --primary-foreground: oklch(0.324 0.121 315.593);
  --secondary: oklch(0.906 0.077 137.412);
  --secondary-foreground: oklch(0.427 0.113 138.607);
  --accent: oklch(0.906 0.077 137.412);
  --accent-foreground: oklch(0.427 0.113 138.607);
  --destructive: oklch(0.486 0.198 29.086);
  --destructive-foreground: oklch(0.956 0.022 17.536);
  --ring: oklch(0.839 0.079 316.971);
  --chart-1: oklch(0.839 0.079 316.971);
  --chart-2: oklch(0.906 0.077 137.412);
  --chart-3: oklch(0.906 0.077 137.412);
  --chart-4: oklch(0.922 0.064 137.363);
  --chart-5: oklch(0.837 0.083 316.958);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.005 317.178);
  --muted: oklch(0.254 0.013 137.311);
  --muted-foreground: oklch(0.797 0.034 137.293);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.005 317.178);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.005 317.178);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.839 0.079 316.971);
  --primary-foreground: oklch(0.324 0.121 315.593);
  --secondary: oklch(0.906 0.077 137.412);
  --secondary-foreground: oklch(0.427 0.113 138.607);
  --accent: oklch(0.906 0.077 137.412);
  --accent-foreground: oklch(0.427 0.113 138.607);
  --destructive: oklch(0.603 0.246 29.13);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.839 0.079 316.971);
  --chart-1: oklch(0.839 0.079 316.971);
  --chart-2: oklch(0.906 0.077 137.412);
  --chart-3: oklch(0.906 0.077 137.412);
  --chart-4: oklch(0.922 0.064 137.363);
  --chart-5: oklch(0.837 0.083 316.958);
}