Bronchitis for shadcn/ui

Bronchitis is a shadcn/ui theme built around a green primary color (#2cb55c) with pink accents (#b52c85). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#2cb55c) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#030c06black
#f9fbfamintcream
Card
#fcfcfcsnow
#020804black
Card foreground
#020804black
#fcfdfcwhite
Popover
#fcfcfcsnow
#020804black
Popover foreground
#020804black
#fcfdfcwhite
Primary
#2cb55cmediumseagreen
#2cb55cmediumseagreen
Primary foreground
#041008black
#041008black
Secondary
#b52c85mediumvioletred
#b52c85mediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0dcdfgainsboro
#231f22black
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#b52c85mediumvioletred
#b52c85mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b80f00firebrick
#f51400red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2cb55cmediumseagreen
#2cb55cmediumseagreen

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.77:1AAA
Primary button7.24:1AAA
Secondary button5.75:1AA
Muted text4.76:1AA
Accent5.75:1AA
Destructive6.77:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button7.24:1AAA
Secondary button5.75:1AA
Muted text6.29:1AA
Accent5.75:1AA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.142 0.022 157.461);
  --muted: oklch(0.898 0.006 338.134);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.123 0.019 157.689);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.123 0.019 157.689);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.681 0.171 150.077);
  --primary-foreground: oklch(0.159 0.026 156.188);
  --secondary: oklch(0.535 0.192 345.793);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.535 0.192 345.793);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.495 0.197 30.268);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.171 150.077);
  --chart-1: oklch(0.681 0.171 150.077);
  --chart-2: oklch(0.535 0.192 345.793);
  --chart-3: oklch(0.535 0.192 345.793);
  --chart-4: oklch(0.562 0.203 345.848);
  --chart-5: oklch(0.689 0.177 149.744);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.014 157.713);
  --foreground: oklch(0.986 0.004 157.908);
  --muted: oklch(0.245 0.009 338.73);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.123 0.017 157.713);
  --popover-foreground: oklch(0.993 0.002 157.947);
  --card: oklch(0.123 0.017 157.713);
  --card-foreground: oklch(0.993 0.002 157.947);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.681 0.171 150.077);
  --primary-foreground: oklch(0.159 0.026 156.188);
  --secondary: oklch(0.535 0.192 345.793);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.535 0.192 345.793);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.613 0.246 30.028);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.171 150.077);
  --chart-1: oklch(0.681 0.171 150.077);
  --chart-2: oklch(0.535 0.192 345.793);
  --chart-3: oklch(0.535 0.192 345.793);
  --chart-4: oklch(0.562 0.203 345.848);
  --chart-5: oklch(0.689 0.177 149.744);
}