Bilious Green Newt for shadcn/ui

Bilious Green Newt is a shadcn/ui theme built around a green primary color (#acd270) with muted light red accents (#d8cfcf). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#acd270) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#ffffffwhite
#030402black
Foreground
#090d03black
#f8f8f7whitesmoke
Card
#ffffffwhite
#030402black
Card foreground
#090d03black
#f8f8f7whitesmoke
Popover
#ffffffwhite
#030402black
Popover foreground
#090d03black
#f8f8f7whitesmoke
Primary
#acd270darkkhaki
#acd270darkkhaki
Primary foreground
#090c04black
#090c04black
Secondary
#e0e0e0gainsboro
#242621black
Secondary foreground
#474747darkslategray
#bec1b8silver
Muted
#eeddddgainsboro
#1c2211black
Muted foreground
#4f4040darkslategray
#b9bfb0silver
Accent
#d8cfcflightgrey
#373d2edarkslategray
Accent foreground
#413535darkslategray
#d0d5c8lightgrey
Destructive
#bd2514firebrick
#eb5342tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ebede8linen
#272b22darkslategray
Input
#ebede8linen
#272b22darkslategray
Ring
#acd270darkkhaki
#acd270darkkhaki

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button11.42:1AAA
Secondary button7.06:1AAA
Muted text7.48:1AAA
Accent7.71:1AAA
Destructive6.10:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button11.42:1AAA
Secondary button8.35:1AAA
Muted text8.65:1AAA
Accent7.49:1AAA
Destructive3.59:1AA Large

CSS variables

Paste this into your globals.css to use Bilious Green Newt in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.026 123.388);
  --muted: oklch(0.911 0.019 17.509);
  --muted-foreground: oklch(0.386 0.022 18.142);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.026 123.388);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.149 0.026 123.388);
  --border: oklch(0.943 0.007 123.746);
  --input: oklch(0.943 0.007 123.746);
  --primary: oklch(0.814 0.133 126.397);
  --primary-foreground: oklch(0.146 0.02 123.274);
  --secondary: oklch(0.908 0 180);
  --secondary-foreground: oklch(0.399 0 180);
  --accent: oklch(0.862 0.01 17.343);
  --accent-foreground: oklch(0.341 0.017 18.008);
  --destructive: oklch(0.519 0.19 30.512);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.133 126.397);
  --chart-1: oklch(0.814 0.133 126.397);
  --chart-2: oklch(0.908 0 180);
  --chart-3: oklch(0.862 0.01 17.343);
  --chart-4: oklch(0.931 0 180);
  --chart-5: oklch(0.82 0.139 126.546);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 123.193);
  --foreground: oklch(0.979 0.002 123.671);
  --muted: oklch(0.241 0.032 125.826);
  --muted-foreground: oklch(0.797 0.023 124.065);
  --popover: oklch(0.099 0.011 123.193);
  --popover-foreground: oklch(0.979 0.002 123.671);
  --card: oklch(0.099 0.011 123.193);
  --card-foreground: oklch(0.979 0.002 123.671);
  --border: oklch(0.282 0.017 124.557);
  --input: oklch(0.282 0.017 124.557);
  --primary: oklch(0.814 0.133 126.397);
  --primary-foreground: oklch(0.146 0.02 123.274);
  --secondary: oklch(0.266 0.009 124.174);
  --secondary-foreground: oklch(0.807 0.013 123.886);
  --accent: oklch(0.35 0.026 124.787);
  --accent-foreground: oklch(0.866 0.019 123.97);
  --destructive: oklch(0.645 0.191 29.567);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.133 126.397);
  --chart-1: oklch(0.814 0.133 126.397);
  --chart-2: oklch(0.266 0.009 124.174);
  --chart-3: oklch(0.35 0.026 124.787);
  --chart-4: oklch(0.298 0.011 124.201);
  --chart-5: oklch(0.82 0.139 126.546);
}