Wiretap for shadcn/ui

Wiretap is a shadcn/ui theme built around a vivid green primary color (#9cf28c) with vivid green accents (#8cf2b0). The light mode uses a neutral background (#f9fbf8). Dark mode keeps the vivid green primary (#9cf28c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9fbf8mintcream
#000000black
Foreground
#030802black
#f9fcf8mintcream
Card
#f6faf5whitesmoke
#030303black
Card foreground
#010401black
#fcfdfbsnow
Popover
#f6faf5whitesmoke
#030303black
Popover foreground
#010401black
#fcfdfbsnow
Primary
#9cf28clightgreen
#9cf28clightgreen
Primary foreground
#114508darkgreen
#114508darkgreen
Secondary
#cff28ckhaki
#cff28ckhaki
Secondary foreground
#2f4508darkgreen
#2f4508darkgreen
Muted
#ecf0e5beige
#161a0fblack
Muted foreground
#515648darkolivegreen
#b2b7a9darkgray
Accent
#8cf2b0palegreen
#8cf2b0palegreen
Accent foreground
#08451ddarkgreen
#08451ddarkgreen
Destructive
#a10502darkred
#fb120ered
Destructive foreground
#fed7d7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9cf28clightgreen
#9cf28clightgreen

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.48:1AAA
Primary button8.25:1AAA
Secondary button8.47:1AAA
Muted text6.54:1AA
Accent8.23:1AAA
Destructive6.28:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.26:1AAA
Primary button8.25:1AAA
Secondary button8.47:1AAA
Muted text8.63:1AAA
Accent8.23:1AAA
Destructive4.03:1AA Large

CSS variables

Paste this into your globals.css to use Wiretap in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 141.054);
  --foreground: oklch(0.124 0.024 139.209);
  --muted: oklch(0.949 0.015 122.455);
  --muted-foreground: oklch(0.445 0.023 123.054);
  --popover: oklch(0.98 0.007 141.049);
  --popover-foreground: oklch(0.098 0.019 139.209);
  --card: oklch(0.98 0.007 141.049);
  --card-foreground: oklch(0.098 0.019 139.209);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.883 0.159 140.739);
  --primary-foreground: oklch(0.343 0.104 141.072);
  --secondary: oklch(0.914 0.134 124.757);
  --secondary-foreground: oklch(0.359 0.087 127.833);
  --accent: oklch(0.882 0.134 154.187);
  --accent-foreground: oklch(0.343 0.09 149.569);
  --destructive: oklch(0.447 0.181 29.29);
  --destructive-foreground: oklch(0.913 0.044 19.131);
  --ring: oklch(0.883 0.159 140.739);
  --chart-1: oklch(0.883 0.159 140.739);
  --chart-2: oklch(0.914 0.134 124.757);
  --chart-3: oklch(0.882 0.134 154.187);
  --chart-4: oklch(0.923 0.119 124.399);
  --chart-5: oklch(0.887 0.165 140.735);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.006 141.052);
  --muted: oklch(0.209 0.021 123.846);
  --muted-foreground: oklch(0.772 0.021 122.634);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.003 141.058);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.003 141.058);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.883 0.159 140.739);
  --primary-foreground: oklch(0.343 0.104 141.072);
  --secondary: oklch(0.914 0.134 124.757);
  --secondary-foreground: oklch(0.359 0.087 127.833);
  --accent: oklch(0.882 0.134 154.187);
  --accent-foreground: oklch(0.343 0.09 149.569);
  --destructive: oklch(0.625 0.251 29.044);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.883 0.159 140.739);
  --chart-1: oklch(0.883 0.159 140.739);
  --chart-2: oklch(0.914 0.134 124.757);
  --chart-3: oklch(0.882 0.134 154.187);
  --chart-4: oklch(0.923 0.119 124.399);
  --chart-5: oklch(0.887 0.165 140.735);
}