Ptarmigan is a shadcn/ui theme built around a neutral gray primary color (#68656c) with muted light violet accents (#eae7ee). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the neutral gray primary (#68656c) on a violet-tinted background (#09060e).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #09060eblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #f6f4fbghostwhite | #0b0812black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f6f4fbghostwhite | #0b0812black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #68656cdimgray | #68656cdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eae7eelavender | #141316black |
| Secondary foreground | #4e455fdarkslategray | #aca8b3darkgray |
| Muted | #ddd4edgainsboro | #1b122bblack |
| Muted foreground | #3f3c44darkslategray | #bebbc3silver |
| Accent | #eae7eelavender | #141316black |
| Accent foreground | #4e455fdarkslategray | #aca8b3darkgray |
| Destructive | #d71309red | #f5160ared |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #68656cdimgray | #68656cdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 5.71:1 | AA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 5.24:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 5.71:1 | AA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 9.47:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Ptarmigan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 302.113);
--foreground: oklch(0 0 0);
--muted: oklch(0.885 0.034 301.602);
--muted-foreground: oklch(0.361 0.013 301.629);
--popover: oklch(0.971 0.009 302.061);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.971 0.009 302.061);
--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.512 0.01 301.904);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.933 0.009 302.061);
--secondary-foreground: oklch(0.408 0.044 300.48);
--accent: oklch(0.933 0.009 302.061);
--accent-foreground: oklch(0.408 0.044 300.48);
--destructive: oklch(0.558 0.222 29.495);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.512 0.01 301.904);
--chart-1: oklch(0.512 0.01 301.904);
--chart-2: oklch(0.933 0.009 302.061);
--chart-3: oklch(0.933 0.009 302.061);
--chart-4: oklch(0.958 0.006 302.121);
--chart-5: oklch(0.506 0.02 301.583);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.019 301.628);
--foreground: oklch(1 0 180);
--muted: oklch(0.209 0.048 298.281);
--muted-foreground: oklch(0.798 0.011 301.996);
--popover: oklch(0.144 0.022 300.2);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.022 300.2);
--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.512 0.01 301.904);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.189 0.006 301.723);
--secondary-foreground: oklch(0.737 0.017 301.856);
--accent: oklch(0.189 0.006 301.723);
--accent-foreground: oklch(0.737 0.017 301.856);
--destructive: oklch(0.614 0.245 29.501);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.512 0.01 301.904);
--chart-1: oklch(0.512 0.01 301.904);
--chart-2: oklch(0.189 0.006 301.723);
--chart-3: oklch(0.189 0.006 301.723);
--chart-4: oklch(0.221 0.008 301.66);
--chart-5: oklch(0.506 0.02 301.583);
}