Boon for shadcn/ui

Boon is a shadcn/ui theme built around a neutral gray primary color (#c0c4c1) with neutral gray accents (#c4c1c0). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the neutral gray primary (#c0c4c1) on a green-tinted background (#041006).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#041006black
Foreground
#010401black
#f9fbf9mintcream
Card
#f8fcf9mintcream
#061408black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f8fcf9mintcream
#061408black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#c0c4c1silver
#c0c4c1silver
Primary foreground
#282a28darkslategray
#282a28darkslategray
Secondary
#c1c0c4silver
#c1c0c4silver
Secondary foreground
#28282adarkslategray
#28282adarkslategray
Muted
#d8d5ecgainsboro
#16132ablack
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#c4c1c0silver
#c4c1c0silver
Accent foreground
#2a2828darkslategray
#2a2828darkslategray
Destructive
#972f0csaddlebrown
#e24612orangered
Destructive foreground
#fce2d9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c0c4c1silver
#c0c4c1silver

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.24:1AAA
Primary button8.17:1AAA
Secondary button8.11:1AAA
Muted text5.44:1AA
Accent8.15:1AAA
Destructive6.24:1AA
Dark mode
Text on background18.66:1AAA
Text on card18.55:1AAA
Primary button8.17:1AAA
Secondary button8.11:1AAA
Muted text8.05:1AAA
Accent8.15:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 150.21);
  --foreground: oklch(0.097 0.018 149.128);
  --muted: oklch(0.882 0.032 292.621);
  --muted-foreground: oklch(0.437 0 180);
  --popover: oklch(0.987 0.006 150.172);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.006 150.172);
  --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.815 0.006 150.152);
  --primary-foreground: oklch(0.282 0.005 150.007);
  --secondary: oklch(0.809 0.005 293.187);
  --secondary-foreground: oklch(0.276 0.004 293.001);
  --accent: oklch(0.812 0.004 29.483);
  --accent-foreground: oklch(0.279 0.003 29.508);
  --destructive: oklch(0.458 0.145 36.776);
  --destructive-foreground: oklch(0.931 0.031 39.336);
  --ring: oklch(0.815 0.006 150.152);
  --chart-1: oklch(0.815 0.006 150.152);
  --chart-2: oklch(0.809 0.005 293.187);
  --chart-3: oklch(0.812 0.004 29.483);
  --chart-4: oklch(0.834 0.004 293.206);
  --chart-5: oklch(0.817 0.012 150.057);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.028 148.669);
  --foreground: oklch(0.986 0.003 150.211);
  --muted: oklch(0.204 0.045 288.607);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0.173 0.033 148.116);
  --popover-foreground: oklch(0.993 0.001 150.229);
  --card: oklch(0.173 0.033 148.116);
  --card-foreground: oklch(0.993 0.001 150.229);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.815 0.006 150.152);
  --primary-foreground: oklch(0.282 0.005 150.007);
  --secondary: oklch(0.809 0.005 293.187);
  --secondary-foreground: oklch(0.276 0.004 293.001);
  --accent: oklch(0.812 0.004 29.483);
  --accent-foreground: oklch(0.279 0.003 29.508);
  --destructive: oklch(0.614 0.201 36.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.006 150.152);
  --chart-1: oklch(0.815 0.006 150.152);
  --chart-2: oklch(0.809 0.005 293.187);
  --chart-3: oklch(0.812 0.004 29.483);
  --chart-4: oklch(0.834 0.004 293.206);
  --chart-5: oklch(0.817 0.012 150.057);
}