Pattypan is a shadcn/ui theme built around a green primary color (#28d258) with muted light green accents (#c3d0c7). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#28d258) on a green-tinted background (#030c06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #030c06black |
| Foreground | #051509black | #f9fbfamintcream |
| Card | #fcfdfcwhite | #030c06black |
| Card foreground | #051509black | #f9fbfamintcream |
| Popover | #fcfdfcwhite | #030c06black |
| Popover foreground | #051509black | #f9fbfamintcream |
| Primary | #28d258limegreen | #28d258limegreen |
| Primary foreground | #072710black | #072710black |
| Secondary | #dce0ddgainsboro | #171c18black |
| Secondary foreground | #414943darkslategray | #aabbafdarkgray |
| Muted | #dde3dfgainsboro | #1c221dblack |
| Muted foreground | #4f6455dimgray | #9bb0a1darkgray |
| Accent | #c3d0c7silver | #243328darkslategray |
| Accent foreground | #2b362edarkslategray | #bacfc0silver |
| Destructive | #9d2b01saddlebrown | #e43e01orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #28d258limegreen | #28d258limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.45:1 | AAA |
| Text on card | 18.45:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 4.92:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 7.55:1 | AAA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Pattypan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 155.143);
--foreground: oklch(0.175 0.033 152.336);
--muted: oklch(0.911 0.009 155.013);
--muted-foreground: oklch(0.481 0.036 153.746);
--popover: oklch(0.993 0.003 155.143);
--popover-foreground: oklch(0.175 0.033 152.336);
--card: oklch(0.993 0.003 155.143);
--card-foreground: oklch(0.175 0.033 152.336);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.757 0.211 147.378);
--primary-foreground: oklch(0.241 0.056 149.609);
--secondary: oklch(0.902 0.006 155.074);
--secondary-foreground: oklch(0.396 0.015 154.498);
--accent: oklch(0.845 0.019 154.777);
--accent-foreground: oklch(0.32 0.021 153.895);
--destructive: oklch(0.464 0.157 36.397);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.757 0.211 147.378);
--chart-1: oklch(0.757 0.211 147.378);
--chart-2: oklch(0.902 0.006 155.074);
--chart-3: oklch(0.845 0.019 154.777);
--chart-4: oklch(0.925 0.004 155.104);
--chart-5: oklch(0.766 0.217 147.108);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.023 154.427);
--foreground: oklch(0.985 0.002 155.159);
--muted: oklch(0.243 0.012 154.237);
--muted-foreground: oklch(0.738 0.032 154.363);
--popover: oklch(0.142 0.023 154.427);
--popover-foreground: oklch(0.985 0.002 155.159);
--card: oklch(0.142 0.023 154.427);
--card-foreground: oklch(0.985 0.002 155.159);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.757 0.211 147.378);
--primary-foreground: oklch(0.241 0.056 149.609);
--secondary: oklch(0.22 0.011 154.203);
--secondary-foreground: oklch(0.775 0.025 154.584);
--accent: oklch(0.304 0.029 153.295);
--accent-foreground: oklch(0.834 0.031 154.494);
--destructive: oklch(0.608 0.21 35.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.757 0.211 147.378);
--chart-1: oklch(0.757 0.211 147.378);
--chart-2: oklch(0.22 0.011 154.203);
--chart-3: oklch(0.304 0.029 153.295);
--chart-4: oklch(0.254 0.014 154.115);
--chart-5: oklch(0.766 0.217 147.108);
}