Base16 Dark Greenscreen for shadcn/ui

Base16 Dark Greenscreen is a shadcn/ui theme built around a vivid green primary color (#00bd00) with vivid deep green accents (#005c00). The light mode uses a green-tinted background (#000f00). Dark mode keeps the vivid green primary (#00bd00) on a green-tinted background (#000f00).

Color palette

TokenLightDark
Background
#000f00black
#000f00black
Foreground
#00bd00green
#00bd00green
Card
#000500black
#000500black
Card foreground
#00d600lime
#00d600lime
Popover
#000000black
#000000black
Popover foreground
#00f000lime
#00f000lime
Primary
#00bd00green
#00bd00green
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#acd2acsilver
#acd2acsilver
Secondary foreground
#1b321bdarkslategray
#1b321bdarkslategray
Muted
#222b22darkslategray
#222b22darkslategray
Muted foreground
#9bb09bdarkseagreen
#9bb09bdarkseagreen
Accent
#005c00darkgreen
#005c00darkgreen
Accent foreground
#8fff8fpalegreen
#8fff8fpalegreen
Destructive
#f93310orangered
#f93310orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#022702black
#022702black
Input
#033503darkgreen
#033503darkgreen
Ring
#00bd00green
#00bd00green

Contrast

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

Light mode
Text on background7.73:1AAA
Text on card10.38:1AAA
Primary button2.54:1Fail
Secondary button8.30:1AAA
Muted text6.33:1AA
Accent6.68:1AA
Destructive3.81:1AA Large
Dark mode
Text on background7.73:1AAA
Text on card10.38:1AAA
Primary button2.54:1Fail
Secondary button8.30:1AAA
Muted text6.33:1AA
Accent6.68:1AA
Destructive3.81:1AA Large

CSS variables

Paste this into your globals.css to use Base16 Dark Greenscreen in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.147 0.05 142.495);
  --foreground: oklch(0.691 0.235 142.495);
  --muted: oklch(0.276 0.021 144.979);
  --muted-foreground: oklch(0.736 0.039 145.17);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.827 0.281 142.495);
  --card: oklch(0.1 0.034 142.495);
  --card-foreground: oklch(0.76 0.258 142.495);
  --border: oklch(0.237 0.076 142.701);
  --input: oklch(0.287 0.093 142.655);
  --primary: oklch(0.691 0.235 142.495);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.827 0.067 144.943);
  --secondary-foreground: oklch(0.29 0.05 144.144);
  --accent: oklch(0.411 0.14 142.495);
  --accent-foreground: oklch(0.907 0.182 143.898);
  --destructive: oklch(0.636 0.235 31.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.691 0.235 142.495);
  --chart-1: oklch(0.691 0.235 142.495);
  --chart-2: oklch(0.827 0.067 144.943);
  --chart-3: oklch(0.411 0.14 142.495);
  --chart-4: oklch(0.848 0.058 145.038);
  --chart-5: oklch(0.698 0.238 142.484);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.05 142.495);
  --foreground: oklch(0.691 0.235 142.495);
  --muted: oklch(0.276 0.021 144.979);
  --muted-foreground: oklch(0.736 0.039 145.17);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.827 0.281 142.495);
  --card: oklch(0.1 0.034 142.495);
  --card-foreground: oklch(0.76 0.258 142.495);
  --border: oklch(0.237 0.076 142.701);
  --input: oklch(0.287 0.093 142.655);
  --primary: oklch(0.691 0.235 142.495);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.827 0.067 144.943);
  --secondary-foreground: oklch(0.29 0.05 144.144);
  --accent: oklch(0.411 0.14 142.495);
  --accent-foreground: oklch(0.907 0.182 143.898);
  --destructive: oklch(0.636 0.235 31.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.691 0.235 142.495);
  --chart-1: oklch(0.691 0.235 142.495);
  --chart-2: oklch(0.827 0.067 144.943);
  --chart-3: oklch(0.411 0.14 142.495);
  --chart-4: oklch(0.848 0.058 145.038);
  --chart-5: oklch(0.698 0.238 142.484);
}