Blackbird for shadcn/ui

Blackbird is a shadcn/ui theme built around a muted purple primary color (#a264aa) with neutral gray accents (#d7d5d8). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted purple primary (#a264aa) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#000000black
Foreground
#0f0411black
#ffffffwhite
Card
#fdfcfdwhite
#000000black
Card foreground
#0f0411black
#ffffffwhite
Popover
#fdfcfdwhite
#000000black
Popover foreground
#0f0411black
#ffffffwhite
Primary
#a264aamediumorchid
#a264aamediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d7d5d8lightgrey
#161316black
Secondary foreground
#3f3b40darkslategray
#b2a7b4darkgray
Muted
#f0e3f2lavender
#1a0d1cblack
Muted foreground
#413e42darkslategray
#c1bdc1silver
Accent
#d7d5d8lightgrey
#161316black
Accent foreground
#3f3b40darkslategray
#b2a7b4darkgray
Destructive
#c70a0afirebrick
#e40c0cred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a264aamediumorchid
#a264aamediumorchid

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button4.24:1AA Large
Secondary button7.51:1AAA
Muted text8.52:1AAA
Accent7.51:1AAA
Destructive6.05:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.24:1AA Large
Secondary button7.98:1AAA
Muted text10.12:1AAA
Accent7.98:1AAA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 322.123);
  --foreground: oklch(0.136 0.036 323.377);
  --muted: oklch(0.931 0.025 322.202);
  --muted-foreground: oklch(0.368 0.008 322.185);
  --popover: oklch(0.991 0.003 322.123);
  --popover-foreground: oklch(0.136 0.036 323.377);
  --card: oklch(0.991 0.003 322.123);
  --card-foreground: oklch(0.136 0.036 323.377);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.597 0.123 322.711);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.875 0.005 322.134);
  --secondary-foreground: oklch(0.358 0.01 322.209);
  --accent: oklch(0.875 0.005 322.134);
  --accent-foreground: oklch(0.358 0.01 322.209);
  --destructive: oklch(0.523 0.21 28.789);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.597 0.123 322.711);
  --chart-1: oklch(0.597 0.123 322.711);
  --chart-2: oklch(0.875 0.005 322.134);
  --chart-3: oklch(0.875 0.005 322.134);
  --chart-4: oklch(0.899 0.004 322.129);
  --chart-5: oklch(0.596 0.135 322.751);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.036 322.686);
  --muted-foreground: oklch(0.803 0.006 322.14);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.597 0.123 322.711);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.191 0.008 322.252);
  --secondary-foreground: oklch(0.742 0.023 322.216);
  --accent: oklch(0.191 0.008 322.252);
  --accent-foreground: oklch(0.742 0.023 322.216);
  --destructive: oklch(0.579 0.234 28.854);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.597 0.123 322.711);
  --chart-1: oklch(0.597 0.123 322.711);
  --chart-2: oklch(0.191 0.008 322.252);
  --chart-3: oklch(0.191 0.008 322.252);
  --chart-4: oklch(0.223 0.01 322.27);
  --chart-5: oklch(0.596 0.135 322.751);
}