Patty is a shadcn/ui theme built around a deep green primary color (#126d3b) with deep orange accents (#6d3b12). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#126d3b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #126d3bforestgreen | #126d3bforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3b126dindigo | #3b126dindigo |
| Secondary foreground | #d6bef4thistle | #d6bef4thistle |
| Muted | #e0d8e9gainsboro | #1e1627black |
| Muted foreground | #494153darkslategray | #b4acbesilver |
| Accent | #6d3b12saddlebrown | #6d3b12saddlebrown |
| Accent foreground | #f4d6bepeachpuff | #f4d6bepeachpuff |
| Destructive | #620c09maroon | #db1b14crimson |
| Destructive foreground | #f7a9a6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #126d3bforestgreen | #126d3bforestgreen |
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 | 6.40:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 6.64:1 | AA |
| Destructive | 7.09:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 6.64:1 | AA |
| Destructive | 5.01:1 | AA |
Paste this into your globals.css to use Patty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.893 0.025 306.077);
--muted-foreground: oklch(0.391 0.031 305.405);
--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.472 0.113 153.153);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.31 0.143 297.577);
--secondary-foreground: oklch(0.839 0.079 305.221);
--accent: oklch(0.408 0.088 55.526);
--accent-foreground: oklch(0.895 0.047 61.462);
--destructive: oklch(0.321 0.119 28.393);
--destructive-foreground: oklch(0.809 0.092 21.489);
--ring: oklch(0.472 0.113 153.153);
--chart-1: oklch(0.472 0.113 153.153);
--chart-2: oklch(0.31 0.143 297.577);
--chart-3: oklch(0.408 0.088 55.526);
--chart-4: oklch(0.334 0.156 297.314);
--chart-5: oklch(0.477 0.117 152.805);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.218 0.034 304.354);
--muted-foreground: oklch(0.757 0.027 305.981);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.472 0.113 153.153);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.31 0.143 297.577);
--secondary-foreground: oklch(0.839 0.079 305.221);
--accent: oklch(0.408 0.088 55.526);
--accent-foreground: oklch(0.895 0.047 61.462);
--destructive: oklch(0.569 0.222 28.993);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.472 0.113 153.153);
--chart-1: oklch(0.472 0.113 153.153);
--chart-2: oklch(0.31 0.143 297.577);
--chart-3: oklch(0.408 0.088 55.526);
--chart-4: oklch(0.334 0.156 297.314);
--chart-5: oklch(0.477 0.117 152.805);
}