Pamphlet is a shadcn/ui theme built around a muted purple primary color (#cfafd0) with muted purple accents (#cbadcc). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted purple primary (#cfafd0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #000000black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fdf7fdsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefbfewhite | #000000black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #cfafd0thistle | #cfafd0thistle |
| Primary foreground | #301c30darkslategray | #301c30darkslategray |
| Secondary | #d3c4d4thistle | #1c171cblack |
| Secondary foreground | #3a2b3bdarkslategray | #b9acb9silver |
| Muted | #e1d5e1gainsboro | #291e2adarkslategray |
| Muted foreground | #453a45darkslategray | #c5bac5silver |
| Accent | #cbadccsilver | #2f222fdarkslategray |
| Accent foreground | #2b1b2cdarkslategray | #cbb8ccsilver |
| Destructive | #821e0dmaroon | #e83617orangered |
| Destructive foreground | #f9cfc7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cfafd0thistle | #cfafd0thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 7.62:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 8.54:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Pamphlet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 324.651);
--foreground: oklch(0 0 0);
--muted: oklch(0.887 0.021 324.766);
--muted-foreground: oklch(0.365 0.024 325.034);
--popover: oklch(0.991 0.005 324.651);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.01 324.684);
--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.791 0.058 325.072);
--primary-foreground: oklch(0.261 0.045 325.631);
--secondary: oklch(0.838 0.026 324.818);
--secondary-foreground: oklch(0.314 0.034 325.27);
--accent: oklch(0.784 0.054 325.042);
--accent-foreground: oklch(0.252 0.038 325.511);
--destructive: oklch(0.401 0.137 32.3);
--destructive-foreground: oklch(0.889 0.05 29.768);
--ring: oklch(0.791 0.058 325.072);
--chart-1: oklch(0.791 0.058 325.072);
--chart-2: oklch(0.838 0.026 324.818);
--chart-3: oklch(0.784 0.054 325.042);
--chart-4: oklch(0.863 0.022 324.782);
--chart-5: oklch(0.79 0.065 325.123);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.003 324.639);
--muted: oklch(0.253 0.028 325.293);
--muted-foreground: oklch(0.8 0.02 324.777);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.003 324.639);
--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.791 0.058 325.072);
--primary-foreground: oklch(0.261 0.045 325.631);
--secondary: oklch(0.213 0.011 324.947);
--secondary-foreground: oklch(0.759 0.024 324.821);
--accent: oklch(0.274 0.03 325.277);
--accent-foreground: oklch(0.804 0.034 324.885);
--destructive: oklch(0.609 0.217 32.116);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.791 0.058 325.072);
--chart-1: oklch(0.791 0.058 325.072);
--chart-2: oklch(0.213 0.011 324.947);
--chart-3: oklch(0.274 0.03 325.277);
--chart-4: oklch(0.245 0.014 324.975);
--chart-5: oklch(0.79 0.065 325.123);
}