Pannier is a shadcn/ui theme built around a neutral gray primary color (#31322f) with neutral gray accents (#30322f). The light mode uses a neutral background (#fdfefb). Dark mode keeps the neutral gray primary (#31322f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #111504black | #fdfdfcwhite |
| Card | #fdfefbwhite | #000000black |
| Card foreground | #111504black | #fdfdfcwhite |
| Popover | #fdfefbwhite | #000000black |
| Popover foreground | #111504black | #fdfdfcwhite |
| Primary | #31322fdarkslategray | #31322fdarkslategray |
| Primary foreground | #cacbc8lightgrey | #cacbc8lightgrey |
| Secondary | #32312fdarkslategray | #32312fdarkslategray |
| Secondary foreground | #cbcac8lightgrey | #cbcac8lightgrey |
| Muted | #ece6d5antiquewhite | #2a2413black |
| Muted foreground | #665f4ddimgray | #b2ac99darkgray |
| Accent | #30322fdarkslategray | #30322fdarkslategray |
| Accent foreground | #c9cbc8silver | #c9cbc8silver |
| Destructive | #a72d01firebrick | #e43e01orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #31322fdarkslategray | #31322fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.29:1 | AAA |
| Text on card | 18.29:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 5.08:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.79:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Pannier in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 117.143);
--foreground: oklch(0.187 0.033 119.873);
--muted: oklch(0.925 0.024 90.296);
--muted-foreground: oklch(0.487 0.029 90.424);
--popover: oklch(0.995 0.004 117.143);
--popover-foreground: oklch(0.187 0.033 119.873);
--card: oklch(0.995 0.004 117.143);
--card-foreground: oklch(0.187 0.033 119.873);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.315 0.005 117.374);
--primary-foreground: oklch(0.841 0.004 117.175);
--secondary: oklch(0.314 0.004 90.213);
--secondary-foreground: oklch(0.84 0.003 90.152);
--accent: oklch(0.314 0.006 137.234);
--accent-foreground: oklch(0.84 0.005 137.203);
--destructive: oklch(0.485 0.165 36.224);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.315 0.005 117.374);
--chart-1: oklch(0.315 0.005 117.374);
--chart-2: oklch(0.314 0.004 90.213);
--chart-3: oklch(0.314 0.006 137.234);
--chart-4: oklch(0.344 0.004 90.215);
--chart-5: oklch(0.319 0.01 117.657);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 117.1);
--muted: oklch(0.262 0.03 90.201);
--muted-foreground: oklch(0.744 0.027 90.349);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 117.1);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 117.1);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.315 0.005 117.374);
--primary-foreground: oklch(0.841 0.004 117.175);
--secondary: oklch(0.314 0.004 90.213);
--secondary-foreground: oklch(0.84 0.003 90.152);
--accent: oklch(0.314 0.006 137.234);
--accent-foreground: oklch(0.84 0.005 137.203);
--destructive: oklch(0.608 0.21 35.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.315 0.005 117.374);
--chart-1: oklch(0.315 0.005 117.374);
--chart-2: oklch(0.314 0.004 90.213);
--chart-3: oklch(0.314 0.006 137.234);
--chart-4: oklch(0.344 0.004 90.215);
--chart-5: oklch(0.319 0.01 117.657);
}