Underground Yearning Desire for shadcn/ui

Underground Yearning Desire is a shadcn/ui theme built around a vivid pink primary color (#c9085c) with vivid red accents (#c91508). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid pink primary (#c9085c) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#ffffffwhite
#070305black
Foreground
#120309black
#fcf8fasnow
Card
#fcfcfcsnow
#0a0507black
Card foreground
#0d0207black
#fdfbfcsnow
Popover
#fcfcfcsnow
#0a0507black
Popover foreground
#0d0207black
#fdfbfcsnow
Primary
#c9085ccrimson
#c9085ccrimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c908bcmediumvioletred
#c908bcmediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1e5f0lavender
#1a0e1ablack
Muted foreground
#564855darkslategray
#b7a9b6darkgray
Accent
#c91508firebrick
#c91508firebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#99240abrown
#f2502ctomato
Destructive foreground
#fddfd9mistyrose
#ffffffwhite
Border
#ede8ealinen
#2b2126darkslategray
Input
#ede8ealinen
#2b2126darkslategray
Ring
#c9085ccrimson
#c9085ccrimson

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card19.97:1AAA
Primary button5.72:1AA
Secondary button4.95:1AA
Muted text6.98:1AA
Accent5.85:1AA
Destructive6.38:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.63:1AAA
Primary button5.72:1AA
Secondary button4.95:1AA
Muted text8.32:1AAA
Accent5.85:1AA
Destructive3.52:1AA Large

CSS variables

Paste this into your globals.css to use Underground Yearning Desire in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.036 350.81);
  --muted: oklch(0.933 0.019 327.749);
  --muted-foreground: oklch(0.421 0.028 328.189);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.118 0.032 348.893);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.118 0.032 348.893);
  --border: oklch(0.936 0.006 348.925);
  --input: oklch(0.936 0.006 348.925);
  --primary: oklch(0.539 0.213 5.77);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.58 0.259 331.894);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.531 0.209 29.764);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.451 0.157 33.32);
  --destructive-foreground: oklch(0.927 0.034 32.712);
  --ring: oklch(0.539 0.213 5.77);
  --chart-1: oklch(0.539 0.213 5.77);
  --chart-2: oklch(0.58 0.259 331.894);
  --chart-3: oklch(0.531 0.209 29.764);
  --chart-4: oklch(0.611 0.273 331.911);
  --chart-5: oklch(0.544 0.216 6.402);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.012 348.531);
  --foreground: oklch(0.982 0.005 348.865);
  --muted: oklch(0.188 0.029 328.945);
  --muted-foreground: oklch(0.75 0.025 327.864);
  --popover: oklch(0.126 0.014 348.539);
  --popover-foreground: oklch(0.991 0.002 348.799);
  --card: oklch(0.126 0.014 348.539);
  --card-foreground: oklch(0.991 0.002 348.799);
  --border: oklch(0.262 0.017 350.448);
  --input: oklch(0.262 0.017 350.448);
  --primary: oklch(0.539 0.213 5.77);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.58 0.259 331.894);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.531 0.209 29.764);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.651 0.204 33.993);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.539 0.213 5.77);
  --chart-1: oklch(0.539 0.213 5.77);
  --chart-2: oklch(0.58 0.259 331.894);
  --chart-3: oklch(0.531 0.209 29.764);
  --chart-4: oklch(0.611 0.273 331.911);
  --chart-5: oklch(0.544 0.216 6.402);
}