Blackboard for shadcn/ui

Blackboard is a shadcn/ui theme built around a neutral gray primary color (#817e81) with neutral gray accents (#817e80). The light mode uses a neutral background (#fefbfe). Dark mode keeps the neutral gray primary (#817e81) on a purple-tinted background (#0f050f).

Color palette

TokenLightDark
Background
#fefbfewhite
#0f050fblack
Foreground
#0c020dblack
#ffffffwhite
Card
#fefbfewhite
#0f050fblack
Card foreground
#0c020dblack
#ffffffwhite
Popover
#fefbfewhite
#0f050fblack
Popover foreground
#0c020dblack
#ffffffwhite
Primary
#817e81gray
#817e81gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7f7e81gray
#7f7e81gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d7c9e8thistle
#251736midnightblue
Muted foreground
#5b5760dimgray
#a39fa8darkgray
Accent
#817e80gray
#817e80gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#dd1a08red
#f73c2borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#817e81gray
#817e81gray

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button4.00:1AA Large
Secondary button4.02:1AA Large
Muted text4.52:1AA
Accent4.01:1AA Large
Destructive4.95:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button4.00:1AA Large
Secondary button4.02:1AA Large
Muted text6.45:1AA
Accent4.01:1AA Large
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 324.155);
  --foreground: oklch(0.122 0.035 325.994);
  --muted: oklch(0.858 0.044 305.769);
  --muted-foreground: oklch(0.465 0.016 306.003);
  --popover: oklch(0.991 0.004 324.155);
  --popover-foreground: oklch(0.122 0.035 325.994);
  --card: oklch(0.991 0.004 324.155);
  --card-foreground: oklch(0.122 0.035 325.994);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.597 0.005 324.176);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.596 0.004 306.342);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.597 0.004 342.77);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.572 0.225 30.048);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.597 0.005 324.176);
  --chart-1: oklch(0.597 0.005 324.176);
  --chart-2: oklch(0.596 0.004 306.342);
  --chart-3: oklch(0.597 0.004 342.77);
  --chart-4: oklch(0.622 0.004 306.351);
  --chart-5: oklch(0.593 0.019 324.315);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.029 325.382);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.239 0.059 302.998);
  --muted-foreground: oklch(0.708 0.014 306.176);
  --popover: oklch(0.139 0.029 325.382);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.029 325.382);
  --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.005 324.176);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.596 0.004 306.342);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.597 0.004 342.77);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.642 0.225 29.752);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.597 0.005 324.176);
  --chart-1: oklch(0.597 0.005 324.176);
  --chart-2: oklch(0.596 0.004 306.342);
  --chart-3: oklch(0.597 0.004 342.77);
  --chart-4: oklch(0.622 0.004 306.351);
  --chart-5: oklch(0.593 0.019 324.315);
}