Crewmen for shadcn/ui

Crewmen is a shadcn/ui theme built around a vivid deep purple primary color (#24041b) with vivid deep green accents (#04240e). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid deep purple primary (#24041b) on a purple-tinted background (#0f050c).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#0f050cblack
Foreground
#040103black
#ffffffwhite
Card
#fcf8fbsnow
#0f050cblack
Card foreground
#040103black
#ffffffwhite
Popover
#fcf8fbsnow
#0f050cblack
Popover foreground
#040103black
#ffffffwhite
Primary
#24041bblack
#24041bblack
Primary foreground
#ed6ec7orchid
#ed6ec7orchid
Secondary
#04240eblack
#04240eblack
Secondary foreground
#1bda54limegreen
#1bda54limegreen
Muted
#eaf6edhoneydew
#09150dblack
Muted foreground
#5d655fdimgray
#9aa29ddarkgray
Accent
#04240eblack
#04240eblack
Accent foreground
#1bda54limegreen
#1bda54limegreen
Destructive
#710e05maroon
#f63928orangered
Destructive foreground
#fcb2aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#24041bblack
#24041bblack

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button6.88:1AA
Secondary button8.83:1AAA
Muted text5.39:1AA
Accent8.83:1AAA
Destructive6.87:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button6.88:1AA
Secondary button8.83:1AAA
Muted text7.12:1AAA
Accent8.83:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 335.956);
  --foreground: oklch(0.085 0.018 336.408);
  --muted: oklch(0.961 0.016 155.542);
  --muted-foreground: oklch(0.497 0.013 155.371);
  --popover: oklch(0.983 0.005 335.956);
  --popover-foreground: oklch(0.085 0.018 336.408);
  --card: oklch(0.983 0.005 335.956);
  --card-foreground: oklch(0.085 0.018 336.408);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.186 0.064 341.662);
  --primary-foreground: oklch(0.717 0.186 340.428);
  --secondary: oklch(0.231 0.056 150.016);
  --secondary-foreground: oklch(0.775 0.225 146.916);
  --accent: oklch(0.231 0.056 150.016);
  --accent-foreground: oklch(0.775 0.225 146.916);
  --destructive: oklch(0.352 0.133 30.336);
  --destructive-foreground: oklch(0.832 0.087 24.901);
  --ring: oklch(0.186 0.064 341.662);
  --chart-1: oklch(0.186 0.064 341.662);
  --chart-2: oklch(0.231 0.056 150.016);
  --chart-3: oklch(0.231 0.056 150.016);
  --chart-4: oklch(0.279 0.072 148.958);
  --chart-5: oklch(0.186 0.066 341.822);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.024 337.78);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.024 153.047);
  --muted-foreground: oklch(0.704 0.012 155.548);
  --popover: oklch(0.138 0.024 337.78);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.024 337.78);
  --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.186 0.064 341.662);
  --primary-foreground: oklch(0.717 0.186 340.428);
  --secondary: oklch(0.231 0.056 150.016);
  --secondary-foreground: oklch(0.775 0.225 146.916);
  --accent: oklch(0.231 0.056 150.016);
  --accent-foreground: oklch(0.775 0.225 146.916);
  --destructive: oklch(0.636 0.227 29.843);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.186 0.064 341.662);
  --chart-1: oklch(0.186 0.064 341.662);
  --chart-2: oklch(0.231 0.056 150.016);
  --chart-3: oklch(0.231 0.056 150.016);
  --chart-4: oklch(0.279 0.072 148.958);
  --chart-5: oklch(0.186 0.066 341.822);
}