Pun is a shadcn/ui theme built around a vivid teal primary color (#13fbb2) with vivid cyan accents (#13d1fb). The light mode uses a neutral background (#f6fdfb). Dark mode keeps the vivid teal primary (#13fbb2) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfbmintcream | #010403black |
| Foreground | #020d0ablack | #ffffffwhite |
| Card | #f2fdf9mintcream | #030706black |
| Card foreground | #010906black | #ffffffwhite |
| Popover | #f6fdfbmintcream | #010403black |
| Popover foreground | #020d0ablack | #ffffffwhite |
| Primary | #13fbb2mediumspringgreen | #13fbb2mediumspringgreen |
| Primary foreground | #01412ddarkgreen | #01412ddarkgreen |
| Secondary | #13fb3elimegreen | #13fb3elimegreen |
| Secondary foreground | #01410ddarkgreen | #01410ddarkgreen |
| Muted | #eceeecwhitesmoke | #111311black |
| Muted foreground | #404441darkslategray | #bbbfbbsilver |
| Accent | #13d1fbdeepskyblue | #13d1fbdeepskyblue |
| Accent foreground | #013641darkslategray | #013641darkslategray |
| Destructive | #9a1f04darkred | #f9431aorangered |
| Destructive foreground | #fedad2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #13fbb2mediumspringgreen | #13fbb2mediumspringgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 8.64:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.64:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 10.02:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Pun in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 175.38);
--foreground: oklch(0.146 0.021 174.863);
--muted: oklch(0.948 0.004 151.35);
--muted-foreground: oklch(0.383 0.008 151.121);
--popover: oklch(0.989 0.008 175.38);
--popover-foreground: oklch(0.146 0.021 174.863);
--card: oklch(0.984 0.012 175.259);
--card-foreground: oklch(0.126 0.018 175.872);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.876 0.188 162.924);
--primary-foreground: oklch(0.334 0.07 164.706);
--secondary: oklch(0.86 0.275 144.116);
--secondary-foreground: oklch(0.328 0.102 145.107);
--accent: oklch(0.796 0.143 219.948);
--accent-foreground: oklch(0.306 0.054 217.941);
--destructive: oklch(0.448 0.162 33.031);
--destructive-foreground: oklch(0.917 0.041 32.741);
--ring: oklch(0.876 0.188 162.924);
--chart-1: oklch(0.876 0.188 162.924);
--chart-2: oklch(0.86 0.275 144.116);
--chart-3: oklch(0.796 0.143 219.948);
--chart-4: oklch(0.862 0.267 144.631);
--chart-5: oklch(0.885 0.191 162.589);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 175.785);
--foreground: oklch(1 0 180);
--muted: oklch(0.184 0.006 150.954);
--muted-foreground: oklch(0.8 0.006 151.294);
--popover: oklch(0.097 0.009 175.785);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.012 175.785);
--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.876 0.188 162.924);
--primary-foreground: oklch(0.334 0.07 164.706);
--secondary: oklch(0.86 0.275 144.116);
--secondary-foreground: oklch(0.328 0.102 145.107);
--accent: oklch(0.796 0.143 219.948);
--accent-foreground: oklch(0.306 0.054 217.941);
--destructive: oklch(0.649 0.224 33.44);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.876 0.188 162.924);
--chart-1: oklch(0.876 0.188 162.924);
--chart-2: oklch(0.86 0.275 144.116);
--chart-3: oklch(0.796 0.143 219.948);
--chart-4: oklch(0.862 0.267 144.631);
--chart-5: oklch(0.885 0.191 162.589);
}