Scornful Green Glutton for shadcn/ui

Scornful Green Glutton is a shadcn/ui theme built around a deep green primary color (#207420) with deep purple accents (#742074). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#207420) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#ffffffwhite
#010401black
Foreground
#010401black
#f6f9f6whitesmoke
Card
#ffffffwhite
#010401black
Card foreground
#010401black
#f6f9f6whitesmoke
Popover
#ffffffwhite
#010401black
Popover foreground
#010401black
#f6f9f6whitesmoke
Primary
#207420forestgreen
#207420forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#742074purple
#742074purple
Secondary foreground
#f3d3f3lavender
#f3d3f3lavender
Muted
#f4f0f4whitesmoke
#0f0b0fblack
Muted foreground
#5f595fdimgray
#a6a0a6darkgray
Accent
#742074purple
#742074purple
Accent foreground
#f3d3f3lavender
#f3d3f3lavender
Destructive
#9f180ffirebrick
#e92416crimson
Destructive foreground
#fce5e3mistyrose
#ffffffwhite
Border
#eef1eewhitesmoke
#191f19black
Input
#eef1eewhitesmoke
#191f19black
Ring
#207420forestgreen
#207420forestgreen

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button5.85:1AA
Secondary button7.00:1AAA
Muted text6.06:1AA
Accent7.00:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button5.85:1AA
Secondary button7.00:1AAA
Muted text7.63:1AAA
Accent7.00:1AAA
Destructive4.43:1AA Large

CSS variables

Paste this into your globals.css to use Scornful Green Glutton in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.019 143.96);
  --muted: oklch(0.96 0.006 325.624);
  --muted-foreground: oklch(0.471 0.011 325.753);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.019 143.96);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.097 0.019 143.96);
  --border: oklch(0.956 0.006 145.531);
  --input: oklch(0.956 0.006 145.531);
  --primary: oklch(0.492 0.143 143.007);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.412 0.155 327.94);
  --secondary-foreground: oklch(0.903 0.055 326.022);
  --accent: oklch(0.412 0.155 327.94);
  --accent-foreground: oklch(0.903 0.055 326.022);
  --destructive: oklch(0.452 0.17 29.591);
  --destructive-foreground: oklch(0.94 0.026 22.544);
  --ring: oklch(0.492 0.143 143.007);
  --chart-1: oklch(0.492 0.143 143.007);
  --chart-2: oklch(0.412 0.155 327.94);
  --chart-3: oklch(0.412 0.155 327.94);
  --chart-4: oklch(0.441 0.167 327.957);
  --chart-5: oklch(0.497 0.148 142.938);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.019 143.96);
  --foreground: oklch(0.979 0.005 145.534);
  --muted: oklch(0.156 0.01 326.024);
  --muted-foreground: oklch(0.714 0.01 325.682);
  --popover: oklch(0.097 0.019 143.96);
  --popover-foreground: oklch(0.979 0.005 145.534);
  --card: oklch(0.097 0.019 143.96);
  --card-foreground: oklch(0.979 0.005 145.534);
  --border: oklch(0.231 0.015 145.077);
  --input: oklch(0.231 0.015 145.077);
  --primary: oklch(0.492 0.143 143.007);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.412 0.155 327.94);
  --secondary-foreground: oklch(0.903 0.055 326.022);
  --accent: oklch(0.412 0.155 327.94);
  --accent-foreground: oklch(0.903 0.055 326.022);
  --destructive: oklch(0.599 0.229 29.689);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.492 0.143 143.007);
  --chart-1: oklch(0.492 0.143 143.007);
  --chart-2: oklch(0.412 0.155 327.94);
  --chart-3: oklch(0.412 0.155 327.94);
  --chart-4: oklch(0.441 0.167 327.957);
  --chart-5: oklch(0.497 0.148 142.938);
}