Pathogenesis for shadcn/ui

Pathogenesis is a shadcn/ui theme built around a light green primary color (#d8e8cf) with light violet accents (#dfcfe8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#d8e8cf) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040901black
#f9fcf8mintcream
Card
#fcfcfcsnow
#030303black
Card foreground
#020501black
#fcfdfcwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#020501black
#fcfdfcwhite
Primary
#d8e8cfgainsboro
#d8e8cfgainsboro
Primary foreground
#3c5a2bdarkolivegreen
#3c5a2bdarkolivegreen
Secondary
#dfcfe8gainsboro
#dfcfe8gainsboro
Secondary foreground
#482b5adarkslategray
#482b5adarkslategray
Muted
#f3eff6whitesmoke
#0e0910black
Muted foreground
#434044darkslategray
#bdbbbfsilver
Accent
#dfcfe8gainsboro
#dfcfe8gainsboro
Accent foreground
#482b5adarkslategray
#482b5adarkslategray
Destructive
#79130bmaroon
#e52315crimson
Destructive foreground
#f9c2belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d8e8cfgainsboro
#d8e8cfgainsboro

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.05:1AAA
Primary button6.07:1AA
Secondary button8.02:1AAA
Muted text8.97:1AAA
Accent8.02:1AAA
Destructive7.04:1AAA
Dark mode
Text on background20.30:1AAA
Text on card20.28:1AAA
Primary button6.07:1AA
Secondary button8.02:1AAA
Muted text10.34:1AAA
Accent8.02:1AAA
Destructive4.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.029 131.522);
  --muted: oklch(0.957 0.011 313.537);
  --muted-foreground: oklch(0.377 0.007 313.484);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.102 0.023 131.522);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.102 0.023 131.522);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.912 0.037 133.868);
  --primary-foreground: oklch(0.43 0.08 135.097);
  --secondary: oklch(0.874 0.038 313.34);
  --secondary-foreground: oklch(0.348 0.085 311.933);
  --accent: oklch(0.874 0.038 313.34);
  --accent-foreground: oklch(0.348 0.085 311.933);
  --destructive: oklch(0.374 0.138 29.467);
  --destructive-foreground: oklch(0.861 0.064 23.193);
  --ring: oklch(0.912 0.037 133.868);
  --chart-1: oklch(0.912 0.037 133.868);
  --chart-2: oklch(0.874 0.038 313.34);
  --chart-3: oklch(0.874 0.038 313.34);
  --chart-4: oklch(0.901 0.03 313.404);
  --chart-5: oklch(0.914 0.041 133.89);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.006 133.641);
  --muted: oklch(0.15 0.017 312.957);
  --muted-foreground: oklch(0.794 0.006 313.558);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.003 133.623);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.003 133.623);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.912 0.037 133.868);
  --primary-foreground: oklch(0.43 0.08 135.097);
  --secondary: oklch(0.874 0.038 313.34);
  --secondary-foreground: oklch(0.348 0.085 311.933);
  --accent: oklch(0.874 0.038 313.34);
  --accent-foreground: oklch(0.348 0.085 311.933);
  --destructive: oklch(0.59 0.226 29.686);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.037 133.868);
  --chart-1: oklch(0.912 0.037 133.868);
  --chart-2: oklch(0.874 0.038 313.34);
  --chart-3: oklch(0.874 0.038 313.34);
  --chart-4: oklch(0.901 0.03 313.404);
  --chart-5: oklch(0.914 0.041 133.89);
}