Path for shadcn/ui

Path is a shadcn/ui theme built around a deep violet primary color (#5b1679) with muted light violet accents (#c8bccd). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the deep violet primary (#5b1679) on a violet-tinted background (#09030c).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#09030cblack
Foreground
#0d0411black
#f8f6f8whitesmoke
Card
#fbf7fdghostwhite
#09030cblack
Card foreground
#0d0411black
#f8f6f8whitesmoke
Popover
#fbf7fdghostwhite
#09030cblack
Popover foreground
#0d0411black
#f8f6f8whitesmoke
Primary
#5b1679indigo
#5b1679indigo
Primary foreground
#e9cbf6lavender
#e9cbf6lavender
Secondary
#dcd9ddgainsboro
#231c27black
Secondary foreground
#443e46darkslategray
#bfaec6silver
Muted
#f3eff5whitesmoke
#0e0a10black
Muted foreground
#5d585fdimgray
#a5a0a7darkgray
Accent
#c8bccdsilver
#38273fdarkslategray
Accent foreground
#2e2532darkslategray
#d1c0d8thistle
Destructive
#c44d0echocolate
#ef681fchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5b1679indigo
#5b1679indigo

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card18.99:1AAA
Primary button7.80:1AAA
Secondary button7.43:1AAA
Muted text6.11:1AA
Accent8.05:1AAA
Destructive4.76:1AA
Dark mode
Text on background18.93:1AAA
Text on card18.93:1AAA
Primary button7.80:1AAA
Secondary button7.98:1AAA
Muted text7.66:1AAA
Accent7.99:1AAA
Destructive6.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 315.987);
  --foreground: oklch(0.131 0.036 316.542);
  --muted: oklch(0.958 0.009 315.987);
  --muted-foreground: oklch(0.468 0.013 315.92);
  --popover: oklch(0.981 0.009 315.987);
  --popover-foreground: oklch(0.131 0.036 316.542);
  --card: oklch(0.981 0.009 315.987);
  --card-foreground: oklch(0.131 0.036 316.542);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.368 0.159 312.973);
  --primary-foreground: oklch(0.881 0.065 315.757);
  --secondary: oklch(0.889 0.007 315.995);
  --secondary-foreground: oklch(0.374 0.015 315.876);
  --accent: oklch(0.809 0.028 315.899);
  --accent-foreground: oklch(0.28 0.027 315.679);
  --destructive: oklch(0.571 0.165 42.551);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.368 0.159 312.973);
  --chart-1: oklch(0.368 0.159 312.973);
  --chart-2: oklch(0.889 0.007 315.995);
  --chart-3: oklch(0.809 0.028 315.899);
  --chart-4: oklch(0.913 0.005 316.001);
  --chart-5: oklch(0.369 0.163 312.738);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.028 317.722);
  --foreground: oklch(0.976 0.003 316.011);
  --muted: oklch(0.152 0.015 315.677);
  --muted-foreground: oklch(0.711 0.012 315.961);
  --popover: oklch(0.119 0.028 317.722);
  --popover-foreground: oklch(0.976 0.003 316.011);
  --card: oklch(0.119 0.028 317.722);
  --card-foreground: oklch(0.976 0.003 316.011);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.368 0.159 312.973);
  --primary-foreground: oklch(0.881 0.065 315.757);
  --secondary: oklch(0.239 0.024 315.659);
  --secondary-foreground: oklch(0.773 0.037 315.849);
  --accent: oklch(0.303 0.047 315.448);
  --accent-foreground: oklch(0.829 0.037 315.863);
  --destructive: oklch(0.676 0.184 43.901);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.368 0.159 312.973);
  --chart-1: oklch(0.368 0.159 312.973);
  --chart-2: oklch(0.239 0.024 315.659);
  --chart-3: oklch(0.303 0.047 315.448);
  --chart-4: oklch(0.269 0.029 315.636);
  --chart-5: oklch(0.369 0.163 312.738);
}