Worker for shadcn/ui

Worker is a shadcn/ui theme built around a light violet primary color (#d0c2e5) with light green accents (#d8e5c2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#d0c2e5) on a violet-tinted background (#09060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#09060eblack
Foreground
#040208black
#faf9fbghostwhite
Card
#fcfcfcsnow
#0c0811black
Card foreground
#020104black
#fcfcfdwhite
Popover
#fcfcfcsnow
#0c0811black
Popover foreground
#020104black
#fcfcfdwhite
Primary
#d0c2e5thistle
#d0c2e5thistle
Primary foreground
#352352midnightblue
#352352midnightblue
Secondary
#d8e5c2lightgrey
#d8e5c2lightgrey
Secondary foreground
#405223darkolivegreen
#405223darkolivegreen
Muted
#f3f7edwhitesmoke
#0e1208black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#d8e5c2lightgrey
#d8e5c2lightgrey
Accent foreground
#405223darkolivegreen
#405223darkolivegreen
Destructive
#a03108saddlebrown
#ed480corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0c2e5thistle
#d0c2e5thistle

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.37:1AAA
Primary button8.28:1AAA
Secondary button6.49:1AA
Muted text7.80:1AAA
Accent6.49:1AA
Destructive7.16:1AAA
Dark mode
Text on background19.12:1AAA
Text on card19.35:1AAA
Primary button8.28:1AAA
Secondary button6.49:1AA
Muted text9.04:1AAA
Accent6.49:1AA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.023 304.652);
  --muted: oklch(0.971 0.014 123.855);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.079 0.018 304.652);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.079 0.018 304.652);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.837 0.05 302.758);
  --primary-foreground: oklch(0.304 0.083 299.099);
  --secondary: oklch(0.903 0.048 124.447);
  --secondary-foreground: oklch(0.412 0.074 126.783);
  --accent: oklch(0.903 0.048 124.447);
  --accent-foreground: oklch(0.412 0.074 126.783);
  --destructive: oklch(0.476 0.153 37.091);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.837 0.05 302.758);
  --chart-1: oklch(0.837 0.05 302.758);
  --chart-2: oklch(0.903 0.048 124.447);
  --chart-3: oklch(0.903 0.048 124.447);
  --chart-4: oklch(0.92 0.04 124.287);
  --chart-5: oklch(0.835 0.054 302.688);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.018 303.179);
  --foreground: oklch(0.983 0.003 303.599);
  --muted: oklch(0.174 0.021 125.319);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.145 0.021 301.803);
  --popover-foreground: oklch(0.992 0.001 303.62);
  --card: oklch(0.145 0.021 301.803);
  --card-foreground: oklch(0.992 0.001 303.62);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.837 0.05 302.758);
  --primary-foreground: oklch(0.304 0.083 299.099);
  --secondary: oklch(0.903 0.048 124.447);
  --secondary-foreground: oklch(0.412 0.074 126.783);
  --accent: oklch(0.903 0.048 124.447);
  --accent-foreground: oklch(0.412 0.074 126.783);
  --destructive: oklch(0.634 0.21 36.514);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.837 0.05 302.758);
  --chart-1: oklch(0.837 0.05 302.758);
  --chart-2: oklch(0.903 0.048 124.447);
  --chart-3: oklch(0.903 0.048 124.447);
  --chart-4: oklch(0.92 0.04 124.287);
  --chart-5: oklch(0.835 0.054 302.688);
}