Pesky for shadcn/ui

Pesky is a shadcn/ui theme built around a near-white primary color (#fffafa) with near-white accents (#fffdfa). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fffafa) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040101black
#fdfcfcsnow
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#fffafasnow
#fffafasnow
Primary foreground
#b61411firebrick
#b61411firebrick
Secondary
#fffafcsnow
#fffafcsnow
Secondary foreground
#b61161mediumvioletred
#b61161mediumvioletred
Muted
#e4dde0gainsboro
#221b1eblack
Muted foreground
#5c5157dimgray
#aea3a8darkgray
Accent
#fffdfasnow
#fffdfasnow
Accent foreground
#593208saddlebrown
#593208saddlebrown
Destructive
#5e0808maroon
#ee3a3acrimson
Destructive foreground
#f7a1a1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fffafasnow
#fffafasnow

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button6.56:1AA
Secondary button6.28:1AA
Muted text5.66:1AA
Accent10.93:1AAA
Destructive6.98:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button6.56:1AA
Secondary button6.28:1AA
Muted text6.91:1AA
Accent10.93:1AAA
Destructive3.96: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.08 0.018 23.904);
  --muted: oklch(0.904 0.009 346.289);
  --muted-foreground: oklch(0.449 0.016 346.928);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.08 0.018 23.904);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.989 0.004 18.43);
  --primary-foreground: oklch(0.495 0.193 28.597);
  --secondary: oklch(0.99 0.005 346.158);
  --secondary-foreground: oklch(0.508 0.198 0.083);
  --accent: oklch(0.994 0.004 69.615);
  --accent-foreground: oklch(0.358 0.077 61.393);
  --destructive: oklch(0.309 0.117 27.627);
  --destructive-foreground: oklch(0.794 0.102 19.586);
  --ring: oklch(0.989 0.004 18.43);
  --chart-1: oklch(0.989 0.004 18.43);
  --chart-2: oklch(0.99 0.005 346.158);
  --chart-3: oklch(0.994 0.004 69.615);
  --chart-4: oklch(1.02 0.01 165.745);
  --chart-5: oklch(0.989 0.005 18.433);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.001 18.384);
  --muted: oklch(0.232 0.013 347.468);
  --muted-foreground: oklch(0.726 0.014 346.52);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.001 18.384);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.989 0.004 18.43);
  --primary-foreground: oklch(0.495 0.193 28.597);
  --secondary: oklch(0.99 0.005 346.158);
  --secondary-foreground: oklch(0.508 0.198 0.083);
  --accent: oklch(0.994 0.004 69.615);
  --accent-foreground: oklch(0.358 0.077 61.393);
  --destructive: oklch(0.625 0.216 26.117);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.004 18.43);
  --chart-1: oklch(0.989 0.004 18.43);
  --chart-2: oklch(0.99 0.005 346.158);
  --chart-3: oklch(0.994 0.004 69.615);
  --chart-4: oklch(1.02 0.01 165.745);
  --chart-5: oklch(0.989 0.005 18.433);
}