Desire for shadcn/ui

Desire is a shadcn/ui theme built around a near-black primary color (#161816) with near-black accents (#181616). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#161816) on a green-tinted background (#080d07).

Color palette

TokenLightDark
Background
#ffffffwhite
#080d07black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#0a1109black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#0a1109black
Popover foreground
#000000black
#ffffffwhite
Primary
#161816black
#161816black
Primary foreground
#aeb2aedarkgray
#aeb2aedarkgray
Secondary
#161618black
#161618black
Secondary foreground
#aeaeb2darkgray
#aeaeb2darkgray
Muted
#e9eaf2lavender
#0d0f16black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#181616black
#181616black
Accent foreground
#b2aeaedarkgray
#b2aeaedarkgray
Destructive
#d24914chocolate
#ee7444coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#161816black
#161816black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.32:1AAA
Secondary button8.14:1AAA
Muted text6.82:1AA
Accent8.19:1AAA
Destructive4.45:1AA Large
Dark mode
Text on background19.57:1AAA
Text on card19.17:1AAA
Primary button8.32:1AAA
Secondary button8.14:1AAA
Muted text8.83:1AAA
Accent8.19:1AAA
Destructive7.22:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.938 0.01 278.158);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.206 0.003 141.031);
  --primary-foreground: oklch(0.76 0.008 141.042);
  --secondary: oklch(0.203 0.002 278.15);
  --secondary-foreground: oklch(0.752 0.006 278.206);
  --accent: oklch(0.203 0.002 6.87);
  --accent-foreground: oklch(0.754 0.006 6.779);
  --destructive: oklch(0.59 0.182 38.528);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.206 0.003 141.031);
  --chart-1: oklch(0.206 0.003 141.031);
  --chart-2: oklch(0.203 0.002 278.15);
  --chart-3: oklch(0.203 0.002 6.87);
  --chart-4: oklch(0.235 0.003 278.132);
  --chart-5: oklch(0.207 0.006 140.997);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.016 140.305);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.17 0.016 276.765);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.166 0.019 140.688);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.166 0.019 140.688);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.206 0.003 141.031);
  --primary-foreground: oklch(0.76 0.008 141.042);
  --secondary: oklch(0.203 0.002 278.15);
  --secondary-foreground: oklch(0.752 0.006 278.206);
  --accent: oklch(0.203 0.002 6.87);
  --accent-foreground: oklch(0.754 0.006 6.779);
  --destructive: oklch(0.694 0.163 41.254);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.206 0.003 141.031);
  --chart-1: oklch(0.206 0.003 141.031);
  --chart-2: oklch(0.203 0.002 278.15);
  --chart-3: oklch(0.203 0.002 6.87);
  --chart-4: oklch(0.235 0.003 278.132);
  --chart-5: oklch(0.207 0.006 140.997);
}