Bassoon for shadcn/ui

Bassoon is a shadcn/ui theme built around a muted purple primary color (#aa6ea5) with muted green accents (#6eaa73). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted purple primary (#aa6ea5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#050104black
#fdfcfdwhite
Card
#fdf7fdsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7fdsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#aa6ea5rosybrown
#aa6ea5rosybrown
Primary foreground
#000000black
#000000black
Secondary
#6eaa73darkseagreen
#6eaa73darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#eff5f0whitesmoke
#0a100ablack
Muted foreground
#4d664fdarkolivegreen
#99b29bdarkseagreen
Accent
#6eaa73darkseagreen
#6eaa73darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#921e01darkred
#e83002orangered
Destructive foreground
#fed2c7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aa6ea5rosybrown
#aa6ea5rosybrown

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card19.85:1AAA
Primary button5.50:1AA
Secondary button7.67:1AAA
Muted text5.71:1AA
Accent7.67:1AAA
Destructive6.30:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button5.50:1AA
Secondary button7.67:1AAA
Muted text8.44:1AAA
Accent7.67:1AAA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 328.12);
  --foreground: oklch(0.083 0.028 329.93);
  --muted: oklch(0.965 0.009 147.961);
  --muted-foreground: oklch(0.482 0.047 146.976);
  --popover: oklch(0.982 0.011 328.177);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.011 328.177);
  --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.621 0.106 329.706);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.683 0.101 146.345);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.683 0.101 146.345);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.432 0.155 33.692);
  --destructive-foreground: oklch(0.9 0.052 34.355);
  --ring: oklch(0.621 0.106 329.706);
  --chart-1: oklch(0.621 0.106 329.706);
  --chart-2: oklch(0.683 0.101 146.345);
  --chart-3: oklch(0.683 0.101 146.345);
  --chart-4: oklch(0.704 0.094 146.529);
  --chart-5: oklch(0.621 0.117 329.877);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 328.09);
  --muted: oklch(0.163 0.014 147.073);
  --muted-foreground: oklch(0.739 0.043 147.437);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.621 0.106 329.706);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.683 0.101 146.345);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.683 0.101 146.345);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.604 0.223 32.863);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.621 0.106 329.706);
  --chart-1: oklch(0.621 0.106 329.706);
  --chart-2: oklch(0.683 0.101 146.345);
  --chart-3: oklch(0.683 0.101 146.345);
  --chart-4: oklch(0.704 0.094 146.529);
  --chart-5: oklch(0.621 0.117 329.877);
}