Wingman for shadcn/ui

Wingman is a shadcn/ui theme built around an indigo primary color (#907dd8) with green accents (#c6d87d). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the indigo primary (#907dd8) on an indigo-tinted background (#06050a).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06050ablack
Foreground
#060411black
#fcfcfdwhite
Card
#f8f7fdghostwhite
#08070eblack
Card foreground
#05030cblack
#ffffffwhite
Popover
#f8f7fdghostwhite
#08070eblack
Popover foreground
#05030cblack
#ffffffwhite
Primary
#907dd8mediumpurple
#907dd8mediumpurple
Primary foreground
#000000black
#000000black
Secondary
#c6d87ddarkkhaki
#c6d87ddarkkhaki
Secondary foreground
#181b08black
#181b08black
Muted
#f2f4eblinen
#12140bblack
Muted foreground
#676c56dimgray
#a4a993darkgray
Accent
#c6d87ddarkkhaki
#c6d87ddarkkhaki
Accent foreground
#181b08black
#181b08black
Destructive
#641202maroon
#fc5331tomato
Destructive foreground
#fdab9blightsalmon
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#907dd8mediumpurple
#907dd8mediumpurple

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.20:1AAA
Primary button6.12:1AA
Secondary button11.30:1AAA
Muted text4.91:1AA
Accent11.30:1AAA
Destructive7.02:1AAA
Dark mode
Text on background19.81:1AAA
Text on card20.09:1AAA
Primary button6.12:1AA
Secondary button11.30:1AAA
Muted text7.67:1AAA
Accent11.30:1AAA
Destructive6.41:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 295.5);
  --foreground: oklch(0.12 0.032 293.101);
  --muted: oklch(0.964 0.012 115.812);
  --muted-foreground: oklch(0.52 0.033 116.737);
  --popover: oklch(0.978 0.008 295.419);
  --popover-foreground: oklch(0.109 0.028 294.129);
  --card: oklch(0.978 0.008 295.419);
  --card-foreground: oklch(0.109 0.028 294.129);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.646 0.134 291.394);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.849 0.117 118.233);
  --secondary-foreground: oklch(0.214 0.034 118.7);
  --accent: oklch(0.849 0.117 118.233);
  --accent-foreground: oklch(0.214 0.034 118.7);
  --destructive: oklch(0.33 0.118 33.434);
  --destructive-foreground: oklch(0.817 0.101 31.779);
  --ring: oklch(0.646 0.134 291.394);
  --chart-1: oklch(0.646 0.134 291.394);
  --chart-2: oklch(0.849 0.117 118.233);
  --chart-3: oklch(0.849 0.117 118.233);
  --chart-4: oklch(0.863 0.108 117.944);
  --chart-5: oklch(0.642 0.141 291.092);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.015 295.017);
  --foreground: oklch(0.99 0.002 295.533);
  --muted: oklch(0.185 0.018 117.378);
  --muted-foreground: oklch(0.725 0.03 116.347);
  --popover: oklch(0.132 0.017 294.391);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.132 0.017 294.391);
  --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.646 0.134 291.394);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.849 0.117 118.233);
  --secondary-foreground: oklch(0.214 0.034 118.7);
  --accent: oklch(0.849 0.117 118.233);
  --accent-foreground: oklch(0.214 0.034 118.7);
  --destructive: oklch(0.671 0.211 33.185);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.646 0.134 291.394);
  --chart-1: oklch(0.646 0.134 291.394);
  --chart-2: oklch(0.849 0.117 118.233);
  --chart-3: oklch(0.849 0.117 118.233);
  --chart-4: oklch(0.863 0.108 117.944);
  --chart-5: oklch(0.642 0.141 291.092);
}