Puny is a shadcn/ui theme built around a vivid green primary color (#5ece1c) with neutral gray accents (#d0d4ce). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the vivid green primary (#5ece1c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #000000black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f7faf4whitesmoke | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7faf4whitesmoke | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #5ece1climegreen | #5ece1climegreen |
| Primary foreground | #0c1b04black | #0c1b04black |
| Secondary | #d0d4celightgrey | #141712black |
| Secondary foreground | #373b35darkslategray | #aab9a2darkgray |
| Muted | #e3eeddgainsboro | #172211black |
| Muted foreground | #3f423ddarkslategray | #bfc2bdsilver |
| Accent | #d0d4celightgrey | #141712black |
| Accent foreground | #373b35darkslategray | #aab9a2darkgray |
| Destructive | #7a2901saddlebrown | #fe661borangered |
| Destructive foreground | #ffc9aepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5ece1climegreen | #5ece1climegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 7.60:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 8.75:1 | AAA |
| Muted text | 9.16:1 | AAA |
| Accent | 8.75:1 | AAA |
| Destructive | 7.13:1 | AAA |
Paste this into your globals.css to use Puny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 133.642);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.025 133.775);
--muted-foreground: oklch(0.375 0.01 133.766);
--popover: oklch(0.981 0.009 133.66);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.009 133.66);
--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.757 0.224 137.677);
--primary-foreground: oklch(0.201 0.048 134.737);
--secondary: oklch(0.865 0.008 133.666);
--secondary-foreground: oklch(0.348 0.013 133.841);
--accent: oklch(0.865 0.008 133.666);
--accent-foreground: oklch(0.348 0.013 133.841);
--destructive: oklch(0.398 0.121 41.247);
--destructive-foreground: oklch(0.876 0.072 47.885);
--ring: oklch(0.757 0.224 137.677);
--chart-1: oklch(0.757 0.224 137.677);
--chart-2: oklch(0.865 0.008 133.666);
--chart-3: oklch(0.865 0.008 133.666);
--chart-4: oklch(0.888 0.007 133.655);
--chart-5: oklch(0.765 0.229 137.866);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 133.618);
--muted: oklch(0.236 0.034 134.675);
--muted-foreground: oklch(0.809 0.008 133.667);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--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.757 0.224 137.677);
--primary-foreground: oklch(0.201 0.048 134.737);
--secondary: oklch(0.2 0.012 134.012);
--secondary-foreground: oklch(0.768 0.036 133.904);
--accent: oklch(0.2 0.012 134.012);
--accent-foreground: oklch(0.768 0.036 133.904);
--destructive: oklch(0.695 0.2 41.931);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.757 0.224 137.677);
--chart-1: oklch(0.757 0.224 137.677);
--chart-2: oklch(0.2 0.012 134.012);
--chart-3: oklch(0.2 0.012 134.012);
--chart-4: oklch(0.235 0.016 134.063);
--chart-5: oklch(0.765 0.229 137.866);
}