Judicial Industrial Green for shadcn/ui

Judicial Industrial Green is a shadcn/ui theme built around a vivid deep green primary color (#194a02) with vivid deep green accents (#024a0f). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid deep green primary (#194a02) on a green-tinted background (#090d07).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#090d07black
Foreground
#020401black
#ffffffwhite
Card
#f9fcf8mintcream
#0b1109black
Card foreground
#000000black
#ffffffwhite
Popover
#f9fcf8mintcream
#0b1109black
Popover foreground
#000000black
#ffffffwhite
Primary
#194a02darkgreen
#194a02darkgreen
Primary foreground
#65f820lawngreen
#65f820lawngreen
Secondary
#3d4a02darkolivegreen
#3d4a02darkolivegreen
Secondary foreground
#d1f820greenyellow
#d1f820greenyellow
Muted
#dee0d7gainsboro
#26281fdarkslategray
Muted foreground
#565a44darkolivegreen
#b7bba5darkgray
Accent
#024a0fdarkgreen
#024a0fdarkgreen
Accent foreground
#20f848limegreen
#20f848limegreen
Destructive
#6f2201maroon
#ed4902orangered
Destructive foreground
#febfa4lightpink
#ffffffwhite
Border
#e7ebe5beige
#1b2018black
Input
#e7ebe5beige
#1b2018black
Ring
#194a02darkgreen
#194a02darkgreen

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.26:1AAA
Primary button7.39:1AAA
Secondary button7.85:1AAA
Muted text5.33:1AA
Accent7.30:1AAA
Destructive6.92:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.15:1AAA
Primary button7.39:1AAA
Secondary button7.85:1AAA
Muted text7.57:1AAA
Accent7.30:1AAA
Destructive3.77:1AA Large

CSS variables

Paste this into your globals.css to use Judicial Industrial Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 135.439);
  --foreground: oklch(0.098 0.015 133.98);
  --muted: oklch(0.902 0.012 115.062);
  --muted-foreground: oklch(0.458 0.035 116.233);
  --popover: oklch(0.987 0.005 135.45);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 135.45);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.936 0.01 135.473);
  --input: oklch(0.936 0.01 135.473);
  --primary: oklch(0.362 0.111 138.549);
  --primary-foreground: oklch(0.865 0.264 138.865);
  --secondary: oklch(0.385 0.09 120.689);
  --secondary-foreground: oklch(0.919 0.214 120.852);
  --accent: oklch(0.357 0.111 144.898);
  --accent-foreground: oklch(0.853 0.265 144.598);
  --destructive: oklch(0.369 0.116 39.552);
  --destructive-foreground: oklch(0.856 0.082 44.242);
  --ring: oklch(0.362 0.111 138.549);
  --chart-1: oklch(0.362 0.111 138.549);
  --chart-2: oklch(0.385 0.09 120.689);
  --chart-3: oklch(0.357 0.111 144.898);
  --chart-4: oklch(0.435 0.103 120.935);
  --chart-5: oklch(0.365 0.113 138.619);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.015 135.039);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.272 0.015 115.874);
  --muted-foreground: oklch(0.783 0.031 115.552);
  --popover: oklch(0.167 0.018 135.838);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.167 0.018 135.838);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.235 0.017 135.751);
  --input: oklch(0.235 0.017 135.751);
  --primary: oklch(0.362 0.111 138.549);
  --primary-foreground: oklch(0.865 0.264 138.865);
  --secondary: oklch(0.385 0.09 120.689);
  --secondary-foreground: oklch(0.919 0.214 120.852);
  --accent: oklch(0.357 0.111 144.898);
  --accent-foreground: oklch(0.853 0.265 144.598);
  --destructive: oklch(0.634 0.21 37.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.362 0.111 138.549);
  --chart-1: oklch(0.362 0.111 138.549);
  --chart-2: oklch(0.385 0.09 120.689);
  --chart-3: oklch(0.357 0.111 144.898);
  --chart-4: oklch(0.435 0.103 120.935);
  --chart-5: oklch(0.365 0.113 138.619);
}