Spreadsheet Green Badger for shadcn/ui

Spreadsheet Green Badger is a shadcn/ui theme built around a vivid deep green primary color (#067a0f) with vivid deep purple accents (#7a0670). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the vivid deep green primary (#067a0f) on a green-tinted background (#040b05).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#040b05black
Foreground
#041005black
#ffffffwhite
Card
#f7fdf8mintcream
#040b05black
Card foreground
#041005black
#ffffffwhite
Popover
#f7fdf8mintcream
#040b05black
Popover foreground
#041005black
#ffffffwhite
Primary
#067a0fgreen
#067a0fgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7a0670purple
#7a0670purple
Secondary foreground
#fcb6f6pink
#fcb6f6pink
Muted
#e7d5e6gainsboro
#2a1829black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#7a0670purple
#7a0670purple
Accent foreground
#fcb6f6pink
#fcb6f6pink
Destructive
#d0530bchocolate
#e45b0cchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e6eae6gainsboro
#1c211cblack
Input
#e6eae6gainsboro
#1c211cblack
Ring
#067a0fgreen
#067a0fgreen

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button5.54:1AA
Secondary button6.31:1AA
Muted text7.41:1AAA
Accent6.31:1AA
Destructive4.24:1AA Large
Dark mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button5.54:1AA
Secondary button6.31:1AA
Muted text9.05:1AAA
Accent6.31:1AA
Destructive3.62:1AA Large

CSS variables

Paste this into your globals.css to use Spreadsheet Green Badger in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.008 147.975);
  --foreground: oklch(0.158 0.032 146.294);
  --muted: oklch(0.892 0.03 328.415);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.987 0.008 147.975);
  --popover-foreground: oklch(0.158 0.032 146.294);
  --card: oklch(0.987 0.008 147.975);
  --card-foreground: oklch(0.158 0.032 146.294);
  --border: oklch(0.933 0.007 147.989);
  --input: oklch(0.933 0.007 147.989);
  --primary: oklch(0.503 0.165 143.164);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.402 0.177 332.607);
  --secondary-foreground: oklch(0.86 0.114 329.367);
  --accent: oklch(0.402 0.177 332.607);
  --accent-foreground: oklch(0.86 0.114 329.367);
  --destructive: oklch(0.6 0.173 43.152);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.503 0.165 143.164);
  --chart-1: oklch(0.503 0.165 143.164);
  --chart-2: oklch(0.402 0.177 332.607);
  --chart-3: oklch(0.402 0.177 332.607);
  --chart-4: oklch(0.436 0.192 332.656);
  --chart-5: oklch(0.508 0.168 143.115);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.023 146.881);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.241 0.042 329.732);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.139 0.023 146.881);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.023 146.881);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.242 0.012 147.508);
  --input: oklch(0.242 0.012 147.508);
  --primary: oklch(0.503 0.165 143.164);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.402 0.177 332.607);
  --secondary-foreground: oklch(0.86 0.114 329.367);
  --accent: oklch(0.402 0.177 332.607);
  --accent-foreground: oklch(0.86 0.114 329.367);
  --destructive: oklch(0.64 0.186 42.981);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.503 0.165 143.164);
  --chart-1: oklch(0.503 0.165 143.164);
  --chart-2: oklch(0.402 0.177 332.607);
  --chart-3: oklch(0.402 0.177 332.607);
  --chart-4: oklch(0.436 0.192 332.656);
  --chart-5: oklch(0.508 0.168 143.115);
}