Worker for shadcn/ui

Worker is a shadcn/ui theme built around a near-black primary color (#030302) with near-black accents (#020303). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the near-black primary (#030302) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#fcf9f8snow
#070403black
Foreground
#160a04black
#ffffffwhite
Card
#fcf9f8snow
#070403black
Card foreground
#160a04black
#ffffffwhite
Popover
#fcf9f8snow
#070403black
Popover foreground
#160a04black
#ffffffwhite
Primary
#030302black
#030302black
Primary foreground
#a19a97darkgray
#a19a97darkgray
Secondary
#020303black
#020303black
Secondary foreground
#979da1darkgray
#979da1darkgray
Muted
#e6e9ealavender
#151819black
Muted foreground
#546269dimgray
#96a4abdarkgray
Accent
#020303black
#020303black
Accent foreground
#979da1darkgray
#979da1darkgray
Destructive
#790701maroon
#e80e02red
Destructive foreground
#feb2aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030302black
#030302black

Contrast

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

Light mode
Text on background18.58:1AAA
Text on card18.58:1AAA
Primary button7.46:1AAA
Secondary button7.53:1AAA
Muted text5.16:1AA
Accent7.53:1AAA
Destructive6.60:1AA
Dark mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button7.46:1AAA
Secondary button7.53:1AAA
Muted text6.98:1AA
Accent7.53:1AAA
Destructive4.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.004 46.814);
  --foreground: oklch(0.158 0.026 51.015);
  --muted: oklch(0.932 0.003 226.893);
  --muted-foreground: oklch(0.487 0.02 227.452);
  --popover: oklch(0.984 0.004 46.814);
  --popover-foreground: oklch(0.158 0.026 51.015);
  --card: oklch(0.984 0.004 46.814);
  --card-foreground: oklch(0.158 0.026 51.015);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.092 0.001 47.469);
  --primary-foreground: oklch(0.69 0.009 46.708);
  --secondary: oklch(0.092 0.001 226.263);
  --secondary-foreground: oklch(0.693 0.009 227.021);
  --accent: oklch(0.092 0.001 226.263);
  --accent-foreground: oklch(0.693 0.009 227.021);
  --destructive: oklch(0.366 0.145 30.035);
  --destructive-foreground: oklch(0.835 0.089 22.52);
  --ring: oklch(0.092 0.001 47.469);
  --chart-1: oklch(0.092 0.001 47.469);
  --chart-2: oklch(0.092 0.001 226.263);
  --chart-3: oklch(0.092 0.001 226.263);
  --chart-4: oklch(0.146 0.001 226.948);
  --chart-5: oklch(0.092 0.001 47.845);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.009 52.168);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.205 0.004 227.105);
  --muted-foreground: oklch(0.711 0.019 227.205);
  --popover: oklch(0.114 0.009 52.168);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.114 0.009 52.168);
  --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.092 0.001 47.469);
  --primary-foreground: oklch(0.69 0.009 46.708);
  --secondary: oklch(0.092 0.001 226.263);
  --secondary-foreground: oklch(0.693 0.009 227.021);
  --accent: oklch(0.092 0.001 226.263);
  --accent-foreground: oklch(0.693 0.009 227.021);
  --destructive: oklch(0.588 0.237 29.612);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.092 0.001 47.469);
  --chart-1: oklch(0.092 0.001 47.469);
  --chart-2: oklch(0.092 0.001 226.263);
  --chart-3: oklch(0.092 0.001 226.263);
  --chart-4: oklch(0.146 0.001 226.948);
  --chart-5: oklch(0.092 0.001 47.845);
}