Sickness for shadcn/ui

Sickness is a shadcn/ui theme built around a muted red primary color (#6e473f) with muted light red accents (#cdbfbc). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the muted red primary (#6e473f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf8f7snow
#000000black
Foreground
#040101black
#fdfcfcsnow
Card
#fdf8f7snow
#000000black
Card foreground
#040101black
#fdfcfcsnow
Popover
#fdf8f7snow
#000000black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#6e473fdarkolivegreen
#6e473fdarkolivegreen
Primary foreground
#f4edeclinen
#f4edeclinen
Secondary
#d7d2d1lightgrey
#1e1b1ablack
Secondary foreground
#3f3837darkslategray
#b9b2b1darkgray
Muted
#e3dad8gainsboro
#271d1cblack
Muted foreground
#645b59dimgray
#a69d9bdarkgray
Accent
#cdbfbcsilver
#322725darkslategray
Accent foreground
#312725darkslategray
#cdbebcsilver
Destructive
#951e0ebrown
#d22a14firebrick
Destructive foreground
#fcdedamistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6e473fdarkolivegreen
#6e473fdarkolivegreen

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button6.88:1AA
Secondary button7.62:1AAA
Muted text4.81:1AA
Accent8.11:1AAA
Destructive6.71:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button6.88:1AA
Secondary button8.21:1AAA
Muted text6.17:1AA
Accent8.05:1AAA
Destructive5.15:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 31.053);
  --foreground: oklch(0.086 0.014 38.892);
  --muted: oklch(0.896 0.011 31.067);
  --muted-foreground: oklch(0.478 0.013 31.113);
  --popover: oklch(0.983 0.005 31.053);
  --popover-foreground: oklch(0.086 0.014 38.892);
  --card: oklch(0.983 0.005 31.053);
  --card-foreground: oklch(0.086 0.014 38.892);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.44 0.056 31.808);
  --primary-foreground: oklch(0.951 0.008 31.058);
  --secondary: oklch(0.866 0.006 31.055);
  --secondary-foreground: oklch(0.347 0.01 31.121);
  --accent: oklch(0.815 0.016 31.089);
  --accent-foreground: oklch(0.285 0.016 31.253);
  --destructive: oklch(0.438 0.157 31.039);
  --destructive-foreground: oklch(0.923 0.034 26.724);
  --ring: oklch(0.44 0.056 31.808);
  --chart-1: oklch(0.44 0.056 31.808);
  --chart-2: oklch(0.866 0.006 31.055);
  --chart-3: oklch(0.815 0.016 31.089);
  --chart-4: oklch(0.89 0.005 31.053);
  --chart-5: oklch(0.44 0.062 31.948);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 31.046);
  --muted: oklch(0.243 0.015 31.299);
  --muted-foreground: oklch(0.703 0.011 31.079);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 31.046);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 31.046);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.44 0.056 31.808);
  --primary-foreground: oklch(0.951 0.008 31.058);
  --secondary: oklch(0.225 0.005 31.091);
  --secondary-foreground: oklch(0.77 0.009 31.066);
  --accent: oklch(0.284 0.017 31.278);
  --accent-foreground: oklch(0.814 0.017 31.094);
  --destructive: oklch(0.56 0.206 31.006);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.44 0.056 31.808);
  --chart-1: oklch(0.44 0.056 31.808);
  --chart-2: oklch(0.225 0.005 31.091);
  --chart-3: oklch(0.284 0.017 31.278);
  --chart-4: oklch(0.257 0.006 31.096);
  --chart-5: oklch(0.44 0.062 31.948);
}