Pigpen is a shadcn/ui theme built around a violet primary color (#b08eeb) with green accents (#c9eb8e). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the violet primary (#b08eeb) on a neutral background (#040208).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #040208black |
| Foreground | #040109black | #fcfcfdwhite |
| Card | #f9f7fdghostwhite | #040208black |
| Card foreground | #040109black | #fcfcfdwhite |
| Popover | #f9f7fdghostwhite | #040208black |
| Popover foreground | #040109black | #fcfcfdwhite |
| Primary | #b08eebmediumpurple | #b08eebmediumpurple |
| Primary foreground | #1d0b3dmidnightblue | #1d0b3dmidnightblue |
| Secondary | #c9eb8ekhaki | #c9eb8ekhaki |
| Secondary foreground | #2a3d0bdarkgreen | #2a3d0bdarkgreen |
| Muted | #dce4cdgainsboro | #29321bdarkslategray |
| Muted foreground | #666e59dimgray | #9ea691darkgray |
| Accent | #c9eb8ekhaki | #c9eb8ekhaki |
| Accent foreground | #2a3d0bdarkgreen | #2a3d0bdarkgreen |
| Destructive | #d01b06firebrick | #df1c07red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b08eebmediumpurple | #b08eebmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 8.90:1 | AAA |
| Muted text | 4.07:1 | AA Large |
| Accent | 8.90:1 | AAA |
| Destructive | 5.48:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 8.90:1 | AAA |
| Muted text | 5.32:1 | AA |
| Accent | 8.90:1 | AAA |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use Pigpen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.008 302.798);
--foreground: oklch(0.095 0.029 304.098);
--muted: oklch(0.907 0.032 123.471);
--muted-foreground: oklch(0.526 0.035 123.956);
--popover: oklch(0.979 0.008 302.798);
--popover-foreground: oklch(0.095 0.029 304.098);
--card: oklch(0.979 0.008 302.798);
--card-foreground: oklch(0.095 0.029 304.098);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.715 0.136 299.875);
--primary-foreground: oklch(0.213 0.089 294.234);
--secondary: oklch(0.895 0.124 125.249);
--secondary-foreground: oklch(0.331 0.076 127.772);
--accent: oklch(0.895 0.124 125.249);
--accent-foreground: oklch(0.331 0.076 127.772);
--destructive: oklch(0.547 0.213 30.391);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.715 0.136 299.875);
--chart-1: oklch(0.715 0.136 299.875);
--chart-2: oklch(0.895 0.124 125.249);
--chart-3: oklch(0.895 0.124 125.249);
--chart-4: oklch(0.906 0.111 124.928);
--chart-5: oklch(0.712 0.141 299.716);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.02 303.691);
--foreground: oklch(0.991 0.003 302.89);
--muted: oklch(0.301 0.04 125.16);
--muted-foreground: oklch(0.714 0.032 123.627);
--popover: oklch(0.101 0.02 303.691);
--popover-foreground: oklch(0.991 0.003 302.89);
--card: oklch(0.101 0.02 303.691);
--card-foreground: oklch(0.991 0.003 302.89);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.715 0.136 299.875);
--primary-foreground: oklch(0.213 0.089 294.234);
--secondary: oklch(0.895 0.124 125.249);
--secondary-foreground: oklch(0.331 0.076 127.772);
--accent: oklch(0.895 0.124 125.249);
--accent-foreground: oklch(0.331 0.076 127.772);
--destructive: oklch(0.575 0.224 30.359);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.715 0.136 299.875);
--chart-1: oklch(0.715 0.136 299.875);
--chart-2: oklch(0.895 0.124 125.249);
--chart-3: oklch(0.895 0.124 125.249);
--chart-4: oklch(0.906 0.111 124.928);
--chart-5: oklch(0.712 0.141 299.716);
}