Morbidity for shadcn/ui

Morbidity is a shadcn/ui theme built around a neutral gray primary color (#b1b2ae) with neutral gray accents (#b0b2ae). The light mode uses a neutral background (#fefefb). Dark mode keeps the neutral gray primary (#b1b2ae) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefefbwhite
#000000black
Foreground
#080802black
#ffffffwhite
Card
#fcfdf7snow
#030303black
Card foreground
#040401black
#ffffffwhite
Popover
#fefefbwhite
#000000black
Popover foreground
#080802black
#ffffffwhite
Primary
#b1b2aedarkgray
#b1b2aedarkgray
Primary foreground
#171716black
#171716black
Secondary
#b2b0aedarkgray
#b2b0aedarkgray
Secondary foreground
#171716black
#171716black
Muted
#f3efe7linen
#18130cblack
Muted foreground
#62594bdimgray
#b4ab9ddarkgray
Accent
#b0b2aedarkgray
#b0b2aedarkgray
Accent foreground
#171716black
#171716black
Destructive
#da500bchocolate
#f36720chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b1b2aedarkgray
#b1b2aedarkgray

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card20.08:1AAA
Primary button8.38:1AAA
Secondary button8.31:1AAA
Muted text5.99:1AA
Accent8.35:1AAA
Destructive4.08:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.38:1AAA
Secondary button8.31:1AAA
Muted text8.12:1AAA
Accent8.35:1AAA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 111.857);
  --foreground: oklch(0.132 0.02 113.105);
  --muted: oklch(0.953 0.011 79.91);
  --muted-foreground: oklch(0.469 0.024 79.714);
  --popover: oklch(0.996 0.004 111.857);
  --popover-foreground: oklch(0.132 0.02 113.105);
  --card: oklch(0.992 0.008 111.935);
  --card-foreground: oklch(0.105 0.016 113.105);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.761 0.004 111.89);
  --primary-foreground: oklch(0.206 0.002 111.943);
  --secondary: oklch(0.759 0.003 79.927);
  --secondary-foreground: oklch(0.205 0.001 79.923);
  --accent: oklch(0.76 0.005 133.03);
  --accent-foreground: oklch(0.205 0.002 133.052);
  --destructive: oklch(0.611 0.185 40.658);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.761 0.004 111.89);
  --chart-1: oklch(0.761 0.004 111.89);
  --chart-2: oklch(0.759 0.003 79.927);
  --chart-3: oklch(0.76 0.005 133.03);
  --chart-4: oklch(0.783 0.003 79.928);
  --chart-5: oklch(0.767 0.011 112.051);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.191 0.017 79.325);
  --muted-foreground: oklch(0.744 0.022 79.85);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.761 0.004 111.89);
  --primary-foreground: oklch(0.206 0.002 111.943);
  --secondary: oklch(0.759 0.003 79.927);
  --secondary-foreground: oklch(0.205 0.001 79.923);
  --accent: oklch(0.76 0.005 133.03);
  --accent-foreground: oklch(0.205 0.002 133.052);
  --destructive: oklch(0.68 0.189 42.673);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.761 0.004 111.89);
  --chart-1: oklch(0.761 0.004 111.89);
  --chart-2: oklch(0.759 0.003 79.927);
  --chart-3: oklch(0.76 0.005 133.03);
  --chart-4: oklch(0.783 0.003 79.928);
  --chart-5: oklch(0.767 0.011 112.051);
}