Pursuit for shadcn/ui

Pursuit is a shadcn/ui theme built around a muted deep purple primary color (#1c171b) with muted deep cyan accents (#171b1c). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted deep purple primary (#1c171b) on a purple-tinted background (#0b0509).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0b0509black
Foreground
#040104black
#fbf9fasnow
Card
#fcf7fcsnow
#0e060dblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#fcf7fcsnow
#0e060dblack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#1c171bblack
#1c171bblack
Primary foreground
#bbaab8darkgray
#bbaab8darkgray
Secondary
#1b1c17black
#1b1c17black
Secondary foreground
#b8bbaadarkgray
#b8bbaadarkgray
Muted
#f3f4f1whitesmoke
#0e0e0bblack
Muted foreground
#676c51dimgray
#a9ae93darkgray
Accent
#171b1cblack
#171b1cblack
Accent foreground
#aab8bbdarkgray
#aab8bbdarkgray
Destructive
#671709maroon
#ec4122orangered
Destructive foreground
#f8b6ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c171bblack
#1c171bblack

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card19.90:1AAA
Primary button8.05:1AAA
Secondary button8.73:1AAA
Muted text4.95:1AA
Accent8.48:1AAA
Destructive7.18:1AAA
Dark mode
Text on background19.29:1AAA
Text on card19.50:1AAA
Primary button8.05:1AAA
Secondary button8.73:1AAA
Muted text8.41:1AAA
Accent8.48:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 331.462);
  --foreground: oklch(0.084 0.022 332.562);
  --muted: oklch(0.965 0.004 114.908);
  --muted-foreground: oklch(0.518 0.04 116.265);
  --popover: oklch(0.982 0.008 331.518);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 331.518);
  --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.212 0.012 332.214);
  --primary-foreground: oklch(0.757 0.027 331.907);
  --secondary: oklch(0.225 0.011 115.701);
  --secondary-foreground: oklch(0.785 0.024 115.378);
  --accent: oklch(0.219 0.007 212.744);
  --accent-foreground: oklch(0.772 0.016 212.696);
  --destructive: oklch(0.341 0.116 32.341);
  --destructive-foreground: oklch(0.834 0.079 30.099);
  --ring: oklch(0.212 0.012 332.214);
  --chart-1: oklch(0.212 0.012 332.214);
  --chart-2: oklch(0.225 0.011 115.701);
  --chart-3: oklch(0.219 0.007 212.744);
  --chart-4: oklch(0.26 0.013 115.774);
  --chart-5: oklch(0.211 0.016 332.43);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.018 332.088);
  --foreground: oklch(0.984 0.002 331.434);
  --muted: oklch(0.164 0.007 115.595);
  --muted-foreground: oklch(0.739 0.037 115.754);
  --popover: oklch(0.14 0.02 332.878);
  --popover-foreground: oklch(0.992 0.001 331.42);
  --card: oklch(0.14 0.02 332.878);
  --card-foreground: oklch(0.992 0.001 331.42);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.212 0.012 332.214);
  --primary-foreground: oklch(0.757 0.027 331.907);
  --secondary: oklch(0.225 0.011 115.701);
  --secondary-foreground: oklch(0.785 0.024 115.378);
  --accent: oklch(0.219 0.007 212.744);
  --accent-foreground: oklch(0.772 0.016 212.696);
  --destructive: oklch(0.625 0.212 32.324);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.212 0.012 332.214);
  --chart-1: oklch(0.212 0.012 332.214);
  --chart-2: oklch(0.225 0.011 115.701);
  --chart-3: oklch(0.219 0.007 212.744);
  --chart-4: oklch(0.26 0.013 115.774);
  --chart-5: oklch(0.211 0.016 332.43);
}