Hepatitis for shadcn/ui

Hepatitis is a shadcn/ui theme built around a pink primary color (#da77a0) with teal accents (#77dab1). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the pink primary (#da77a0) on a pink-tinted background (#0f0609).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#0f0609black
Foreground
#14050cblack
#fbf9fasnow
Card
#fdfbfcsnow
#0f0609black
Card foreground
#14050cblack
#fbf9fasnow
Popover
#fdfbfcsnow
#0f0609black
Popover foreground
#14050cblack
#fbf9fasnow
Primary
#da77a0palevioletred
#da77a0palevioletred
Primary foreground
#18070eblack
#18070eblack
Secondary
#77dab1mediumaquamarine
#77dab1mediumaquamarine
Secondary foreground
#071811black
#071811black
Muted
#f1f3f2whitesmoke
#0c0e0dblack
Muted foreground
#3b4e46darkslategray
#b1c4bcsilver
Accent
#77dab1mediumaquamarine
#77dab1mediumaquamarine
Accent foreground
#071811black
#071811black
Destructive
#a30a05darkred
#f20f07red
Destructive foreground
#fedddcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#da77a0palevioletred
#da77a0palevioletred

Contrast

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

Light mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button6.61:1AA
Secondary button10.81:1AAA
Muted text7.98:1AAA
Accent10.81:1AAA
Destructive6.35:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button6.61:1AA
Secondary button10.81:1AAA
Muted text10.61:1AAA
Accent10.81:1AAA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 349.739);
  --foreground: oklch(0.147 0.031 353.312);
  --muted: oklch(0.963 0.002 169.599);
  --muted-foreground: oklch(0.407 0.028 167.583);
  --popover: oklch(0.991 0.002 349.739);
  --popover-foreground: oklch(0.147 0.031 353.312);
  --card: oklch(0.991 0.002 349.739);
  --card-foreground: oklch(0.147 0.031 353.312);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.691 0.131 354.693);
  --primary-foreground: oklch(0.159 0.034 354.573);
  --secondary: oklch(0.816 0.111 164.826);
  --secondary-foreground: oklch(0.191 0.028 164.76);
  --accent: oklch(0.816 0.111 164.826);
  --accent-foreground: oklch(0.191 0.028 164.76);
  --destructive: oklch(0.454 0.181 29.339);
  --destructive-foreground: oklch(0.926 0.036 20.18);
  --ring: oklch(0.691 0.131 354.693);
  --chart-1: oklch(0.691 0.131 354.693);
  --chart-2: oklch(0.816 0.111 164.826);
  --chart-3: oklch(0.816 0.111 164.826);
  --chart-4: oklch(0.831 0.103 165.426);
  --chart-5: oklch(0.69 0.138 354.971);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.02 350.982);
  --foreground: oklch(0.983 0.003 349.744);
  --muted: oklch(0.16 0.004 168.985);
  --muted-foreground: oklch(0.803 0.024 168.805);
  --popover: oklch(0.137 0.02 350.982);
  --popover-foreground: oklch(0.983 0.003 349.744);
  --card: oklch(0.137 0.02 350.982);
  --card-foreground: oklch(0.983 0.003 349.744);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.691 0.131 354.693);
  --primary-foreground: oklch(0.159 0.034 354.573);
  --secondary: oklch(0.816 0.111 164.826);
  --secondary-foreground: oklch(0.191 0.028 164.76);
  --accent: oklch(0.816 0.111 164.826);
  --accent-foreground: oklch(0.191 0.028 164.76);
  --destructive: oklch(0.608 0.245 29.324);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.691 0.131 354.693);
  --chart-1: oklch(0.691 0.131 354.693);
  --chart-2: oklch(0.816 0.111 164.826);
  --chart-3: oklch(0.816 0.111 164.826);
  --chart-4: oklch(0.831 0.103 165.426);
  --chart-5: oklch(0.69 0.138 354.971);
}