Birdbath for shadcn/ui

Birdbath is a shadcn/ui theme built around a neutral gray primary color (#bcbdbd) with neutral gray accents (#bdbdbc). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the neutral gray primary (#bcbdbd) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#000000black
Foreground
#000000black
#f9fafbghostwhite
Card
#f8fafbghostwhite
#030303black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f8fafbghostwhite
#030303black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#bcbdbdsilver
#bcbdbdsilver
Primary foreground
#232424black
#232424black
Secondary
#bdbcbdsilver
#bdbcbdsilver
Secondary foreground
#242324black
#242324black
Muted
#f1e9eelinen
#160e12black
Muted foreground
#55444ddarkslategray
#bbaab3darkgray
Accent
#bdbdbcsilver
#bdbdbcsilver
Accent foreground
#242423black
#242423black
Destructive
#c42c0efirebrick
#f15a3btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bcbdbdsilver
#bcbdbdsilver

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.08:1AAA
Primary button8.25:1AAA
Secondary button8.27:1AAA
Muted text7.61:1AAA
Accent8.28:1AAA
Destructive5.67:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.16:1AAA
Primary button8.25:1AAA
Secondary button8.27:1AAA
Muted text8.60:1AAA
Accent8.28:1AAA
Destructive6.27:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 242.211);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.942 0.01 342.87);
  --muted-foreground: oklch(0.408 0.027 344.18);
  --popover: oklch(0.984 0.003 242.228);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.003 242.228);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.797 0.001 242.213);
  --primary-foreground: oklch(0.259 0.001 242.236);
  --secondary: oklch(0.797 0.002 342.673);
  --secondary-foreground: oklch(0.259 0.001 342.739);
  --accent: oklch(0.799 0.002 126.46);
  --accent-foreground: oklch(0.26 0.001 126.497);
  --destructive: oklch(0.535 0.192 32.563);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.797 0.001 242.213);
  --chart-1: oklch(0.797 0.001 242.213);
  --chart-2: oklch(0.797 0.002 342.673);
  --chart-3: oklch(0.799 0.002 126.46);
  --chart-4: oklch(0.821 0.002 342.665);
  --chart-5: oklch(0.797 0.005 242.271);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.001 242.211);
  --muted: oklch(0.176 0.015 344.592);
  --muted-foreground: oklch(0.755 0.023 343.355);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.001 242.202);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 242.202);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.797 0.001 242.213);
  --primary-foreground: oklch(0.259 0.001 242.236);
  --secondary: oklch(0.797 0.002 342.673);
  --secondary-foreground: oklch(0.259 0.001 342.739);
  --accent: oklch(0.799 0.002 126.46);
  --accent-foreground: oklch(0.26 0.001 126.497);
  --destructive: oklch(0.663 0.192 33.2);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.797 0.001 242.213);
  --chart-1: oklch(0.797 0.001 242.213);
  --chart-2: oklch(0.797 0.002 342.673);
  --chart-3: oklch(0.799 0.002 126.46);
  --chart-4: oklch(0.821 0.002 342.665);
  --chart-5: oklch(0.797 0.005 242.271);
}