Bagpipe for shadcn/ui

Bagpipe is a shadcn/ui theme built around a neutral gray primary color (#a2aea2) with neutral gray accents (#aea2a2). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#a2aea2) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030703black
Foreground
#031103black
#f9fbf9mintcream
Card
#f7fcf7mintcream
#040b04black
Card foreground
#020d02black
#fcfdfcwhite
Popover
#fbfefbwhite
#030703black
Popover foreground
#031103black
#f9fbf9mintcream
Primary
#a2aea2darkgray
#a2aea2darkgray
Primary foreground
#0e100eblack
#0e100eblack
Secondary
#a2a2aedarkgray
#a2a2aedarkgray
Secondary foreground
#0e0e10black
#0e0e10black
Muted
#dcdceflavender
#101023black
Muted foreground
#4d4d56darkslategray
#a9a9b2darkgray
Accent
#aea2a2darkgray
#aea2a2darkgray
Accent foreground
#100e0eblack
#100e0eblack
Destructive
#aa1103darkred
#fa1e0ared
Destructive foreground
#fee3e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a2aea2darkgray
#a2aea2darkgray

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.12:1AAA
Primary button8.32:1AAA
Secondary button7.66:1AAA
Muted text6.16:1AA
Accent7.81:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.50:1AAA
Primary button8.32:1AAA
Secondary button7.66:1AAA
Muted text8.05:1AAA
Accent7.81:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 146.02);
  --foreground: oklch(0.16 0.04 143.895);
  --muted: oklch(0.899 0.027 286.609);
  --muted-foreground: oklch(0.423 0.016 286.456);
  --popover: oklch(0.994 0.004 146.02);
  --popover-foreground: oklch(0.16 0.04 143.895);
  --card: oklch(0.987 0.008 145.985);
  --card-foreground: oklch(0.142 0.035 143.991);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.739 0.022 145.812);
  --primary-foreground: oklch(0.171 0.006 145.788);
  --secondary: oklch(0.717 0.017 286.718);
  --secondary-foreground: oklch(0.166 0.004 286.671);
  --accent: oklch(0.724 0.014 18.661);
  --accent-foreground: oklch(0.168 0.004 18.691);
  --destructive: oklch(0.469 0.184 30.207);
  --destructive-foreground: oklch(0.938 0.03 23.918);
  --ring: oklch(0.739 0.022 145.812);
  --chart-1: oklch(0.739 0.022 145.812);
  --chart-2: oklch(0.717 0.017 286.718);
  --chart-3: oklch(0.724 0.014 18.661);
  --chart-4: oklch(0.743 0.016 286.776);
  --chart-5: oklch(0.742 0.031 145.708);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.02 144.733);
  --foreground: oklch(0.985 0.002 146.037);
  --muted: oklch(0.183 0.04 282.461);
  --muted-foreground: oklch(0.736 0.014 286.819);
  --popover: oklch(0.121 0.02 144.733);
  --popover-foreground: oklch(0.985 0.002 146.037);
  --card: oklch(0.139 0.023 144.725);
  --card-foreground: oklch(0.993 0.001 146.045);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.739 0.022 145.812);
  --primary-foreground: oklch(0.171 0.006 145.788);
  --secondary: oklch(0.717 0.017 286.718);
  --secondary-foreground: oklch(0.166 0.004 286.671);
  --accent: oklch(0.724 0.014 18.661);
  --accent-foreground: oklch(0.168 0.004 18.691);
  --destructive: oklch(0.626 0.246 30.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.022 145.812);
  --chart-1: oklch(0.739 0.022 145.812);
  --chart-2: oklch(0.717 0.017 286.718);
  --chart-3: oklch(0.724 0.014 18.661);
  --chart-4: oklch(0.743 0.016 286.776);
  --chart-5: oklch(0.742 0.031 145.708);
}