Polliwog is a shadcn/ui theme built around a vivid deep red primary color (#591103) with vivid deep cyan accents (#034b59). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#591103) on a red-tinted background (#0b0605).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0605black |
| Foreground | #040101black | #faf6f5whitesmoke |
| Card | #ffffffwhite | #0b0605black |
| Card foreground | #040101black | #faf6f5whitesmoke |
| Popover | #ffffffwhite | #0b0605black |
| Popover foreground | #040101black | #faf6f5whitesmoke |
| Primary | #591103maroon | #591103maroon |
| Primary foreground | #fca492lightsalmon | #fca492lightsalmon |
| Secondary | #034b59darkslategray | #034b59darkslategray |
| Secondary foreground | #92eafclightskyblue | #92eafclightskyblue |
| Muted | #e2f0f3lavender | #0c1a1dblack |
| Muted foreground | #606566dimgray | #999e9fdarkgray |
| Accent | #034b59darkslategray | #034b59darkslategray |
| Accent foreground | #92eafclightskyblue | #92eafclightskyblue |
| Destructive | #610f05maroon | #f54932tomato |
| Destructive foreground | #faa89elightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #591103maroon | #591103maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 5.07:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 18.81:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 6.56:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Polliwog in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.014 39.073);
--muted: oklch(0.946 0.015 211.039);
--muted-foreground: oklch(0.504 0.006 211.038);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.086 0.014 39.073);
--card: oklch(1 0 180);
--card-foreground: oklch(0.086 0.014 39.073);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.306 0.106 33.616);
--primary-foreground: oklch(0.801 0.108 31.89);
--secondary: oklch(0.38 0.067 216.556);
--secondary-foreground: oklch(0.888 0.088 211.731);
--accent: oklch(0.38 0.067 216.556);
--accent-foreground: oklch(0.888 0.088 211.731);
--destructive: oklch(0.322 0.116 31.396);
--destructive-foreground: oklch(0.81 0.099 27.719);
--ring: oklch(0.306 0.106 33.616);
--chart-1: oklch(0.306 0.106 33.616);
--chart-2: oklch(0.38 0.067 216.556);
--chart-3: oklch(0.38 0.067 216.556);
--chart-4: oklch(0.422 0.074 216.96);
--chart-5: oklch(0.308 0.109 33.779);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.012 35.116);
--foreground: oklch(0.975 0.005 31.052);
--muted: oklch(0.206 0.02 211.667);
--muted-foreground: oklch(0.694 0.006 211.038);
--popover: oklch(0.127 0.012 35.116);
--popover-foreground: oklch(0.975 0.005 31.052);
--card: oklch(0.127 0.012 35.116);
--card-foreground: oklch(0.975 0.005 31.052);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.306 0.106 33.616);
--primary-foreground: oklch(0.801 0.108 31.89);
--secondary: oklch(0.38 0.067 216.556);
--secondary-foreground: oklch(0.888 0.088 211.731);
--accent: oklch(0.38 0.067 216.556);
--accent-foreground: oklch(0.888 0.088 211.731);
--destructive: oklch(0.65 0.212 30.863);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.306 0.106 33.616);
--chart-1: oklch(0.306 0.106 33.616);
--chart-2: oklch(0.38 0.067 216.556);
--chart-3: oklch(0.38 0.067 216.556);
--chart-4: oklch(0.422 0.074 216.96);
--chart-5: oklch(0.308 0.109 33.779);
}