Technician for shadcn/ui

Technician is a shadcn/ui theme built around a muted purple primary color (#784e79) with muted green accents (#4f794e). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted purple primary (#784e79) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#040104black
Foreground
#150316black
#ffffffwhite
Card
#fdfcfdwhite
#040104black
Card foreground
#150316black
#ffffffwhite
Popover
#fdfcfdwhite
#040104black
Popover foreground
#150316black
#ffffffwhite
Primary
#784e79dimgray
#784e79dimgray
Primary foreground
#fdfcfdwhite
#fdfcfdwhite
Secondary
#4f794edarkolivegreen
#4f794edarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1f0e0gainsboro
#0f1f0fblack
Muted foreground
#3f413edarkslategray
#bec1besilver
Accent
#4f794edarkolivegreen
#4f794edarkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6f1a0cmaroon
#e9472bchocolate
Destructive foreground
#f7bfb5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#784e79dimgray
#784e79dimgray

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button6.50:1AA
Secondary button5.00:1AA
Muted text8.70:1AAA
Accent5.00:1AA
Destructive7.14:1AAA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button6.50:1AA
Secondary button5.00:1AA
Muted text9.44:1AAA
Accent5.00:1AA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 324.636);
  --foreground: oklch(0.15 0.05 326.509);
  --muted: oklch(0.939 0.027 144.432);
  --muted-foreground: oklch(0.372 0.005 144.525);
  --popover: oklch(0.992 0.003 324.636);
  --popover-foreground: oklch(0.15 0.05 326.509);
  --card: oklch(0.992 0.003 324.636);
  --card-foreground: oklch(0.15 0.05 326.509);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.486 0.085 325.642);
  --primary-foreground: oklch(0.992 0.002 324.63);
  --secondary: oklch(0.534 0.082 143.569);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.534 0.082 143.569);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.36 0.12 32.353);
  --destructive-foreground: oklch(0.853 0.067 29.95);
  --ring: oklch(0.486 0.085 325.642);
  --chart-1: oklch(0.486 0.085 325.642);
  --chart-2: oklch(0.534 0.082 143.569);
  --chart-3: oklch(0.534 0.082 143.569);
  --chart-4: oklch(0.563 0.087 143.561);
  --chart-5: oklch(0.485 0.096 325.761);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.017 326.043);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.22 0.037 143.453);
  --muted-foreground: oklch(0.807 0.004 144.583);
  --popover: oklch(0.087 0.017 326.043);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.087 0.017 326.043);
  --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.486 0.085 325.642);
  --primary-foreground: oklch(0.992 0.002 324.63);
  --secondary: oklch(0.534 0.082 143.569);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.534 0.082 143.569);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.627 0.203 32.382);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.486 0.085 325.642);
  --chart-1: oklch(0.486 0.085 325.642);
  --chart-2: oklch(0.534 0.082 143.569);
  --chart-3: oklch(0.534 0.082 143.569);
  --chart-4: oklch(0.563 0.087 143.561);
  --chart-5: oklch(0.485 0.096 325.761);
}