Worker for shadcn/ui

Worker is a shadcn/ui theme built around a muted blue primary color (#7180a2) with muted blue accents (#b3bacc). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#7180a2) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030407black
Foreground
#000000black
#f4f6fawhitesmoke
Card
#fbfcfewhite
#030407black
Card foreground
#000000black
#f4f6fawhitesmoke
Popover
#fbfcfewhite
#030407black
Popover foreground
#000000black
#f4f6fawhitesmoke
Primary
#7180a2lightslategray
#7180a2lightslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cfd2d8lightgrey
#161717black
Secondary foreground
#353841darkslategray
#aeafb2darkgray
Muted
#dbdde1gainsboro
#1e2024black
Muted foreground
#595f6edimgray
#9197a6darkgray
Accent
#b3baccsilver
#23252adarkslategray
Accent foreground
#1f232edarkslategray
#babdc5silver
Destructive
#780202maroon
#fa1919red
Destructive foreground
#fdafaflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7180a2lightslategray
#7180a2lightslategray

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card20.44:1AAA
Primary button3.95:1AA Large
Secondary button7.73:1AAA
Muted text4.67:1AA
Accent8.08:1AAA
Destructive6.59:1AA
Dark mode
Text on background18.91:1AAA
Text on card18.91:1AAA
Primary button3.95:1AA Large
Secondary button8.19:1AAA
Muted text5.58:1AA
Accent8.17:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 267.405);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.896 0.007 267.376);
  --muted-foreground: oklch(0.486 0.026 267.027);
  --popover: oklch(0.991 0.003 267.405);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.003 267.405);
  --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.6 0.056 266.645);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.863 0.009 267.359);
  --secondary-foreground: oklch(0.342 0.015 267.105);
  --accent: oklch(0.789 0.027 267.191);
  --accent-foreground: oklch(0.257 0.021 266.745);
  --destructive: oklch(0.361 0.146 28.915);
  --destructive-foreground: oklch(0.829 0.092 19.211);
  --ring: oklch(0.6 0.056 266.645);
  --chart-1: oklch(0.6 0.056 266.645);
  --chart-2: oklch(0.863 0.009 267.359);
  --chart-3: oklch(0.789 0.027 267.191);
  --chart-4: oklch(0.888 0.007 267.372);
  --chart-5: oklch(0.596 0.064 266.493);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.009 262.638);
  --foreground: oklch(0.974 0.006 267.386);
  --muted: oklch(0.243 0.009 267.154);
  --muted-foreground: oklch(0.677 0.024 267.181);
  --popover: oklch(0.109 0.009 262.638);
  --popover-foreground: oklch(0.974 0.006 267.386);
  --card: oklch(0.109 0.009 262.638);
  --card-foreground: oklch(0.974 0.006 267.386);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.6 0.056 266.645);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.204 0.001 267.382);
  --secondary-foreground: oklch(0.755 0.003 267.394);
  --accent: oklch(0.264 0.009 267.175);
  --accent-foreground: oklch(0.798 0.012 267.329);
  --destructive: oklch(0.626 0.247 28.444);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.6 0.056 266.645);
  --chart-1: oklch(0.6 0.056 266.645);
  --chart-2: oklch(0.204 0.001 267.382);
  --chart-3: oklch(0.264 0.009 267.175);
  --chart-4: oklch(0.236 0.002 267.377);
  --chart-5: oklch(0.596 0.064 266.493);
}