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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 6.28:1 | AA |
| Muted text | 5.66:1 | AA |
| Accent | 10.93:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 6.28:1 | AA |
| Muted text | 6.91:1 | AA |
| Accent | 10.93:1 | AAA |
| Destructive | 3.96:1 | AA Large |
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);
}