Pathway for shadcn/ui

Pathway is a shadcn/ui theme built around a near-black primary color (#01000a) with near-black accents (#000a01). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the near-black primary (#01000a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#000000black
Foreground
#010104black
#ffffffwhite
Card
#f7f7fdghostwhite
#000000black
Card foreground
#010104black
#ffffffwhite
Popover
#f7f7fdghostwhite
#000000black
Popover foreground
#010104black
#ffffffwhite
Primary
#01000ablack
#01000ablack
Primary foreground
#ada7fblightsteelblue
#ada7fblightsteelblue
Secondary
#0a0100black
#0a0100black
Secondary foreground
#f65246tomato
#f65246tomato
Muted
#e9e7e7linen
#181616black
Muted foreground
#514d4ddarkslategray
#b2aeaedarkgray
Accent
#000a01black
#000a01black
Accent foreground
#0acd17limegreen
#0acd17limegreen
Destructive
#990f0bdarkred
#f13832crimson
Destructive foreground
#fcdad9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#01000ablack
#01000ablack

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button9.62:1AAA
Secondary button6.10:1AA
Muted text6.77:1AA
Accent9.35:1AAA
Destructive6.67:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.62:1AAA
Secondary button6.10:1AA
Muted text8.20:1AAA
Accent9.35:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.008 289.317);
  --foreground: oklch(0.075 0.018 285.811);
  --muted: oklch(0.93 0.002 22.242);
  --muted-foreground: oklch(0.424 0.006 22.374);
  --popover: oklch(0.977 0.008 289.317);
  --popover-foreground: oklch(0.075 0.018 285.811);
  --card: oklch(0.977 0.008 289.317);
  --card-foreground: oklch(0.075 0.018 285.811);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.077 0.038 280.077);
  --primary-foreground: oklch(0.766 0.118 286.294);
  --secondary: oklch(0.099 0.029 33.177);
  --secondary-foreground: oklch(0.663 0.203 28.001);
  --accent: oklch(0.126 0.036 145.24);
  --accent-foreground: oklch(0.735 0.245 142.856);
  --destructive: oklch(0.435 0.169 28.989);
  --destructive-foreground: oklch(0.917 0.038 20.224);
  --ring: oklch(0.077 0.038 280.077);
  --chart-1: oklch(0.077 0.038 280.077);
  --chart-2: oklch(0.099 0.029 33.177);
  --chart-3: oklch(0.126 0.036 145.24);
  --chart-4: oklch(0.143 0.045 32.151);
  --chart-5: oklch(0.075 0.04 279.046);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.003 22.411);
  --muted-foreground: oklch(0.754 0.005 22.29);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.077 0.038 280.077);
  --primary-foreground: oklch(0.766 0.118 286.294);
  --secondary: oklch(0.099 0.029 33.177);
  --secondary-foreground: oklch(0.663 0.203 28.001);
  --accent: oklch(0.126 0.036 145.24);
  --accent-foreground: oklch(0.735 0.245 142.856);
  --destructive: oklch(0.628 0.221 27.765);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.077 0.038 280.077);
  --chart-1: oklch(0.077 0.038 280.077);
  --chart-2: oklch(0.099 0.029 33.177);
  --chart-3: oklch(0.126 0.036 145.24);
  --chart-4: oklch(0.143 0.045 32.151);
  --chart-5: oklch(0.075 0.04 279.046);
}