Pro Hacker Theme for shadcn/ui

Pro Hacker Theme is a shadcn/ui theme built around a vivid green primary color (#15ff00) with neutral gray accents (#262626). The light mode uses a neutral background (#000000). Dark mode keeps the vivid green primary (#15ff00) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#000000black
#000000black
Foreground
#11c700lime
#11c700lime
Card
#000000black
#000000black
Card foreground
#13e000lime
#13e000lime
Popover
#000000black
#000000black
Popover foreground
#15fa00lime
#15fa00lime
Primary
#15ff00lime
#15ff00lime
Primary foreground
#043300darkgreen
#043300darkgreen
Secondary
#30532ddarkslategray
#30532ddarkslategray
Secondary foreground
#cfe4cdlightgrey
#cfe4cdlightgrey
Muted
#2b2222darkslategray
#2b2222darkslategray
Muted foreground
#b09b9brosybrown
#b09b9brosybrown
Accent
#262626darkslategray
#262626darkslategray
Accent foreground
#bfbfbfsilver
#bfbfbfsilver
Destructive
#e93e2bcrimson
#e93e2bcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#0d0d0dblack
#0d0d0dblack
Input
#141414black
#141414black
Ring
#15ff00lime
#15ff00lime

Contrast

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

Light mode
Text on background9.19:1AAA
Text on card11.68:1AAA
Primary button10.37:1AAA
Secondary button6.52:1AA
Muted text5.93:1AA
Accent8.20:1AAA
Destructive4.06:1AA Large
Dark mode
Text on background9.19:1AAA
Text on card11.68:1AAA
Primary button10.37:1AAA
Secondary button6.52:1AA
Muted text5.93:1AA
Accent8.20:1AAA
Destructive4.06:1AA Large

CSS variables

Paste this into your globals.css to use Pro Hacker Theme in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.72 0.243 142.215);
  --muted: oklch(0.261 0.014 18.092);
  --muted-foreground: oklch(0.708 0.025 17.766);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.854 0.289 142.267);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.788 0.266 142.244);
  --border: oklch(0.158 0 169.695);
  --input: oklch(0.193 0 164.055);
  --primary: oklch(0.867 0.294 142.27);
  --primary-foreground: oklch(0.28 0.093 141.34);
  --secondary: oklch(0.404 0.074 142.262);
  --secondary-foreground: oklch(0.898 0.038 142.934);
  --accent: oklch(0.27 0 180);
  --accent-foreground: oklch(0.805 0 169.695);
  --destructive: oklch(0.618 0.21 30.288);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.867 0.294 142.27);
  --chart-1: oklch(0.867 0.294 142.27);
  --chart-2: oklch(0.404 0.074 142.262);
  --chart-3: oklch(0.27 0 180);
  --chart-4: oklch(0.437 0.081 142.25);
  --chart-5: oklch(0.877 0.298 142.281);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.72 0.243 142.215);
  --muted: oklch(0.261 0.014 18.092);
  --muted-foreground: oklch(0.708 0.025 17.766);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.854 0.289 142.267);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.788 0.266 142.244);
  --border: oklch(0.158 0 169.695);
  --input: oklch(0.193 0 164.055);
  --primary: oklch(0.867 0.294 142.27);
  --primary-foreground: oklch(0.28 0.093 141.34);
  --secondary: oklch(0.404 0.074 142.262);
  --secondary-foreground: oklch(0.898 0.038 142.934);
  --accent: oklch(0.27 0 180);
  --accent-foreground: oklch(0.805 0 169.695);
  --destructive: oklch(0.618 0.21 30.288);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.867 0.294 142.27);
  --chart-1: oklch(0.867 0.294 142.27);
  --chart-2: oklch(0.404 0.074 142.262);
  --chart-3: oklch(0.27 0 180);
  --chart-4: oklch(0.437 0.081 142.25);
  --chart-5: oklch(0.877 0.298 142.281);
}