Wan for shadcn/ui

Wan is a shadcn/ui theme built around a near-black primary color (#0a040c) with near-black accents (#0c0409). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the near-black primary (#0a040c) on a purple-tinted background (#0d050f).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#0d050fblack
Foreground
#0b030dblack
#fdfcfdwhite
Card
#fbf7fdghostwhite
#0d050fblack
Card foreground
#0b030dblack
#fdfcfdwhite
Popover
#fbf7fdghostwhite
#0d050fblack
Popover foreground
#0b030dblack
#fdfcfdwhite
Primary
#0a040cblack
#0a040cblack
Primary foreground
#be6ed4mediumorchid
#be6ed4mediumorchid
Secondary
#06040cblack
#06040cblack
Secondary foreground
#cabcebthistle
#cabcebthistle
Muted
#e2e0e5gainsboro
#1b1a1fblack
Muted foreground
#423d4cdarkslategray
#b7b3c2silver
Accent
#0c0409black
#0c0409black
Accent foreground
#d46eb7orchid
#d46eb7orchid
Destructive
#b61f11firebrick
#e92716orangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a040cblack
#0a040cblack

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button6.16:1AA
Secondary button11.57:1AAA
Muted text8.02:1AAA
Accent6.48:1AA
Destructive6.40:1AA
Dark mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button6.16:1AA
Secondary button11.57:1AAA
Muted text8.46:1AAA
Accent6.48:1AA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 318.888);
  --foreground: oklch(0.119 0.033 320.697);
  --muted: oklch(0.911 0.007 299.173);
  --muted-foreground: oklch(0.371 0.026 298.082);
  --popover: oklch(0.982 0.008 318.888);
  --popover-foreground: oklch(0.119 0.033 320.697);
  --card: oklch(0.982 0.008 318.888);
  --card-foreground: oklch(0.119 0.033 320.697);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.122 0.026 320.454);
  --primary-foreground: oklch(0.664 0.166 318.642);
  --secondary: oklch(0.114 0.024 299.183);
  --secondary-foreground: oklch(0.822 0.066 297.902);
  --accent: oklch(0.123 0.025 336.044);
  --accent-foreground: oklch(0.678 0.155 339.026);
  --destructive: oklch(0.501 0.187 30.057);
  --destructive-foreground: oklch(0.99 0.004 23.622);
  --ring: oklch(0.122 0.026 320.454);
  --chart-1: oklch(0.122 0.026 320.454);
  --chart-2: oklch(0.114 0.024 299.183);
  --chart-3: oklch(0.123 0.025 336.044);
  --chart-4: oklch(0.146 0.036 295.299);
  --chart-5: oklch(0.121 0.028 320.507);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.028 319.528);
  --foreground: oklch(0.991 0.003 318.89);
  --muted: oklch(0.22 0.01 298.523);
  --muted-foreground: oklch(0.774 0.022 298.82);
  --popover: oklch(0.135 0.028 319.528);
  --popover-foreground: oklch(0.991 0.003 318.89);
  --card: oklch(0.135 0.028 319.528);
  --card-foreground: oklch(0.991 0.003 318.89);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.122 0.026 320.454);
  --primary-foreground: oklch(0.664 0.166 318.642);
  --secondary: oklch(0.114 0.024 299.183);
  --secondary-foreground: oklch(0.822 0.066 297.902);
  --accent: oklch(0.123 0.025 336.044);
  --accent-foreground: oklch(0.678 0.155 339.026);
  --destructive: oklch(0.601 0.228 30.083);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.122 0.026 320.454);
  --chart-1: oklch(0.122 0.026 320.454);
  --chart-2: oklch(0.114 0.024 299.183);
  --chart-3: oklch(0.123 0.025 336.044);
  --chart-4: oklch(0.146 0.036 295.299);
  --chart-5: oklch(0.121 0.028 320.507);
}