Excess for shadcn/ui

Excess is a shadcn/ui theme built around a muted deep yellow primary color (#16140e) with muted deep green accents (#14160e). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep yellow primary (#16140e) on a yellow-tinted background (#0a0905).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0905black
Foreground
#040301black
#fbfaf9snow
Card
#fcfcfcsnow
#0d0c07black
Card foreground
#000000black
#fdfdfcwhite
Popover
#ffffffwhite
#0a0905black
Popover foreground
#040301black
#fbfaf9snow
Primary
#16140eblack
#16140eblack
Primary foreground
#bfb797tan
#bfb797tan
Secondary
#16100eblack
#16100eblack
Secondary foreground
#bfa397rosybrown
#bfa397rosybrown
Muted
#e5e2e0gainsboro
#1f1b1ablack
Muted foreground
#584841darkolivegreen
#beaea7darkgray
Accent
#14160eblack
#14160eblack
Accent foreground
#b3bf97darkgray
#b3bf97darkgray
Destructive
#781e02maroon
#fa460forangered
Destructive foreground
#fdc1aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#16140eblack
#16140eblack

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.54:1AAA
Primary button9.12:1AAA
Secondary button7.97:1AAA
Muted text6.74:1AA
Accent9.39:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.20:1AAA
Primary button9.12:1AAA
Secondary button7.97:1AAA
Muted text7.97:1AAA
Accent9.39:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.012 99.182);
  --muted: oklch(0.915 0.004 44.933);
  --muted-foreground: oklch(0.416 0.025 44.479);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.012 99.182);
  --card: oklch(0.992 0 161.565);
  --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.193 0.013 95.677);
  --primary-foreground: oklch(0.778 0.045 95.6);
  --secondary: oklch(0.18 0.011 44.454);
  --secondary-foreground: oklch(0.736 0.038 44.538);
  --accent: oklch(0.195 0.017 121.545);
  --accent-foreground: oklch(0.785 0.057 121.28);
  --destructive: oklch(0.381 0.129 35.685);
  --destructive-foreground: oklch(0.861 0.074 37.601);
  --ring: oklch(0.193 0.013 95.677);
  --chart-1: oklch(0.193 0.013 95.677);
  --chart-2: oklch(0.18 0.011 44.454);
  --chart-3: oklch(0.195 0.017 121.545);
  --chart-4: oklch(0.214 0.016 44.388);
  --chart-5: oklch(0.194 0.015 95.717);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.01 97.674);
  --foreground: oklch(0.986 0.002 95.058);
  --muted: oklch(0.226 0.006 44.719);
  --muted-foreground: oklch(0.762 0.021 44.72);
  --popover: oklch(0.14 0.01 97.674);
  --popover-foreground: oklch(0.986 0.002 95.058);
  --card: oklch(0.155 0.011 96.405);
  --card-foreground: oklch(0.993 0.001 95.046);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.193 0.013 95.677);
  --primary-foreground: oklch(0.778 0.045 95.6);
  --secondary: oklch(0.18 0.011 44.454);
  --secondary-foreground: oklch(0.736 0.038 44.538);
  --accent: oklch(0.195 0.017 121.545);
  --accent-foreground: oklch(0.785 0.057 121.28);
  --destructive: oklch(0.653 0.223 34.977);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.193 0.013 95.677);
  --chart-1: oklch(0.193 0.013 95.677);
  --chart-2: oklch(0.18 0.011 44.454);
  --chart-3: oklch(0.195 0.017 121.545);
  --chart-4: oklch(0.214 0.016 44.388);
  --chart-5: oklch(0.194 0.015 95.717);
}