Bony for shadcn/ui

Bony is a shadcn/ui theme built around a deep purple primary color (#6b1f6b) with muted purple accents (#c8b7c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#6b1f6b) on a purple-tinted background (#0c030c).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c030cblack
Foreground
#000000black
#faf4faghostwhite
Card
#ffffffwhite
#0c030cblack
Card foreground
#000000black
#faf4faghostwhite
Popover
#ffffffwhite
#0c030cblack
Popover foreground
#000000black
#faf4faghostwhite
Primary
#6b1f6bpurple
#6b1f6bpurple
Primary foreground
#f0ccf0lavender
#f0ccf0lavender
Secondary
#d1ccd1lightgrey
#372537darkslategray
Secondary foreground
#383338darkslategray
#d2bcd2thistle
Muted
#e5d7e5gainsboro
#281a28black
Muted foreground
#463946darkslategray
#c6b9c6silver
Accent
#c8b7c8silver
#4e2d4edarkslategray
Accent foreground
#2b212bdarkslategray
#e1cbe1thistle
Destructive
#e13805orangered
#fb6132tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6b1f6bpurple
#6b1f6bpurple

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.19:1AAA
Secondary button7.81:1AAA
Muted text7.84:1AAA
Accent8.14:1AAA
Destructive4.40:1AA Large
Dark mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button7.19:1AAA
Secondary button8.01:1AAA
Muted text8.77:1AAA
Accent7.67:1AAA
Destructive6.84:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.894 0.024 325.776);
  --muted-foreground: oklch(0.364 0.027 326.124);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.39 0.142 327.883);
  --primary-foreground: oklch(0.886 0.063 326.093);
  --secondary: oklch(0.851 0.008 325.651);
  --secondary-foreground: oklch(0.328 0.012 325.844);
  --accent: oklch(0.798 0.029 325.849);
  --accent-foreground: oklch(0.265 0.023 326.209);
  --destructive: oklch(0.597 0.211 34.33);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.39 0.142 327.883);
  --chart-1: oklch(0.39 0.142 327.883);
  --chart-2: oklch(0.851 0.008 325.651);
  --chart-3: oklch(0.798 0.029 325.849);
  --chart-4: oklch(0.875 0.007 325.637);
  --chart-5: oklch(0.393 0.148 327.946);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.03 327.174);
  --foreground: oklch(0.975 0.01 325.652);
  --muted: oklch(0.242 0.033 326.535);
  --muted-foreground: oklch(0.8 0.023 325.787);
  --popover: oklch(0.124 0.03 327.174);
  --popover-foreground: oklch(0.975 0.01 325.652);
  --card: oklch(0.124 0.03 327.174);
  --card-foreground: oklch(0.975 0.01 325.652);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.39 0.142 327.883);
  --primary-foreground: oklch(0.886 0.063 326.093);
  --secondary: oklch(0.293 0.041 326.569);
  --secondary-foreground: oklch(0.82 0.04 325.931);
  --accent: oklch(0.351 0.07 326.944);
  --accent-foreground: oklch(0.867 0.038 325.902);
  --destructive: oklch(0.685 0.198 36.923);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.39 0.142 327.883);
  --chart-1: oklch(0.39 0.142 327.883);
  --chart-2: oklch(0.293 0.041 326.569);
  --chart-3: oklch(0.351 0.07 326.944);
  --chart-4: oklch(0.323 0.047 326.6);
  --chart-5: oklch(0.393 0.148 327.946);
}