Pesky for shadcn/ui

Pesky is a shadcn/ui theme built around a green primary color (#ccde7c) with purple accents (#de7ccc). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#ccde7c) on a green-tinted background (#0d0f06).

Color palette

TokenLightDark
Background
#fdfefbwhite
#0d0f06black
Foreground
#0b0c03black
#fbfcf8snow
Card
#fcfdf7snow
#101207black
Card foreground
#070802black
#fdfdfcwhite
Popover
#fcfdf7snow
#101207black
Popover foreground
#070802black
#fdfdfcwhite
Primary
#ccde7ckhaki
#ccde7ckhaki
Primary foreground
#1c2108black
#1c2108black
Secondary
#7cccdeskyblue
#7cccdeskyblue
Secondary foreground
#081c21black
#081c21black
Muted
#dde2e3gainsboro
#1c2122black
Muted foreground
#565758dimgray
#a7a9a9darkgray
Accent
#de7cccorchid
#de7cccorchid
Accent foreground
#21081cblack
#21081cblack
Destructive
#c73800firebrick
#ff5714orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ccde7ckhaki
#ccde7ckhaki

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.59:1AAA
Primary button11.30:1AAA
Secondary button9.67:1AAA
Muted text5.55:1AA
Accent7.07:1AAA
Destructive5.25:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.52:1AAA
Primary button11.30:1AAA
Secondary button9.67:1AAA
Muted text6.92:1AA
Accent7.07:1AAA
Destructive6.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 114.89);
  --foreground: oklch(0.15 0.023 116.041);
  --muted: oklch(0.91 0.006 212.666);
  --muted-foreground: oklch(0.456 0.002 212.664);
  --popover: oklch(0.991 0.007 114.958);
  --popover-foreground: oklch(0.131 0.02 115.56);
  --card: oklch(0.991 0.007 114.958);
  --card-foreground: oklch(0.131 0.02 115.56);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.867 0.125 117.602);
  --primary-foreground: oklch(0.235 0.041 118.366);
  --secondary: oklch(0.801 0.082 213.646);
  --secondary-foreground: oklch(0.213 0.027 214.368);
  --accent: oklch(0.721 0.156 334.225);
  --accent-foreground: oklch(0.186 0.053 335.099);
  --destructive: oklch(0.552 0.187 36.548);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.867 0.125 117.602);
  --chart-1: oklch(0.867 0.125 117.602);
  --chart-2: oklch(0.801 0.082 213.646);
  --chart-3: oklch(0.721 0.156 334.225);
  --chart-4: oklch(0.819 0.076 213.415);
  --chart-5: oklch(0.873 0.13 117.716);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.161 0.019 116.425);
  --foreground: oklch(0.989 0.005 114.91);
  --muted: oklch(0.241 0.008 212.739);
  --muted-foreground: oklch(0.733 0.002 212.663);
  --popover: oklch(0.177 0.022 116.952);
  --popover-foreground: oklch(0.994 0.002 114.866);
  --card: oklch(0.177 0.022 116.952);
  --card-foreground: oklch(0.994 0.002 114.866);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.867 0.125 117.602);
  --primary-foreground: oklch(0.235 0.041 118.366);
  --secondary: oklch(0.801 0.082 213.646);
  --secondary-foreground: oklch(0.213 0.027 214.368);
  --accent: oklch(0.721 0.156 334.225);
  --accent-foreground: oklch(0.186 0.053 335.099);
  --destructive: oklch(0.678 0.215 38.006);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.867 0.125 117.602);
  --chart-1: oklch(0.867 0.125 117.602);
  --chart-2: oklch(0.801 0.082 213.646);
  --chart-3: oklch(0.721 0.156 334.225);
  --chart-4: oklch(0.819 0.076 213.415);
  --chart-5: oklch(0.873 0.13 117.716);
}