Pesky is a shadcn/ui theme built around a neutral gray primary color (#c9c9ca) with neutral gray accents (#c9cac9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#c9c9ca) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #03060cblack | #f9fafbghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #020408black | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #020408black | #fcfcfdwhite |
| Primary | #c9c9casilver | #c9c9casilver |
| Primary foreground | #303031darkslategray | #303031darkslategray |
| Secondary | #cac9c9silver | #cac9c9silver |
| Secondary foreground | #313030darkslategray | #313030darkslategray |
| Muted | #f1dfe5mistyrose | #200e14black |
| Muted foreground | #443b3edarkslategray | #c4bbbesilver |
| Accent | #c9cac9silver | #c9cac9silver |
| Accent foreground | #303130darkslategray | #303130darkslategray |
| Destructive | #bb2811firebrick | #ee5b44tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9c9casilver | #c9c9casilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 8.47:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 9.87:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.20:1 | AA |
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.122 0.017 258.262);
--muted: oklch(0.92 0.02 356.248);
--muted-foreground: oklch(0.364 0.013 356.643);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.106 0.014 257.944);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.014 257.944);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.837 0.001 266.001);
--primary-foreground: oklch(0.31 0.001 265.989);
--secondary: oklch(0.837 0.001 355.66);
--secondary-foreground: oklch(0.31 0.001 355.753);
--accent: oklch(0.838 0.002 135.436);
--accent-foreground: oklch(0.312 0.002 135.454);
--destructive: oklch(0.516 0.186 31.565);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.837 0.001 266.001);
--chart-1: oklch(0.837 0.001 266.001);
--chart-2: oklch(0.837 0.001 355.66);
--chart-3: oklch(0.838 0.002 135.436);
--chart-4: oklch(0.86 0.001 355.652);
--chart-5: oklch(0.835 0.004 265.983);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.002 265.998);
--muted: oklch(0.193 0.031 0.042);
--muted-foreground: oklch(0.8 0.011 356.002);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.992 0.001 266.002);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 266.002);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.837 0.001 266.001);
--primary-foreground: oklch(0.31 0.001 265.989);
--secondary: oklch(0.837 0.001 355.66);
--secondary-foreground: oklch(0.31 0.001 355.753);
--accent: oklch(0.838 0.002 135.436);
--accent-foreground: oklch(0.312 0.002 135.454);
--destructive: oklch(0.659 0.186 31.225);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.837 0.001 266.001);
--chart-1: oklch(0.837 0.001 266.001);
--chart-2: oklch(0.837 0.001 355.66);
--chart-3: oklch(0.838 0.002 135.436);
--chart-4: oklch(0.86 0.001 355.652);
--chart-5: oklch(0.835 0.004 265.983);
}