Puffin is a shadcn/ui theme built around a vivid light green primary color (#e4fee2) with vivid light red accents (#fee2e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#e4fee2) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #051703black | #f9fbf9mintcream |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #041202black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #041202black | #fcfdfcwhite |
| Primary | #e4fee2honeydew | #e4fee2honeydew |
| Primary foreground | #094503darkgreen | #094503darkgreen |
| Secondary | #e2e4felavender | #e2e4felavender |
| Secondary foreground | #0717a6darkblue | #0717a6darkblue |
| Muted | #d9dae8gainsboro | #171826black |
| Muted foreground | #5c5e6adimgray | #9596a3darkgray |
| Accent | #fee2e4mistyrose | #fee2e4mistyrose |
| Accent foreground | #a60717firebrick | #a60717firebrick |
| Destructive | #ad4410saddlebrown | #db5714chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e4fee2honeydew | #e4fee2honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.57:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 10.49:1 | AAA |
| Secondary button | 9.98:1 | AAA |
| Muted text | 4.64:1 | AA |
| Accent | 6.44:1 | AA |
| Destructive | 5.81:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 10.49:1 | AAA |
| Secondary button | 9.98:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 6.44:1 | AA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Puffin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.181 0.048 140.737);
--muted: oklch(0.892 0.019 280.94);
--muted-foreground: oklch(0.485 0.02 280.589);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.163 0.042 140.521);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.163 0.042 140.521);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.97 0.046 142.435);
--primary-foreground: oklch(0.339 0.11 141.574);
--secondary: oklch(0.926 0.034 280.662);
--secondary-foreground: oklch(0.346 0.215 265.25);
--accent: oklch(0.935 0.031 10.837);
--accent-foreground: oklch(0.46 0.183 25.932);
--destructive: oklch(0.522 0.149 42.187);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.97 0.046 142.435);
--chart-1: oklch(0.97 0.046 142.435);
--chart-2: oklch(0.926 0.034 280.662);
--chart-3: oklch(0.935 0.031 10.837);
--chart-4: oklch(0.963 0.017 280.998);
--chart-5: oklch(0.971 0.047 142.429);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.004 142.612);
--muted: oklch(0.216 0.027 278.974);
--muted-foreground: oklch(0.676 0.018 280.836);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.993 0.002 142.619);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.002 142.619);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.97 0.046 142.435);
--primary-foreground: oklch(0.339 0.11 141.574);
--secondary: oklch(0.926 0.034 280.662);
--secondary-foreground: oklch(0.346 0.215 265.25);
--accent: oklch(0.935 0.031 10.837);
--accent-foreground: oklch(0.46 0.183 25.932);
--destructive: oklch(0.622 0.18 41.805);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.97 0.046 142.435);
--chart-1: oklch(0.97 0.046 142.435);
--chart-2: oklch(0.926 0.034 280.662);
--chart-3: oklch(0.935 0.031 10.837);
--chart-4: oklch(0.963 0.017 280.998);
--chart-5: oklch(0.971 0.047 142.429);
}