Neuropathologist for shadcn/ui

Neuropathologist is a shadcn/ui theme built around a neutral gray primary color (#767a75) with neutral gray accents (#7a7576). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#767a75) on a green-tinted background (#030c03).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c03black
Foreground
#010401black
#f5faf5whitesmoke
Card
#ffffffwhite
#030c03black
Card foreground
#010401black
#f5faf5whitesmoke
Popover
#ffffffwhite
#030c03black
Popover foreground
#010401black
#f5faf5whitesmoke
Primary
#767a75gray
#767a75gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#75767agray
#75767agray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dedeedgainsboro
#121221black
Muted foreground
#3d3d48darkslategray
#b7b8c2silver
Accent
#7a7576gray
#7a7576gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cb5510chocolate
#ee722bchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#767a75gray
#767a75gray

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button4.35:1AA Large
Secondary button4.55:1AA
Muted text8.07:1AAA
Accent4.51:1AA
Destructive4.34:1AA Large
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button4.35:1AA Large
Secondary button4.55:1AA
Muted text9.36:1AAA
Accent4.51:1AA
Destructive7.08:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.017 143.621);
  --muted: oklch(0.906 0.02 285.222);
  --muted-foreground: oklch(0.365 0.018 284.708);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.096 0.017 143.621);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.096 0.017 143.621);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.575 0.009 144.988);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.566 0.007 285.388);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.568 0.006 16.157);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.593 0.166 44.113);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.009 144.988);
  --chart-1: oklch(0.575 0.009 144.988);
  --chart-2: oklch(0.566 0.007 285.388);
  --chart-3: oklch(0.568 0.006 16.157);
  --chart-4: oklch(0.591 0.008 285.387);
  --chart-5: oklch(0.579 0.023 144.82);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.029 143.308);
  --foreground: oklch(0.98 0.009 145.033);
  --muted: oklch(0.191 0.029 282.524);
  --muted-foreground: oklch(0.784 0.015 285.279);
  --popover: oklch(0.141 0.029 143.308);
  --popover-foreground: oklch(0.98 0.009 145.033);
  --card: oklch(0.141 0.029 143.308);
  --card-foreground: oklch(0.98 0.009 145.033);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.575 0.009 144.988);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.566 0.007 285.388);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.568 0.006 16.157);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.689 0.172 46.527);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.575 0.009 144.988);
  --chart-1: oklch(0.575 0.009 144.988);
  --chart-2: oklch(0.566 0.007 285.388);
  --chart-3: oklch(0.568 0.006 16.157);
  --chart-4: oklch(0.591 0.008 285.387);
  --chart-5: oklch(0.579 0.023 144.82);
}