Sweatshop for shadcn/ui

Sweatshop is a shadcn/ui theme built around a deep green primary color (#071405) with deep green accents (#05140b). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the deep green primary (#071405) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#000000black
Foreground
#061504black
#ffffffwhite
Card
#fcfdfcwhite
#000000black
Card foreground
#061504black
#ffffffwhite
Popover
#fcfdfcwhite
#000000black
Popover foreground
#061504black
#ffffffwhite
Primary
#071405black
#071405black
Primary foreground
#42b530limegreen
#42b530limegreen
Secondary
#0f1405black
#0f1405black
Secondary foreground
#84b530yellowgreen
#84b530yellowgreen
Muted
#f3f5f0whitesmoke
#0d0f0ablack
Muted foreground
#60635adimgray
#a2a59cdarkgray
Accent
#05140bblack
#05140bblack
Accent foreground
#30b561mediumseagreen
#30b561mediumseagreen
Destructive
#710505maroon
#e60a0ared
Destructive foreground
#fcacaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#071405black
#071405black

Contrast

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

Light mode
Text on background18.45:1AAA
Text on card18.45:1AAA
Primary button7.08:1AAA
Secondary button7.68:1AAA
Muted text5.56:1AA
Accent7.10:1AAA
Destructive6.76:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.08:1AAA
Secondary button7.68:1AAA
Muted text7.69:1AAA
Accent7.10:1AAA
Destructive4.75:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 141.585);
  --foreground: oklch(0.178 0.042 140.134);
  --muted: oklch(0.966 0.006 123.029);
  --muted-foreground: oklch(0.494 0.015 123.405);
  --popover: oklch(0.993 0.002 141.585);
  --popover-foreground: oklch(0.178 0.042 140.134);
  --card: oklch(0.993 0.002 141.585);
  --card-foreground: oklch(0.178 0.042 140.134);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.175 0.036 140.388);
  --primary-foreground: oklch(0.683 0.198 141.213);
  --secondary: oklch(0.181 0.03 125.073);
  --secondary-foreground: oklch(0.714 0.166 127.903);
  --accent: oklch(0.175 0.029 155.495);
  --accent-foreground: oklch(0.684 0.166 150.958);
  --destructive: oklch(0.347 0.138 28.555);
  --destructive-foreground: oklch(0.82 0.094 19.286);
  --ring: oklch(0.175 0.036 140.388);
  --chart-1: oklch(0.175 0.036 140.388);
  --chart-2: oklch(0.181 0.03 125.073);
  --chart-3: oklch(0.175 0.029 155.495);
  --chart-4: oklch(0.229 0.043 126.288);
  --chart-5: oklch(0.176 0.038 140.311);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.165 0.01 123.847);
  --muted-foreground: oklch(0.718 0.014 123.227);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.175 0.036 140.388);
  --primary-foreground: oklch(0.683 0.198 141.213);
  --secondary: oklch(0.181 0.03 125.073);
  --secondary-foreground: oklch(0.714 0.166 127.903);
  --accent: oklch(0.175 0.029 155.495);
  --accent-foreground: oklch(0.684 0.166 150.958);
  --destructive: oklch(0.583 0.236 28.938);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.175 0.036 140.388);
  --chart-1: oklch(0.175 0.036 140.388);
  --chart-2: oklch(0.181 0.03 125.073);
  --chart-3: oklch(0.175 0.029 155.495);
  --chart-4: oklch(0.229 0.043 126.288);
  --chart-5: oklch(0.176 0.038 140.311);
}