Stamen is a shadcn/ui theme built around a vivid green primary color (#5bf5a3) with vivid pink accents (#f55bad). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid green primary (#5bf5a3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #000000black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f6fdfamintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefcwhite | #000000black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #5bf5a3mediumaquamarine | #5bf5a3mediumaquamarine |
| Primary foreground | #021d0eblack | #021d0eblack |
| Secondary | #f55badhotpink | #f55badhotpink |
| Secondary foreground | #1d0210black | #1d0210black |
| Muted | #ebe6e8linen | #191417black |
| Muted foreground | #5d5157dimgray | #aea2a9darkgray |
| Accent | #f55badhotpink | #f55badhotpink |
| Accent foreground | #1d0210black | #1d0210black |
| Destructive | #892906saddlebrown | #e14309orangered |
| Destructive foreground | #fdd3c4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5bf5a3mediumaquamarine | #5bf5a3mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 12.74:1 | AAA |
| Secondary button | 6.55:1 | AA |
| Muted text | 6.09:1 | AA |
| Accent | 6.55:1 | AA |
| Destructive | 6.42:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 12.74:1 | AAA |
| Secondary button | 6.55:1 | AA |
| Muted text | 7.37:1 | AAA |
| Accent | 6.55:1 | AA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Stamen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 163.335);
--foreground: oklch(0 0 0);
--muted: oklch(0.928 0.007 343.62);
--muted-foreground: oklch(0.448 0.019 344.472);
--popover: oklch(0.994 0.004 163.335);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.009 163.223);
--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.869 0.175 156.281);
--primary-foreground: oklch(0.204 0.045 157.231);
--secondary: oklch(0.697 0.205 350.703);
--secondary-foreground: oklch(0.157 0.058 349.576);
--accent: oklch(0.697 0.205 350.703);
--accent-foreground: oklch(0.157 0.058 349.576);
--destructive: oklch(0.425 0.137 37.227);
--destructive-foreground: oklch(0.899 0.051 40.98);
--ring: oklch(0.869 0.175 156.281);
--chart-1: oklch(0.869 0.175 156.281);
--chart-2: oklch(0.697 0.205 350.703);
--chart-3: oklch(0.697 0.205 350.703);
--chart-4: oklch(0.717 0.189 349.768);
--chart-5: oklch(0.875 0.179 156.053);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 163.417);
--muted: oklch(0.2 0.01 344.609);
--muted-foreground: oklch(0.725 0.017 344.013);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 163.417);
--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.869 0.175 156.281);
--primary-foreground: oklch(0.204 0.045 157.231);
--secondary: oklch(0.697 0.205 350.703);
--secondary-foreground: oklch(0.157 0.058 349.576);
--accent: oklch(0.697 0.205 350.703);
--accent-foreground: oklch(0.157 0.058 349.576);
--destructive: oklch(0.608 0.203 36.322);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.869 0.175 156.281);
--chart-1: oklch(0.869 0.175 156.281);
--chart-2: oklch(0.697 0.205 350.703);
--chart-3: oklch(0.697 0.205 350.703);
--chart-4: oklch(0.717 0.189 349.768);
--chart-5: oklch(0.875 0.179 156.053);
}