Puny is a shadcn/ui theme built around a red primary color (#713333) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#fdf6f6). Dark mode keeps the red primary (#713333) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f6snow | #0a0505black |
| Foreground | #150404black | #ffffffwhite |
| Card | #fdf6f6snow | #0a0505black |
| Card foreground | #150404black | #ffffffwhite |
| Popover | #fdf6f6snow | #0a0505black |
| Popover foreground | #150404black | #ffffffwhite |
| Primary | #713333saddlebrown | #713333saddlebrown |
| Primary foreground | #f2e3e3mistyrose | #f2e3e3mistyrose |
| Secondary | #d9d9d9gainsboro | #181010black |
| Secondary foreground | #404040darkslategray | #be9d9drosybrown |
| Muted | #f4ececlinen | #130b0bblack |
| Muted foreground | #585050dimgray | #afa7a7darkgray |
| Accent | #d9d9d9gainsboro | #181010black |
| Accent foreground | #404040darkslategray | #be9d9drosybrown |
| Destructive | #8c3608saddlebrown | #f16113chocolate |
| Destructive foreground | #fcdbcabisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #713333saddlebrown | #713333saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 8.23:1 | AAA |
| Accent | 7.56:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Puny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 17.285);
--foreground: oklch(0.142 0.035 22.536);
--muted: oklch(0.948 0.009 17.314);
--muted-foreground: oklch(0.439 0.011 17.585);
--popover: oklch(0.98 0.008 17.285);
--popover-foreground: oklch(0.142 0.035 22.536);
--card: oklch(0.98 0.008 17.285);
--card-foreground: oklch(0.142 0.035 22.536);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.403 0.088 21.787);
--primary-foreground: oklch(0.928 0.017 17.463);
--secondary: oklch(0.885 0 180);
--secondary-foreground: oklch(0.371 0 168.69);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.448 0.127 42.957);
--destructive-foreground: oklch(0.915 0.043 50.091);
--ring: oklch(0.403 0.088 21.787);
--chart-1: oklch(0.403 0.088 21.787);
--chart-2: oklch(0.885 0 180);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.908 0 180);
--chart-5: oklch(0.403 0.095 22.271);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.012 18.916);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.015 18.774);
--muted-foreground: oklch(0.734 0.01 17.378);
--popover: oklch(0.124 0.012 18.916);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.012 18.916);
--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.403 0.088 21.787);
--primary-foreground: oklch(0.928 0.017 17.463);
--secondary: oklch(0.185 0.014 18.476);
--secondary-foreground: oklch(0.726 0.039 18.084);
--accent: oklch(0.185 0.014 18.476);
--accent-foreground: oklch(0.726 0.039 18.084);
--destructive: oklch(0.668 0.194 42.454);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.403 0.088 21.787);
--chart-1: oklch(0.403 0.088 21.787);
--chart-2: oklch(0.185 0.014 18.476);
--chart-3: oklch(0.185 0.014 18.476);
--chart-4: oklch(0.217 0.018 18.672);
--chart-5: oklch(0.403 0.095 22.271);
}