Crewman for shadcn/ui

Crewman is a shadcn/ui theme built around a muted light purple primary color (#f6eff4) with muted light purple accents (#d6ccd3). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted light purple primary (#f6eff4) on a purple-tinted background (#0b0509).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0b0509black
Foreground
#000000black
#faf4f9whitesmoke
Card
#fcf8fbsnow
#0e060cblack
Card foreground
#000000black
#fcf8fbsnow
Popover
#fcf8fbsnow
#0e060cblack
Popover foreground
#000000black
#fcf8fbsnow
Primary
#f6eff4whitesmoke
#f6eff4whitesmoke
Primary foreground
#724065dimgray
#724065dimgray
Secondary
#d6ccd3lightgrey
#2c262adarkslategray
Secondary foreground
#3e323bdarkslategray
#c7bdc4silver
Muted
#e5d7e1gainsboro
#281a25black
Muted foreground
#4d424adarkslategray
#bdb2basilver
Accent
#d6ccd3lightgrey
#2c262adarkslategray
Accent foreground
#3e323bdarkslategray
#c7bdc4silver
Destructive
#631b09maroon
#e13d14orangered
Destructive foreground
#f7b6a6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6eff4whitesmoke
#f6eff4whitesmoke

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card19.91:1AAA
Primary button7.02:1AAA
Secondary button7.80:1AAA
Muted text6.88:1AA
Accent7.80:1AAA
Destructive7.25:1AAA
Dark mode
Text on background18.66:1AAA
Text on card18.98:1AAA
Primary button7.02:1AAA
Secondary button8.14:1AAA
Muted text8.09:1AAA
Accent8.14:1AAA
Destructive4.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 334.587);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.893 0.021 334.942);
  --muted-foreground: oklch(0.393 0.021 335.42);
  --popover: oklch(0.982 0.007 334.647);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.007 334.647);
  --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.958 0.01 334.715);
  --primary-foreground: oklch(0.446 0.086 337.647);
  --secondary: oklch(0.856 0.015 334.831);
  --secondary-foreground: oklch(0.334 0.023 335.698);
  --accent: oklch(0.856 0.015 334.831);
  --accent-foreground: oklch(0.334 0.023 335.698);
  --destructive: oklch(0.336 0.107 34.696);
  --destructive-foreground: oklch(0.833 0.08 34.503);
  --ring: oklch(0.958 0.01 334.715);
  --chart-1: oklch(0.958 0.01 334.715);
  --chart-2: oklch(0.856 0.015 334.831);
  --chart-3: oklch(0.856 0.015 334.831);
  --chart-4: oklch(0.88 0.012 334.772);
  --chart-5: oklch(0.958 0.011 334.735);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.018 335.017);
  --foreground: oklch(0.974 0.009 334.681);
  --muted: oklch(0.24 0.03 336.558);
  --muted-foreground: oklch(0.775 0.017 334.915);
  --popover: oklch(0.139 0.02 336.125);
  --popover-foreground: oklch(0.983 0.006 334.629);
  --card: oklch(0.139 0.02 336.125);
  --card-foreground: oklch(0.983 0.006 334.629);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.958 0.01 334.715);
  --primary-foreground: oklch(0.446 0.086 337.647);
  --secondary: oklch(0.276 0.013 335.323);
  --secondary-foreground: oklch(0.808 0.015 334.844);
  --accent: oklch(0.276 0.013 335.323);
  --accent-foreground: oklch(0.808 0.015 334.844);
  --destructive: oklch(0.602 0.207 34.001);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.958 0.01 334.715);
  --chart-1: oklch(0.958 0.01 334.715);
  --chart-2: oklch(0.276 0.013 335.323);
  --chart-3: oklch(0.276 0.013 335.323);
  --chart-4: oklch(0.306 0.015 335.356);
  --chart-5: oklch(0.958 0.011 334.735);
}