Bronchitis for shadcn/ui

Bronchitis is a shadcn/ui theme built around a light purple primary color (#e5c2e2) with muted light purple accents (#ede3ec). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light purple primary (#e5c2e2) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0a050ablack
Foreground
#120211black
#f9f6f8whitesmoke
Card
#fcf8fcsnow
#0e070dblack
Card foreground
#0e020dblack
#fbf9fbsnow
Popover
#fcf8fcsnow
#0e070dblack
Popover foreground
#0e020dblack
#fbf9fbsnow
Primary
#e5c2e2thistle
#e5c2e2thistle
Primary foreground
#53234fdarkslategray
#53234fdarkslategray
Secondary
#ede3eclavender
#1c171cblack
Secondary foreground
#5f3f5cdimgray
#bbaabasilver
Muted
#f4f0f4whitesmoke
#0f0b0eblack
Muted foreground
#725570dimgray
#aa8da8darkgray
Accent
#ede3eclavender
#1c171cblack
Accent foreground
#5f3f5cdimgray
#bbaabasilver
Destructive
#ad3210firebrick
#ea4b1forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5c2e2thistle
#e5c2e2thistle

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.28:1AAA
Primary button7.64:1AAA
Secondary button7.15:1AAA
Muted text5.74:1AA
Accent7.15:1AAA
Destructive6.49:1AA
Dark mode
Text on background18.82:1AAA
Text on card19.03:1AAA
Primary button7.64:1AAA
Secondary button8.06:1AAA
Muted text6.60:1AA
Accent8.06:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 328.104);
  --foreground: oklch(0.136 0.047 330.662);
  --muted: oklch(0.96 0.007 328.135);
  --muted-foreground: oklch(0.489 0.057 329.208);
  --popover: oklch(0.983 0.008 328.145);
  --popover-foreground: oklch(0.121 0.041 330.286);
  --card: oklch(0.983 0.008 328.145);
  --card-foreground: oklch(0.121 0.041 330.286);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.854 0.059 328.76);
  --primary-foreground: oklch(0.341 0.095 330.682);
  --secondary: oklch(0.927 0.015 328.231);
  --secondary-foreground: oklch(0.415 0.062 329.521);
  --accent: oklch(0.927 0.015 328.231);
  --accent-foreground: oklch(0.415 0.062 329.521);
  --destructive: oklch(0.5 0.164 35.06);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.059 328.76);
  --chart-1: oklch(0.854 0.059 328.76);
  --chart-2: oklch(0.927 0.015 328.231);
  --chart-3: oklch(0.927 0.015 328.231);
  --chart-4: oklch(0.951 0.01 328.172);
  --chart-5: oklch(0.853 0.063 328.81);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.017 328.885);
  --foreground: oklch(0.976 0.004 328.111);
  --muted: oklch(0.155 0.01 328.738);
  --muted-foreground: oklch(0.678 0.052 328.84);
  --popover: oklch(0.141 0.02 329.259);
  --popover-foreground: oklch(0.984 0.003 328.095);
  --card: oklch(0.141 0.02 329.259);
  --card-foreground: oklch(0.984 0.003 328.095);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.854 0.059 328.76);
  --primary-foreground: oklch(0.341 0.095 330.682);
  --secondary: oklch(0.212 0.013 328.693);
  --secondary-foreground: oklch(0.757 0.029 328.454);
  --accent: oklch(0.212 0.013 328.693);
  --accent-foreground: oklch(0.757 0.029 328.454);
  --destructive: oklch(0.632 0.203 35.327);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.059 328.76);
  --chart-1: oklch(0.854 0.059 328.76);
  --chart-2: oklch(0.212 0.013 328.693);
  --chart-3: oklch(0.212 0.013 328.693);
  --chart-4: oklch(0.244 0.017 328.748);
  --chart-5: oklch(0.853 0.063 328.81);
}