Pie is a shadcn/ui theme built around a deep green primary color (#65771d) with deep green accents (#38771d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#65771d) on a neutral background (#070802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070802black |
| Foreground | #000000black | #fbfbf8snow |
| Card | #fcfcfcsnow | #0a0c03black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fcfcfcsnow | #0a0c03black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #65771dolivedrab | #65771dolivedrab |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #775c1dsaddlebrown | #775c1dsaddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f4f3f0whitesmoke | #0f0e0bblack |
| Muted foreground | #484337darkslategray | #c8c3b7silver |
| Accent | #38771dforestgreen | #38771dforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ba2a0dfirebrick | #ef3e1aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #65771dolivedrab | #65771dolivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.98:1 | AA |
| Secondary button | 6.29:1 | AA |
| Muted text | 8.88:1 | AAA |
| Accent | 5.48:1 | AA |
| Destructive | 6.13:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 4.98:1 | AA |
| Secondary button | 6.29:1 | AA |
| Muted text | 11.00:1 | AAA |
| Accent | 5.48:1 | AA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Pie in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.965 0.004 87.443);
--muted-foreground: oklch(0.384 0.02 87.57);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--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.537 0.115 120.404);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.49 0.086 84.759);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.508 0.138 138.101);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.516 0.184 32.593);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.537 0.115 120.404);
--chart-1: oklch(0.537 0.115 120.404);
--chart-2: oklch(0.49 0.086 84.759);
--chart-3: oklch(0.508 0.138 138.101);
--chart-4: oklch(0.525 0.093 84.651);
--chart-5: oklch(0.543 0.118 120.592);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.019 116.148);
--foreground: oklch(0.988 0.004 115.657);
--muted: oklch(0.162 0.007 87.564);
--muted-foreground: oklch(0.817 0.017 87.514);
--popover: oklch(0.149 0.022 116.562);
--popover-foreground: oklch(0.994 0.002 115.617);
--card: oklch(0.149 0.022 116.562);
--card-foreground: oklch(0.994 0.002 115.617);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.537 0.115 120.404);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.49 0.086 84.759);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.508 0.138 138.101);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.627 0.218 32.808);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.537 0.115 120.404);
--chart-1: oklch(0.537 0.115 120.404);
--chart-2: oklch(0.49 0.086 84.759);
--chart-3: oklch(0.508 0.138 138.101);
--chart-4: oklch(0.525 0.093 84.651);
--chart-5: oklch(0.543 0.118 120.592);
}