Pathway for shadcn/ui

Pathway is a shadcn/ui theme built around a vivid deep red primary color (#140101) with vivid deep indigo accents (#010114). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the vivid deep red primary (#140101) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8f8snow
#000000black
Foreground
#0d0202black
#ffffffwhite
Card
#fcf8f8snow
#000000black
Card foreground
#0d0202black
#ffffffwhite
Popover
#fcf8f8snow
#000000black
Popover foreground
#0d0202black
#ffffffwhite
Primary
#140101black
#140101black
Primary foreground
#fcb1b1lightpink
#fcb1b1lightpink
Secondary
#011401black
#011401black
Secondary foreground
#09d709lime
#09d709lime
Muted
#e3f2e3beige
#0d1c0dblack
Muted foreground
#404f40darkslategray
#b0bfb0silver
Accent
#010114black
#010114black
Accent foreground
#b1b1fclightsteelblue
#b1b1fclightsteelblue
Destructive
#79110cmaroon
#ea382ecrimson
Destructive foreground
#f9c1belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#140101black
#140101black

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button11.67:1AAA
Secondary button9.77:1AAA
Muted text7.49:1AAA
Accent10.41:1AAA
Destructive7.06:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button11.67:1AAA
Secondary button9.77:1AAA
Muted text9.21:1AAA
Accent10.41:1AAA
Destructive4.11: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.982 0.004 17.224);
  --foreground: oklch(0.115 0.028 22.416);
  --muted: oklch(0.946 0.024 145.38);
  --muted-foreground: oklch(0.41 0.033 144.951);
  --popover: oklch(0.982 0.004 17.224);
  --popover-foreground: oklch(0.115 0.028 22.416);
  --card: oklch(0.982 0.004 17.224);
  --card-foreground: oklch(0.115 0.028 22.416);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.123 0.045 26.785);
  --primary-foreground: oklch(0.83 0.088 19.107);
  --secondary: oklch(0.165 0.052 142.737);
  --secondary-foreground: oklch(0.763 0.258 142.523);
  --accent: oklch(0.095 0.053 270.273);
  --accent-foreground: oklch(0.787 0.106 283.694);
  --destructive: oklch(0.372 0.138 28.968);
  --destructive-foreground: oklch(0.86 0.064 21.967);
  --ring: oklch(0.123 0.045 26.785);
  --chart-1: oklch(0.123 0.045 26.785);
  --chart-2: oklch(0.165 0.052 142.737);
  --chart-3: oklch(0.095 0.053 270.273);
  --chart-4: oklch(0.22 0.071 142.675);
  --chart-5: oklch(0.123 0.046 27.621);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.034 144.216);
  --muted-foreground: oklch(0.789 0.028 145.305);
  --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.123 0.045 26.785);
  --primary-foreground: oklch(0.83 0.088 19.107);
  --secondary: oklch(0.165 0.052 142.737);
  --secondary-foreground: oklch(0.763 0.258 142.523);
  --accent: oklch(0.095 0.053 270.273);
  --accent-foreground: oklch(0.787 0.106 283.694);
  --destructive: oklch(0.616 0.216 28.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.123 0.045 26.785);
  --chart-1: oklch(0.123 0.045 26.785);
  --chart-2: oklch(0.165 0.052 142.737);
  --chart-3: oklch(0.095 0.053 270.273);
  --chart-4: oklch(0.22 0.071 142.675);
  --chart-5: oklch(0.123 0.046 27.621);
}