Swagger Puma is a shadcn/ui theme built around a vivid teal primary color (#00b3b3) with neutral gray accents (#c5c6c4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#00b3b3) on a teal-tinted background (#051010).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #051010black |
| Foreground | #031111black | #f6f8f8whitesmoke |
| Card | #fcfcfcsnow | #061313black |
| Card foreground | #020d0dblack | #f9fbfbghostwhite |
| Popover | #ffffffwhite | #051010black |
| Popover foreground | #031111black | #f6f8f8whitesmoke |
| Primary | #00b3b3lightseagreen | #00b3b3lightseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b300b3darkviolet | #b300b3darkviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1d5e1gainsboro | #2a1e2adarkslategray |
| Muted foreground | #493749darkslategray | #c8b6c8silver |
| Accent | #c5c6c4silver | #b3b300darkgoldenrod |
| Accent foreground | #000000black | #000000black |
| Destructive | #d22000firebrick | #e83402orangered |
| Destructive foreground | #ffdfd7mistyrose | #ffffffwhite |
| Border | #e9ececlavender | #171c1cblack |
| Input | #e9ececlavender | #171c1cblack |
| Ring | #00b3b3lightseagreen | #00b3b3lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.22:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 2.60:1 | Fail |
| Secondary button | 5.91:1 | AA |
| Muted text | 7.70:1 | AAA |
| Accent | 12.26:1 | AAA |
| Destructive | 4.26:1 | AA Large |
| Text on background | 18.16:1 | AAA |
| Text on card | 18.16:1 | AAA |
| Primary button | 2.60:1 | Fail |
| Secondary button | 5.91:1 | AA |
| Muted text | 8.36:1 | AAA |
| Accent | 9.31:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Swagger Puma in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.166 0.022 195.211);
--muted: oklch(0.887 0.021 325.753);
--muted-foreground: oklch(0.363 0.038 326.333);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.166 0.022 195.211);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.147 0.02 195.242);
--border: oklch(0.942 0.004 197.09);
--input: oklch(0.942 0.004 197.09);
--primary: oklch(0.693 0.118 194.769);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.537 0.247 328.363);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.826 0.003 133.231);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.553 0.213 31.475);
--destructive-foreground: oklch(0.928 0.037 35.943);
--ring: oklch(0.693 0.118 194.769);
--chart-1: oklch(0.693 0.118 194.769);
--chart-2: oklch(0.537 0.247 328.363);
--chart-3: oklch(0.741 0.161 109.769);
--chart-4: oklch(0.571 0.262 328.363);
--chart-5: oklch(0.7 0.12 194.764);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.017 195.593);
--foreground: oklch(0.979 0.002 197.118);
--muted: oklch(0.253 0.029 326.379);
--muted-foreground: oklch(0.798 0.032 325.87);
--popover: oklch(0.16 0.017 195.593);
--popover-foreground: oklch(0.979 0.002 197.118);
--card: oklch(0.176 0.019 195.539);
--card-foreground: oklch(0.986 0.002 197.131);
--border: oklch(0.221 0.007 196.663);
--input: oklch(0.221 0.007 196.663);
--primary: oklch(0.693 0.118 194.769);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.537 0.247 328.363);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.741 0.161 109.769);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.607 0.22 33.46);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.693 0.118 194.769);
--chart-1: oklch(0.693 0.118 194.769);
--chart-2: oklch(0.537 0.247 328.363);
--chart-3: oklch(0.741 0.161 109.769);
--chart-4: oklch(0.571 0.262 328.363);
--chart-5: oklch(0.7 0.12 194.764);
}