Combative Acid Lime for shadcn/ui

Combative Acid Lime is a shadcn/ui theme built around a green primary color (#b6da25) with muted light green accents (#ccd1b8). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#b6da25) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#040401black
#fdfdfbsnow
Card
#ffffffwhite
#030302black
Card foreground
#040401black
#fdfdfbsnow
Popover
#ffffffwhite
#030302black
Popover foreground
#040401black
#fdfdfbsnow
Primary
#b6da25yellowgreen
#b6da25yellowgreen
Primary foreground
#242c07black
#242c07black
Secondary
#d5d8calightgrey
#2a2a28darkslategray
Secondary foreground
#3d4130darkslategray
#c3c4c0silver
Muted
#f1f3e7linen
#15180cblack
Muted foreground
#5d5f53dimgray
#a9aca0darkgray
Accent
#ccd1b8silver
#424536darkslategray
Accent foreground
#313422darkslategray
#d9dbd1lightgrey
Destructive
#6b2e0asaddlebrown
#ee8244coral
Destructive foreground
#f8cab0peachpuff
#000000black
Border
#ecede8linen
#24251dblack
Input
#ecede8linen
#24251dblack
Ring
#b6da25yellowgreen
#b6da25yellowgreen

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.52:1AAA
Primary button9.06:1AAA
Secondary button7.26:1AAA
Muted text5.80:1AA
Accent8.10:1AAA
Destructive6.96:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button9.06:1AAA
Secondary button8.21:1AAA
Muted text7.78:1AAA
Accent7.07:1AAA
Destructive7.92:1AAA

CSS variables

Paste this into your globals.css to use Combative Acid Lime in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.104 0.017 116.21);
  --muted: oklch(0.96 0.016 115.889);
  --muted-foreground: oklch(0.481 0.02 116.331);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.104 0.017 116.21);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.104 0.017 116.21);
  --border: oklch(0.945 0.007 115.717);
  --input: oklch(0.945 0.007 115.717);
  --primary: oklch(0.833 0.192 121.33);
  --primary-foreground: oklch(0.276 0.056 119.96);
  --secondary: oklch(0.876 0.019 115.972);
  --secondary-foreground: oklch(0.365 0.028 116.998);
  --accent: oklch(0.849 0.034 116.308);
  --accent-foreground: oklch(0.318 0.031 117.4);
  --destructive: oklch(0.38 0.099 45.82);
  --destructive-foreground: oklch(0.872 0.063 51.662);
  --ring: oklch(0.833 0.192 121.33);
  --chart-1: oklch(0.833 0.192 121.33);
  --chart-2: oklch(0.876 0.019 115.972);
  --chart-3: oklch(0.849 0.034 116.308);
  --chart-4: oklch(0.897 0.016 115.897);
  --chart-5: oklch(0.843 0.196 121.522);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.008 115.906);
  --foreground: oklch(0.994 0.003 115.626);
  --muted: oklch(0.202 0.023 117.714);
  --muted-foreground: oklch(0.739 0.018 116.02);
  --popover: oklch(0.098 0.008 115.906);
  --popover-foreground: oklch(0.994 0.003 115.626);
  --card: oklch(0.098 0.008 115.906);
  --card-foreground: oklch(0.994 0.003 115.626);
  --border: oklch(0.262 0.016 116.685);
  --input: oklch(0.262 0.016 116.685);
  --primary: oklch(0.833 0.192 121.33);
  --primary-foreground: oklch(0.276 0.056 119.96);
  --secondary: oklch(0.284 0.004 115.866);
  --secondary-foreground: oklch(0.818 0.005 115.693);
  --accent: oklch(0.381 0.024 116.755);
  --accent-foreground: oklch(0.887 0.013 115.855);
  --destructive: oklch(0.716 0.152 48.547);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.833 0.192 121.33);
  --chart-1: oklch(0.833 0.192 121.33);
  --chart-2: oklch(0.284 0.004 115.866);
  --chart-3: oklch(0.381 0.024 116.755);
  --chart-4: oklch(0.315 0.005 115.877);
  --chart-5: oklch(0.843 0.196 121.522);
}