Boon for shadcn/ui

Boon is a shadcn/ui theme built around a vivid deep pink primary color (#570a28) with muted pink accents (#ccb3bc). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the vivid deep pink primary (#570a28) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fdf7f9snow
#070305black
Foreground
#0c0307black
#fcf8fasnow
Card
#fcf3f6lavenderblush
#0b0407black
Card foreground
#080204black
#fdfcfcsnow
Popover
#fdf7f9snow
#070305black
Popover foreground
#0c0307black
#fcf8fasnow
Primary
#570a28maroon
#570a28maroon
Primary foreground
#f49fc0lightpink
#f49fc0lightpink
Secondary
#d4c9cdlightgrey
#161314black
Secondary foreground
#3c2f34darkslategray
#b3a8acdarkgray
Muted
#e3d8ddgainsboro
#271c20black
Muted foreground
#66575ddimgray
#a8999fdarkgray
Accent
#ccb3bcsilver
#291e22black
Accent foreground
#2e1f24darkslategray
#c7b3basilver
Destructive
#ae100afirebrick
#f34039tomato
Destructive foreground
#feececlinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#570a28maroon
#570a28maroon

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card18.87:1AAA
Primary button7.15:1AAA
Secondary button7.90:1AAA
Muted text4.91:1AA
Accent8.00:1AAA
Destructive6.43:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.80:1AAA
Primary button7.15:1AAA
Secondary button8.01:1AAA
Muted text6.09:1AA
Accent8.09:1AAA
Destructive3.74: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.981 0.007 351.797);
  --foreground: oklch(0.12 0.024 351.513);
  --muted: oklch(0.893 0.014 352.023);
  --muted-foreground: oklch(0.473 0.022 352.855);
  --popover: oklch(0.981 0.007 351.797);
  --popover-foreground: oklch(0.12 0.024 351.513);
  --card: oklch(0.972 0.011 351.903);
  --card-foreground: oklch(0.105 0.021 351.174);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.302 0.109 4.39);
  --primary-foreground: oklch(0.796 0.108 355.221);
  --secondary: oklch(0.846 0.014 352.068);
  --secondary-foreground: oklch(0.322 0.02 353.322);
  --accent: oklch(0.79 0.032 352.718);
  --accent-foreground: oklch(0.259 0.026 354.274);
  --destructive: oklch(0.476 0.188 29.125);
  --destructive-foreground: oklch(0.958 0.019 19.891);
  --ring: oklch(0.302 0.109 4.39);
  --chart-1: oklch(0.302 0.109 4.39);
  --chart-2: oklch(0.846 0.014 352.068);
  --chart-3: oklch(0.79 0.032 352.718);
  --chart-4: oklch(0.871 0.012 351.979);
  --chart-5: oklch(0.304 0.112 4.967);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.016 351.281);
  --foreground: oklch(0.983 0.004 351.703);
  --muted: oklch(0.24 0.019 353.773);
  --muted-foreground: oklch(0.698 0.019 352.374);
  --popover: oklch(0.107 0.016 351.281);
  --popover-foreground: oklch(0.983 0.004 351.703);
  --card: oklch(0.123 0.018 351.408);
  --card-foreground: oklch(0.991 0.002 351.647);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.302 0.109 4.39);
  --primary-foreground: oklch(0.796 0.108 355.221);
  --secondary: oklch(0.19 0.005 352.342);
  --secondary-foreground: oklch(0.742 0.014 352.142);
  --accent: oklch(0.251 0.018 353.555);
  --accent-foreground: oklch(0.785 0.025 352.48);
  --destructive: oklch(0.639 0.217 27.358);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.302 0.109 4.39);
  --chart-1: oklch(0.302 0.109 4.39);
  --chart-2: oklch(0.19 0.005 352.342);
  --chart-3: oklch(0.251 0.018 353.555);
  --chart-4: oklch(0.223 0.007 352.436);
  --chart-5: oklch(0.304 0.112 4.967);
}