Pesky for shadcn/ui

Pesky is a shadcn/ui theme built around a vivid green primary color (#7ef6a6) with vivid teal accents (#7ef6e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#7ef6a6) on a green-tinted background (#070e09).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e09black
Foreground
#031709black
#f4faf6whitesmoke
Card
#fcfcfcsnow
#08110bblack
Card foreground
#021208black
#f8fcf9mintcream
Popover
#fcfcfcsnow
#08110bblack
Popover foreground
#021208black
#f8fcf9mintcream
Primary
#7ef6a6lightgreen
#7ef6a6lightgreen
Primary foreground
#043e18darkgreen
#043e18darkgreen
Secondary
#92f67elightgreen
#92f67elightgreen
Secondary foreground
#0e3e04darkgreen
#0e3e04darkgreen
Muted
#cfe8c9lightgrey
#1c3617darkgreen
Muted foreground
#5f645edimgray
#9ca19bdarkgray
Accent
#7ef6e2aquamarine
#7ef6e2aquamarine
Accent foreground
#043e34darkslategray
#043e34darkslategray
Destructive
#9f2209firebrick
#f1340eorangered
Destructive foreground
#fde3ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7ef6a6lightgreen
#7ef6a6lightgreen

Contrast

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

Light mode
Text on background18.57:1AAA
Text on card18.80:1AAA
Primary button9.15:1AAA
Secondary button9.19:1AAA
Muted text4.61:1AA
Accent9.27:1AAA
Destructive6.34:1AA
Dark mode
Text on background18.48:1AAA
Text on card18.48:1AAA
Primary button9.15:1AAA
Secondary button9.19:1AAA
Muted text5.04:1AA
Accent9.27:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.182 0.04 153.641);
  --muted: oklch(0.904 0.049 140.449);
  --muted-foreground: oklch(0.496 0.011 140.498);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.164 0.034 154.999);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.164 0.034 154.999);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.883 0.156 152.811);
  --primary-foreground: oklch(0.319 0.086 148.922);
  --secondary: oklch(0.885 0.183 140.356);
  --secondary-foreground: oklch(0.319 0.099 140.73);
  --accent: oklch(0.898 0.113 181.416);
  --accent-foreground: oklch(0.327 0.058 177.839);
  --destructive: oklch(0.46 0.164 32.593);
  --destructive-foreground: oklch(0.935 0.03 31.136);
  --ring: oklch(0.883 0.156 152.811);
  --chart-1: oklch(0.883 0.156 152.811);
  --chart-2: oklch(0.885 0.183 140.356);
  --chart-3: oklch(0.898 0.113 181.416);
  --chart-4: oklch(0.896 0.164 140.34);
  --chart-5: oklch(0.887 0.161 152.663);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.016 156.218);
  --foreground: oklch(0.98 0.008 157.099);
  --muted: oklch(0.302 0.061 140.353);
  --muted-foreground: oklch(0.703 0.01 140.51);
  --popover: oklch(0.167 0.018 155.009);
  --popover-foreground: oklch(0.987 0.005 157.156);
  --card: oklch(0.167 0.018 155.009);
  --card-foreground: oklch(0.987 0.005 157.156);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.883 0.156 152.811);
  --primary-foreground: oklch(0.319 0.086 148.922);
  --secondary: oklch(0.885 0.183 140.356);
  --secondary-foreground: oklch(0.319 0.099 140.73);
  --accent: oklch(0.898 0.113 181.416);
  --accent-foreground: oklch(0.327 0.058 177.839);
  --destructive: oklch(0.623 0.228 32.317);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.883 0.156 152.811);
  --chart-1: oklch(0.883 0.156 152.811);
  --chart-2: oklch(0.885 0.183 140.356);
  --chart-3: oklch(0.898 0.113 181.416);
  --chart-4: oklch(0.896 0.164 140.34);
  --chart-5: oklch(0.887 0.161 152.663);
}