Bust for shadcn/ui

Bust is a shadcn/ui theme built around a blue primary color (#216dc4) with green accents (#6dc421). The light mode uses a neutral background (#f6fafd). Dark mode keeps the blue primary (#216dc4) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f6fafdghostwhite
#020203black
Foreground
#050c15black
#fbfcfdwhite
Card
#f2f7fcaliceblue
#030507black
Card foreground
#040a11black
#ffffffwhite
Popover
#f6fafdghostwhite
#020203black
Popover foreground
#050c15black
#fbfcfdwhite
Primary
#216dc4royalblue
#216dc4royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c4216dmediumvioletred
#c4216dmediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3ced8gainsboro
#311c26darkslategray
Muted foreground
#514d4fdarkslategray
#b2aeb0darkgray
Accent
#6dc421yellowgreen
#6dc421yellowgreen
Accent foreground
#0c1604black
#0c1604black
Destructive
#611e05maroon
#f46734tomato
Destructive foreground
#fab79elightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#216dc4royalblue
#216dc4royalblue

Contrast

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

Light mode
Text on background18.68:1AAA
Text on card18.45:1AAA
Primary button5.16:1AA
Secondary button5.53:1AA
Muted text5.59:1AA
Accent8.47:1AAA
Destructive7.29:1AAA
Dark mode
Text on background20.15:1AAA
Text on card20.40:1AAA
Primary button5.16:1AA
Secondary button5.53:1AA
Muted text7.24:1AAA
Accent8.47:1AAA
Destructive6.84:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 251.5);
  --foreground: oklch(0.152 0.022 249.364);
  --muted: oklch(0.872 0.026 347.702);
  --muted-foreground: oklch(0.425 0.005 347.209);
  --popover: oklch(0.983 0.006 251.5);
  --popover-foreground: oklch(0.152 0.022 249.364);
  --card: oklch(0.974 0.009 251.524);
  --card-foreground: oklch(0.14 0.019 246.403);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.537 0.154 254.907);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.546 0.202 359.134);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.738 0.203 134.725);
  --accent-foreground: oklch(0.184 0.039 131.05);
  --destructive: oklch(0.337 0.103 38.284);
  --destructive-foreground: oklch(0.835 0.086 40.842);
  --ring: oklch(0.537 0.154 254.907);
  --chart-1: oklch(0.537 0.154 254.907);
  --chart-2: oklch(0.546 0.202 359.134);
  --chart-3: oklch(0.738 0.203 134.725);
  --chart-4: oklch(0.572 0.213 359.231);
  --chart-5: oklch(0.539 0.159 255.189);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.006 246.472);
  --foreground: oklch(0.992 0.002 251.465);
  --muted: oklch(0.257 0.036 350.436);
  --muted-foreground: oklch(0.755 0.004 347.055);
  --popover: oklch(0.09 0.006 246.472);
  --popover-foreground: oklch(0.992 0.002 251.465);
  --card: oklch(0.113 0.008 246.472);
  --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.537 0.154 254.907);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.546 0.202 359.134);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.738 0.203 134.725);
  --accent-foreground: oklch(0.184 0.039 131.05);
  --destructive: oklch(0.683 0.186 39.241);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.537 0.154 254.907);
  --chart-1: oklch(0.537 0.154 254.907);
  --chart-2: oklch(0.546 0.202 359.134);
  --chart-3: oklch(0.738 0.203 134.725);
  --chart-4: oklch(0.572 0.213 359.231);
  --chart-5: oklch(0.539 0.159 255.189);
}