Wingman for shadcn/ui

Wingman is a shadcn/ui theme built around a muted deep purple primary color (#0c080b) with muted deep pink accents (#0c0809). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#0c080b) on a purple-tinted background (#0e060c).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e060cblack
Foreground
#040104black
#faf4f9whitesmoke
Card
#ffffffwhite
#0e060cblack
Card foreground
#040104black
#faf4f9whitesmoke
Popover
#ffffffwhite
#0e060cblack
Popover foreground
#040104black
#faf4f9whitesmoke
Primary
#0c080bblack
#0c080bblack
Primary foreground
#b592addarkgray
#b592addarkgray
Secondary
#0b080cblack
#0b080cblack
Secondary foreground
#ab92b5darkgray
#ab92b5darkgray
Muted
#e9e5eblavender
#18141ablack
Muted foreground
#443f46darkslategray
#beb9c0silver
Accent
#0c0809black
#0c0809black
Accent foreground
#b5929crosybrown
#b5929crosybrown
Destructive
#c73d0ffirebrick
#f16d41tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c080bblack
#0c080bblack

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button7.26:1AAA
Secondary button7.11:1AAA
Muted text8.26:1AAA
Accent7.15:1AAA
Destructive5.11:1AA
Dark mode
Text on background18.42:1AAA
Text on card18.42:1AAA
Primary button7.26:1AAA
Secondary button7.11:1AAA
Muted text9.42:1AAA
Accent7.15:1AAA
Destructive7.00:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.083 0.025 333.758);
  --muted: oklch(0.927 0.008 316.582);
  --muted-foreground: oklch(0.375 0.013 316.509);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.083 0.025 333.758);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.083 0.025 333.758);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.143 0.01 333.41);
  --primary-foreground: oklch(0.7 0.056 333.809);
  --secondary: oklch(0.142 0.01 316.667);
  --secondary-foreground: oklch(0.693 0.057 316.365);
  --accent: oklch(0.142 0.007 358.244);
  --accent-foreground: oklch(0.694 0.044 359.467);
  --destructive: oklch(0.558 0.182 36.331);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.143 0.01 333.41);
  --chart-1: oklch(0.143 0.01 333.41);
  --chart-2: oklch(0.142 0.01 316.667);
  --chart-3: oklch(0.142 0.007 358.244);
  --chart-4: oklch(0.175 0.016 316.344);
  --chart-5: oklch(0.142 0.011 333.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.02 334.167);
  --foreground: oklch(0.974 0.009 332.761);
  --muted: oklch(0.199 0.012 316.427);
  --muted-foreground: oklch(0.793 0.011 316.57);
  --popover: oklch(0.14 0.02 334.167);
  --popover-foreground: oklch(0.974 0.009 332.761);
  --card: oklch(0.14 0.02 334.167);
  --card-foreground: oklch(0.974 0.009 332.761);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.143 0.01 333.41);
  --primary-foreground: oklch(0.7 0.056 333.809);
  --secondary: oklch(0.142 0.01 316.667);
  --secondary-foreground: oklch(0.693 0.057 316.365);
  --accent: oklch(0.142 0.007 358.244);
  --accent-foreground: oklch(0.694 0.044 359.467);
  --destructive: oklch(0.688 0.173 38.588);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.143 0.01 333.41);
  --chart-1: oklch(0.143 0.01 333.41);
  --chart-2: oklch(0.142 0.01 316.667);
  --chart-3: oklch(0.142 0.007 358.244);
  --chart-4: oklch(0.175 0.016 316.344);
  --chart-5: oklch(0.142 0.011 333.525);
}