Labor for shadcn/ui

Labor is a shadcn/ui theme built around a muted green primary color (#66745d) with muted violet accents (#6b5d74). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#66745d) on a green-tinted background (#091004).

Color palette

TokenLightDark
Background
#ffffffwhite
#091004black
Foreground
#000000black
#fcfdfcwhite
Card
#ffffffwhite
#091004black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#091004black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#66745ddimgray
#66745ddimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6b5d74dimgray
#6b5d74dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5daecgainsboro
#1e1325black
Muted foreground
#685d6fdimgray
#9b90a2darkgray
Accent
#6b5d74dimgray
#6b5d74dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a2130bfirebrick
#db190fcrimson
Destructive foreground
#fde4e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#66745ddimgray
#66745ddimgray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.96:1AA
Secondary button6.09:1AA
Muted text4.60:1AA
Accent6.09:1AA
Destructive6.59:1AA
Dark mode
Text on background18.90:1AAA
Text on card18.90:1AAA
Primary button4.96:1AA
Secondary button6.09:1AA
Muted text5.86:1AA
Accent6.09:1AA
Destructive5.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.903 0.026 312.145);
  --muted-foreground: oklch(0.495 0.032 311.883);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.541 0.039 132.921);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.5 0.04 311.771);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.5 0.04 311.771);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.455 0.176 29.338);
  --destructive-foreground: oklch(0.938 0.028 21.284);
  --ring: oklch(0.541 0.039 132.921);
  --chart-1: oklch(0.541 0.039 132.921);
  --chart-2: oklch(0.5 0.04 311.771);
  --chart-3: oklch(0.5 0.04 311.771);
  --chart-4: oklch(0.526 0.042 311.766);
  --chart-5: oklch(0.547 0.049 133.074);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.029 132.005);
  --foreground: oklch(0.993 0.001 132.366);
  --muted: oklch(0.211 0.037 311.023);
  --muted-foreground: oklch(0.668 0.029 312.031);
  --popover: oklch(0.162 0.029 132.005);
  --popover-foreground: oklch(0.993 0.001 132.366);
  --card: oklch(0.162 0.029 132.005);
  --card-foreground: oklch(0.993 0.001 132.366);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.541 0.039 132.921);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.5 0.04 311.771);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.5 0.04 311.771);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.568 0.223 29.423);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.541 0.039 132.921);
  --chart-1: oklch(0.541 0.039 132.921);
  --chart-2: oklch(0.5 0.04 311.771);
  --chart-3: oklch(0.5 0.04 311.771);
  --chart-4: oklch(0.526 0.042 311.766);
  --chart-5: oklch(0.547 0.049 133.074);
}