Crew for shadcn/ui

Crew is a shadcn/ui theme built around a vivid deep violet primary color (#13021d) with vivid deep teal accents (#021d13). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the vivid deep violet primary (#13021d) on a violet-tinted background (#0b060e).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#0b060eblack
Foreground
#000000black
#fdfcfdwhite
Card
#fbf7fdghostwhite
#0b060eblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#fbf7fdghostwhite
#0b060eblack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#13021dblack
#13021dblack
Primary foreground
#e5bcfathistle
#e5bcfathistle
Secondary
#1d1302black
#1d1302black
Secondary foreground
#db940fgoldenrod
#db940fgoldenrod
Muted
#f0eae0beige
#1f190fblack
Muted foreground
#6d6554dimgray
#aba292darkgray
Accent
#021d13black
#021d13black
Accent foreground
#0fdb94mediumspringgreen
#0fdb94mediumspringgreen
Destructive
#8a280asaddlebrown
#e54210orangered
Destructive foreground
#fbd6cbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#13021dblack
#13021dblack

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button12.24:1AAA
Secondary button7.19:1AAA
Muted text4.83:1AA
Accent9.77:1AAA
Destructive6.52:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button12.24:1AAA
Secondary button7.19:1AAA
Muted text6.89:1AA
Accent9.77:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.009 314.167);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.015 83.065);
  --muted-foreground: oklch(0.509 0.027 82.975);
  --popover: oklch(0.98 0.009 314.167);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.009 314.167);
  --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.148 0.062 312.808);
  --primary-foreground: oklch(0.851 0.095 313.603);
  --secondary: oklch(0.195 0.036 83.448);
  --secondary-foreground: oklch(0.72 0.15 73.977);
  --accent: oklch(0.205 0.039 167.009);
  --accent-foreground: oklch(0.789 0.175 160.657);
  --destructive: oklch(0.426 0.139 35.813);
  --destructive-foreground: oklch(0.904 0.045 37.599);
  --ring: oklch(0.148 0.062 312.808);
  --chart-1: oklch(0.148 0.062 312.808);
  --chart-2: oklch(0.195 0.036 83.448);
  --chart-3: oklch(0.205 0.039 167.009);
  --chart-4: oklch(0.242 0.046 80.26);
  --chart-5: oklch(0.147 0.064 312.802);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.02 314.286);
  --foreground: oklch(0.991 0.002 314.206);
  --muted: oklch(0.218 0.02 82.608);
  --muted-foreground: oklch(0.715 0.025 83.042);
  --popover: oklch(0.137 0.02 314.286);
  --popover-foreground: oklch(0.991 0.002 314.206);
  --card: oklch(0.137 0.02 314.286);
  --card-foreground: oklch(0.991 0.002 314.206);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.148 0.062 312.808);
  --primary-foreground: oklch(0.851 0.095 313.603);
  --secondary: oklch(0.195 0.036 83.448);
  --secondary-foreground: oklch(0.72 0.15 73.977);
  --accent: oklch(0.205 0.039 167.009);
  --accent-foreground: oklch(0.789 0.175 160.657);
  --destructive: oklch(0.613 0.207 35.237);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.148 0.062 312.808);
  --chart-1: oklch(0.148 0.062 312.808);
  --chart-2: oklch(0.195 0.036 83.448);
  --chart-3: oklch(0.205 0.039 167.009);
  --chart-4: oklch(0.242 0.046 80.26);
  --chart-5: oklch(0.147 0.064 312.802);
}