Path for shadcn/ui

Path is a shadcn/ui theme built around a muted light green primary color (#c9cfb4) with muted light violet accents (#bbb4cf). The light mode uses a neutral background (#fbfcf7). Dark mode keeps the muted light green primary (#c9cfb4) on a green-tinted background (#0c0f06).

Color palette

TokenLightDark
Background
#fbfcf7snow
#0c0f06black
Foreground
#0d1005black
#fafbf9snow
Card
#f9fbf4whitesmoke
#101207black
Card foreground
#0a0c04black
#fdfdfcwhite
Popover
#f9fbf4whitesmoke
#101207black
Popover foreground
#0a0c04black
#fdfdfcwhite
Primary
#c9cfb4silver
#c9cfb4silver
Primary foreground
#2d3220darkslategray
#2d3220darkslategray
Secondary
#bbb4cfsilver
#bbb4cfsilver
Secondary foreground
#242032darkslategray
#242032darkslategray
Muted
#f1eff5whitesmoke
#0b0a10black
Muted foreground
#5b5766dimgray
#9d99a8darkgray
Accent
#bbb4cfsilver
#bbb4cfsilver
Accent foreground
#242032darkslategray
#242032darkslategray
Destructive
#ab1f03firebrick
#f62c04orangered
Destructive foreground
#ffe6e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9cfb4silver
#c9cfb4silver

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.88:1AAA
Primary button8.23:1AAA
Secondary button7.96:1AAA
Muted text6.15:1AA
Accent7.96:1AAA
Destructive6.04:1AA
Dark mode
Text on background18.63:1AAA
Text on card18.51:1AAA
Primary button8.23:1AAA
Secondary button7.96:1AAA
Muted text7.09:1AAA
Accent7.96:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 117.947);
  --foreground: oklch(0.164 0.023 119.487);
  --muted: oklch(0.956 0.008 297.684);
  --muted-foreground: oklch(0.465 0.025 296.88);
  --popover: oklch(0.985 0.01 118.009);
  --popover-foreground: oklch(0.147 0.02 118.294);
  --card: oklch(0.985 0.01 118.009);
  --card-foreground: oklch(0.147 0.02 118.294);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.843 0.037 118.61);
  --primary-foreground: oklch(0.306 0.031 119.68);
  --secondary: oklch(0.785 0.038 296.95);
  --secondary-foreground: oklch(0.256 0.034 295.395);
  --accent: oklch(0.785 0.038 296.95);
  --accent-foreground: oklch(0.256 0.034 295.395);
  --destructive: oklch(0.479 0.178 32.262);
  --destructive-foreground: oklch(0.943 0.028 31.126);
  --ring: oklch(0.843 0.037 118.61);
  --chart-1: oklch(0.843 0.037 118.61);
  --chart-2: oklch(0.785 0.038 296.95);
  --chart-3: oklch(0.785 0.038 296.95);
  --chart-4: oklch(0.813 0.033 297.093);
  --chart-5: oklch(0.847 0.042 118.711);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.161 0.02 119.285);
  --foreground: oklch(0.986 0.002 117.859);
  --muted: oklch(0.149 0.012 296.343);
  --muted-foreground: oklch(0.691 0.022 297.252);
  --popover: oklch(0.177 0.023 119.957);
  --popover-foreground: oklch(0.993 0.001 117.842);
  --card: oklch(0.177 0.023 119.957);
  --card-foreground: oklch(0.993 0.001 117.842);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.843 0.037 118.61);
  --primary-foreground: oklch(0.306 0.031 119.68);
  --secondary: oklch(0.785 0.038 296.95);
  --secondary-foreground: oklch(0.256 0.034 295.395);
  --accent: oklch(0.785 0.038 296.95);
  --accent-foreground: oklch(0.256 0.034 295.395);
  --destructive: oklch(0.626 0.237 31.806);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.037 118.61);
  --chart-1: oklch(0.843 0.037 118.61);
  --chart-2: oklch(0.785 0.038 296.95);
  --chart-3: oklch(0.785 0.038 296.95);
  --chart-4: oklch(0.813 0.033 297.093);
  --chart-5: oklch(0.847 0.042 118.711);
}