Black Cherry Dormouse for shadcn/ui

Black Cherry Dormouse is a shadcn/ui theme built around a deep pink primary color (#2f1825) with deep green accents (#182f23). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#2f1825) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#17030eblack
#f8f6f7whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#17030eblack
#f8f6f7whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#17030eblack
#f8f6f7whitesmoke
Primary
#2f1825black
#2f1825black
Primary foreground
#d3a7bfsilver
#d3a7bfsilver
Secondary
#182f23darkslategray
#182f23darkslategray
Secondary foreground
#a7d3bbsilver
#a7d3bbsilver
Muted
#cee3d8gainsboro
#1c3125darkslategray
Muted foreground
#474847darkslategray
#b7b8b8silver
Accent
#182f23darkslategray
#182f23darkslategray
Accent foreground
#a7d3bbsilver
#a7d3bbsilver
Destructive
#800d00maroon
#ff1900red
Destructive foreground
#ffbab3lightpink
#ffffffwhite
Border
#e9e2e6gainsboro
#281f24black
Input
#e9e2e6gainsboro
#281f24black
Ring
#2f1825black
#2f1825black

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button7.85:1AAA
Secondary button8.58:1AAA
Muted text6.84:1AA
Accent8.58:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button7.85:1AAA
Secondary button8.58:1AAA
Muted text6.97:1AA
Accent8.58:1AAA
Destructive3.89:1AA Large

CSS variables

Paste this into your globals.css to use Black Cherry Dormouse in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.047 347.067);
  --muted: oklch(0.898 0.028 161.833);
  --muted-foreground: oklch(0.4 0.002 162.477);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0.047 347.067);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.145 0.047 347.067);
  --border: oklch(0.92 0.008 342.83);
  --input: oklch(0.92 0.008 342.83);
  --primary: oklch(0.246 0.043 346.578);
  --primary-foreground: oklch(0.775 0.06 344.43);
  --secondary: oklch(0.283 0.038 158.601);
  --secondary-foreground: oklch(0.828 0.057 160.788);
  --accent: oklch(0.283 0.038 158.601);
  --accent-foreground: oklch(0.828 0.057 160.788);
  --destructive: oklch(0.382 0.148 31.096);
  --destructive-foreground: oklch(0.851 0.081 26.048);
  --ring: oklch(0.246 0.043 346.578);
  --chart-1: oklch(0.246 0.043 346.578);
  --chart-2: oklch(0.283 0.038 158.601);
  --chart-3: oklch(0.283 0.038 158.601);
  --chart-4: oklch(0.319 0.045 158.393);
  --chart-5: oklch(0.246 0.047 346.937);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.002 342.678);
  --muted: oklch(0.291 0.035 159.142);
  --muted-foreground: oklch(0.782 0.002 162.557);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.002 342.678);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.976 0.002 342.678);
  --border: oklch(0.253 0.016 344.066);
  --input: oklch(0.253 0.016 344.066);
  --primary: oklch(0.246 0.043 346.578);
  --primary-foreground: oklch(0.775 0.06 344.43);
  --secondary: oklch(0.283 0.038 158.601);
  --secondary-foreground: oklch(0.828 0.057 160.788);
  --accent: oklch(0.283 0.038 158.601);
  --accent-foreground: oklch(0.828 0.057 160.788);
  --destructive: oklch(0.634 0.252 30.244);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.246 0.043 346.578);
  --chart-1: oklch(0.246 0.043 346.578);
  --chart-2: oklch(0.283 0.038 158.601);
  --chart-3: oklch(0.283 0.038 158.601);
  --chart-4: oklch(0.319 0.045 158.393);
  --chart-5: oklch(0.246 0.047 346.937);
}