Workbench for shadcn/ui

Workbench is a shadcn/ui theme built around a neutral gray primary color (#808489) with neutral gray accents (#c6c9cd). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the neutral gray primary (#808489) on a blue-tinted background (#04070c).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#04070cblack
Foreground
#020508black
#f8fafcghostwhite
Card
#f8fafcghostwhite
#050a10black
Card foreground
#010204black
#fbfcfdwhite
Popover
#f8fafcghostwhite
#050a10black
Popover foreground
#010204black
#fbfcfdwhite
Primary
#808489gray
#808489gray
Primary foreground
#000000black
#000000black
Secondary
#d8d9dagainsboro
#131416black
Secondary foreground
#3e4041darkslategray
#a8adb3darkgray
Muted
#eef2f6whitesmoke
#090c11black
Muted foreground
#58606adimgray
#959da7darkgray
Accent
#c6c9cdsilver
#21262bdarkslategray
Accent foreground
#2d3034darkslategray
#b7bec8silver
Destructive
#ab3d12brown
#d04a16chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#808489gray
#808489gray

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.79:1AAA
Primary button5.58:1AA
Secondary button7.35:1AAA
Muted text5.66:1AA
Accent7.97:1AAA
Destructive6.16:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.37:1AAA
Primary button5.58:1AA
Secondary button8.14:1AAA
Muted text7.13:1AAA
Accent8.15:1AAA
Destructive4.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 253.231);
  --foreground: oklch(0.111 0.012 245.236);
  --muted: oklch(0.959 0.007 253.268);
  --muted-foreground: oklch(0.486 0.018 253.446);
  --popover: oklch(0.983 0.003 253.243);
  --popover-foreground: oklch(0.088 0.01 245.236);
  --card: oklch(0.983 0.003 253.243);
  --card-foreground: oklch(0.088 0.01 245.236);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.612 0.01 253.323);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.884 0.001 253.23);
  --secondary-foreground: oklch(0.369 0.003 253.271);
  --accent: oklch(0.835 0.007 253.275);
  --accent-foreground: oklch(0.308 0.008 253.382);
  --destructive: oklch(0.51 0.153 39.037);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.612 0.01 253.323);
  --chart-1: oklch(0.612 0.01 253.323);
  --chart-2: oklch(0.884 0.001 253.23);
  --chart-3: oklch(0.835 0.007 253.275);
  --chart-4: oklch(0.907 0.001 253.227);
  --chart-5: oklch(0.609 0.017 253.393);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.014 245.839);
  --foreground: oklch(0.983 0.004 253.244);
  --muted: oklch(0.154 0.011 253.314);
  --muted-foreground: oklch(0.693 0.017 253.372);
  --popover: oklch(0.14 0.017 248.76);
  --popover-foreground: oklch(0.992 0.002 253.231);
  --card: oklch(0.14 0.017 248.76);
  --card-foreground: oklch(0.992 0.002 253.231);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.612 0.01 253.323);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.192 0.004 253.346);
  --secondary-foreground: oklch(0.745 0.011 253.314);
  --accent: oklch(0.265 0.012 253.487);
  --accent-foreground: oklch(0.8 0.015 253.343);
  --destructive: oklch(0.588 0.178 38.795);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.612 0.01 253.323);
  --chart-1: oklch(0.612 0.01 253.323);
  --chart-2: oklch(0.192 0.004 253.346);
  --chart-3: oklch(0.265 0.012 253.487);
  --chart-4: oklch(0.225 0.005 253.361);
  --chart-5: oklch(0.609 0.017 253.393);
}