Pannier is a shadcn/ui theme built around a deep purple primary color (#291427) with deep pink accents (#29141c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#291427) on a purple-tinted background (#0b040a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b040ablack |
| Foreground | #000000black | #faf4faghostwhite |
| Card | #ffffffwhite | #0b040ablack |
| Card foreground | #000000black | #faf4faghostwhite |
| Popover | #ffffffwhite | #0b040ablack |
| Popover foreground | #000000black | #faf4faghostwhite |
| Primary | #291427black | #291427black |
| Primary foreground | #d19fcbplum | #d19fcbplum |
| Secondary | #211429black | #211429black |
| Secondary foreground | #bd9fd1plum | #bd9fd1plum |
| Muted | #e3d5ecgainsboro | #21132ablack |
| Muted foreground | #4d4c4ddarkslategray | #b3b2b3darkgray |
| Accent | #29141cblack | #29141cblack |
| Accent foreground | #d19fb2silver | #d19fb2silver |
| Destructive | #a4110efirebrick | #ee3d3atomato |
| Destructive foreground | #fde8e8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #291427black | #291427black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 18.69:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 8.32:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Pannier in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.891 0.034 312.726);
--muted-foreground: oklch(0.417 0.003 312.94);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.23 0.047 331.333);
--primary-foreground: oklch(0.762 0.083 330.342);
--secondary: oklch(0.219 0.044 311.524);
--secondary-foreground: oklch(0.746 0.078 312.272);
--accent: oklch(0.224 0.037 356.068);
--accent-foreground: oklch(0.753 0.064 353.903);
--destructive: oklch(0.458 0.179 28.586);
--destructive-foreground: oklch(0.947 0.023 18.742);
--ring: oklch(0.23 0.047 331.333);
--chart-1: oklch(0.23 0.047 331.333);
--chart-2: oklch(0.219 0.044 311.524);
--chart-3: oklch(0.224 0.037 356.068);
--chart-4: oklch(0.248 0.054 311.406);
--chart-5: oklch(0.23 0.051 331.5);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.022 330.221);
--foreground: oklch(0.974 0.009 329.242);
--muted: oklch(0.218 0.047 311.423);
--muted-foreground: oklch(0.764 0.002 312.964);
--popover: oklch(0.126 0.022 330.221);
--popover-foreground: oklch(0.974 0.009 329.242);
--card: oklch(0.126 0.022 330.221);
--card-foreground: oklch(0.974 0.009 329.242);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.23 0.047 331.333);
--primary-foreground: oklch(0.762 0.083 330.342);
--secondary: oklch(0.219 0.044 311.524);
--secondary-foreground: oklch(0.746 0.078 312.272);
--accent: oklch(0.224 0.037 356.068);
--accent-foreground: oklch(0.753 0.064 353.903);
--destructive: oklch(0.627 0.214 26.653);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.23 0.047 331.333);
--chart-1: oklch(0.23 0.047 331.333);
--chart-2: oklch(0.219 0.044 311.524);
--chart-3: oklch(0.224 0.037 356.068);
--chart-4: oklch(0.248 0.054 311.406);
--chart-5: oklch(0.23 0.051 331.5);
}