Puny is a shadcn/ui theme built around a vivid teal primary color (#85f9c1) with vivid orange accents (#f9c185). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the vivid teal primary (#85f9c1) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #020303black |
| Foreground | #05100ablack | #ffffffwhite |
| Card | #fbfdfcwhite | #020303black |
| Card foreground | #05100ablack | #ffffffwhite |
| Popover | #fbfdfcwhite | #020303black |
| Popover foreground | #05100ablack | #ffffffwhite |
| Primary | #85f9c1aquamarine | #85f9c1aquamarine |
| Primary foreground | #034927darkgreen | #034927darkgreen |
| Secondary | #c185f9violet | #c185f9violet |
| Secondary foreground | #270349midnightblue | #270349midnightblue |
| Muted | #f0edf3whitesmoke | #0f0c12black |
| Muted foreground | #4f4757darkslategray | #b0a8b8darkgray |
| Accent | #f9c185burlywood | #f9c185burlywood |
| Accent foreground | #492703maroon | #492703maroon |
| Destructive | #c03c0cfirebrick | #f36f3ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #85f9c1aquamarine | #85f9c1aquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 7.61:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 5.39:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 8.43:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 7.15:1 | AAA |
Paste this into your globals.css to use Puny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 165.952);
--foreground: oklch(0.158 0.02 164.026);
--muted: oklch(0.949 0.009 309.028);
--muted-foreground: oklch(0.413 0.028 308.416);
--popover: oklch(0.994 0.002 165.952);
--popover-foreground: oklch(0.158 0.02 164.026);
--card: oklch(0.994 0.002 165.952);
--card-foreground: oklch(0.158 0.02 164.026);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.9 0.133 161.04);
--primary-foreground: oklch(0.357 0.086 155.023);
--secondary: oklch(0.723 0.172 306.426);
--secondary-foreground: oklch(0.23 0.115 300.503);
--accent: oklch(0.849 0.1 67.675);
--accent-foreground: oklch(0.312 0.069 61.541);
--destructive: oklch(0.544 0.176 37.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.9 0.133 161.04);
--chart-1: oklch(0.9 0.133 161.04);
--chart-2: oklch(0.723 0.172 306.426);
--chart-3: oklch(0.849 0.1 67.675);
--chart-4: oklch(0.755 0.151 306.911);
--chart-5: oklch(0.903 0.137 160.878);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.007 166.12);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.014 308.244);
--muted-foreground: oklch(0.743 0.024 308.785);
--popover: oklch(0.095 0.007 166.12);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.095 0.007 166.12);
--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.9 0.133 161.04);
--primary-foreground: oklch(0.357 0.086 155.023);
--secondary: oklch(0.723 0.172 306.426);
--secondary-foreground: oklch(0.23 0.115 300.503);
--accent: oklch(0.849 0.1 67.675);
--accent-foreground: oklch(0.312 0.069 61.541);
--destructive: oklch(0.693 0.174 39.732);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.9 0.133 161.04);
--chart-1: oklch(0.9 0.133 161.04);
--chart-2: oklch(0.723 0.172 306.426);
--chart-3: oklch(0.849 0.1 67.675);
--chart-4: oklch(0.755 0.151 306.911);
--chart-5: oklch(0.903 0.137 160.878);
}