Puny is a shadcn/ui theme built around a blue primary color (#356a9c) with neutral gray accents (#dfe0e1). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the blue primary (#356a9c) on a blue-tinted background (#070a0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #070a0eblack |
| Foreground | #040a11black | #f5f7f9whitesmoke |
| Card | #fbfdfewhite | #070a0eblack |
| Card foreground | #040a11black | #f5f7f9whitesmoke |
| Popover | #fbfdfewhite | #070a0eblack |
| Popover foreground | #040a11black | #f5f7f9whitesmoke |
| Primary | #356a9csteelblue | #356a9csteelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dfe0e1gainsboro | #2e2e2edarkslategray |
| Secondary foreground | #45474adarkslategray | #c7c7c7silver |
| Muted | #e6e8eblavender | #191414black |
| Muted foreground | #5a6168dimgray | #a59797rosybrown |
| Accent | #dfe0e1gainsboro | #2e2e2edarkslategray |
| Accent foreground | #45474adarkslategray | #c7c7c7silver |
| Destructive | #931006darkred | #e11809red |
| Destructive foreground | #fdd1cepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #356a9csteelblue | #356a9csteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 5.66:1 | AA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 5.11:1 | AA |
| Accent | 7.07:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 18.45:1 | AAA |
| Text on card | 18.45:1 | AAA |
| Primary button | 5.66:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.83:1 | AA |
Paste this into your globals.css to use Puny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 246.001);
--foreground: oklch(0.142 0.019 241.73);
--muted: oklch(0.93 0.004 246.02);
--muted-foreground: oklch(0.489 0.014 246.285);
--popover: oklch(0.992 0.003 246.001);
--popover-foreground: oklch(0.142 0.019 241.73);
--card: oklch(0.992 0.003 246.001);
--card-foreground: oklch(0.142 0.019 241.73);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.512 0.097 248.864);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.908 0.002 245.987);
--secondary-foreground: oklch(0.398 0.005 246.098);
--accent: oklch(0.908 0.002 245.987);
--accent-foreground: oklch(0.398 0.005 246.098);
--destructive: oklch(0.423 0.164 29.819);
--destructive-foreground: oklch(0.898 0.05 22.914);
--ring: oklch(0.512 0.097 248.864);
--chart-1: oklch(0.512 0.097 248.864);
--chart-2: oklch(0.908 0.002 245.987);
--chart-3: oklch(0.908 0.002 245.987);
--chart-4: oklch(0.931 0.001 245.981);
--chart-5: oklch(0.513 0.103 249.134);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.01 243.888);
--foreground: oklch(0.976 0.003 246.006);
--muted: oklch(0.199 0.008 17.864);
--muted-foreground: oklch(0.689 0.016 17.549);
--popover: oklch(0.143 0.01 243.888);
--popover-foreground: oklch(0.976 0.003 246.006);
--card: oklch(0.143 0.01 243.888);
--card-foreground: oklch(0.976 0.003 246.006);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.512 0.097 248.864);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.301 0 189.462);
--secondary-foreground: oklch(0.829 0 180);
--accent: oklch(0.301 0 189.462);
--accent-foreground: oklch(0.829 0 180);
--destructive: oklch(0.578 0.228 29.755);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.512 0.097 248.864);
--chart-1: oklch(0.512 0.097 248.864);
--chart-2: oklch(0.301 0 189.462);
--chart-3: oklch(0.301 0 189.462);
--chart-4: oklch(0.331 0 180);
--chart-5: oklch(0.513 0.103 249.134);
}