Upset for shadcn/ui

Upset is a shadcn/ui theme built around a muted green primary color (#aec9ac) with muted green accents (#acc4ab). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted green primary (#aec9ac) on a green-tinted background (#040c04).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#040c04black
Foreground
#010401black
#f8fcf8mintcream
Card
#f8fcf8mintcream
#061005black
Card foreground
#000000black
#fcfdfbsnow
Popover
#fcfdfcwhite
#040c04black
Popover foreground
#010401black
#f8fcf8mintcream
Primary
#aec9acsilver
#aec9acsilver
Primary foreground
#1b281ablack
#1b281ablack
Secondary
#c8d1c7lightgrey
#2f322fdarkslategray
Secondary foreground
#2f382edarkslategray
#c8cbc8silver
Muted
#d5ddd5gainsboro
#232a22darkslategray
Muted foreground
#3f513ddarkslategray
#afc2aesilver
Accent
#acc4abdarkgray
#374436darkslategray
Accent foreground
#1a2419black
#d2dbd2lightgrey
Destructive
#6f0e01maroon
#e81d02red
Destructive foreground
#feafa4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aec9acsilver
#aec9acsilver

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.24:1AAA
Primary button8.57:1AAA
Secondary button7.74:1AAA
Muted text6.14:1AA
Accent8.61:1AAA
Destructive6.82:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.04:1AAA
Primary button8.57:1AAA
Secondary button7.93:1AAA
Muted text7.81:1AAA
Accent7.24:1AAA
Destructive4.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 143.62);
  --foreground: oklch(0.098 0.02 141.744);
  --muted: oklch(0.889 0.013 143.559);
  --muted-foreground: oklch(0.414 0.04 143.11);
  --popover: oklch(0.993 0.003 143.62);
  --popover-foreground: oklch(0.098 0.02 141.744);
  --card: oklch(0.987 0.006 143.604);
  --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.807 0.05 143.306);
  --primary-foreground: oklch(0.261 0.031 142.983);
  --secondary: oklch(0.85 0.016 143.539);
  --secondary-foreground: oklch(0.328 0.02 143.313);
  --accent: oklch(0.796 0.044 143.338);
  --accent-foreground: oklch(0.247 0.025 143.083);
  --destructive: oklch(0.349 0.132 31.644);
  --destructive-foreground: oklch(0.826 0.095 27.625);
  --ring: oklch(0.807 0.05 143.306);
  --chart-1: oklch(0.807 0.05 143.306);
  --chart-2: oklch(0.85 0.016 143.539);
  --chart-3: oklch(0.796 0.044 143.338);
  --chart-4: oklch(0.873 0.013 143.556);
  --chart-5: oklch(0.809 0.057 143.26);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.025 142.067);
  --foreground: oklch(0.987 0.007 143.601);
  --muted: oklch(0.276 0.017 143.302);
  --muted-foreground: oklch(0.793 0.035 143.404);
  --popover: oklch(0.14 0.025 142.067);
  --popover-foreground: oklch(0.987 0.007 143.601);
  --card: oklch(0.156 0.029 142.151);
  --card-foreground: oklch(0.993 0.003 143.618);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.807 0.05 143.306);
  --primary-foreground: oklch(0.261 0.031 142.983);
  --secondary: oklch(0.313 0.006 143.528);
  --secondary-foreground: oklch(0.839 0.005 143.601);
  --accent: oklch(0.371 0.028 143.23);
  --accent-foreground: oklch(0.882 0.015 143.545);
  --destructive: oklch(0.593 0.232 30.624);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.807 0.05 143.306);
  --chart-1: oklch(0.807 0.05 143.306);
  --chart-2: oklch(0.313 0.006 143.528);
  --chart-3: oklch(0.371 0.028 143.23);
  --chart-4: oklch(0.343 0.007 143.525);
  --chart-5: oklch(0.809 0.057 143.26);
}