Placebo is a shadcn/ui theme built around a green primary color (#92d3a6) with purple accents (#d392bf). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the green primary (#92d3a6) on a green-tinted background (#050a07).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf9mintcream | #050a07black |
| Foreground | #04150ablack | #ffffffwhite |
| Card | #f7fdf9mintcream | #050a07black |
| Card foreground | #04150ablack | #ffffffwhite |
| Popover | #f7fdf9mintcream | #050a07black |
| Popover foreground | #04150ablack | #ffffffwhite |
| Primary | #92d3a6darkseagreen | #92d3a6darkseagreen |
| Primary foreground | #0f2415black | #0f2415black |
| Secondary | #d392bfplum | #d392bfplum |
| Secondary foreground | #240f1eblack | #240f1eblack |
| Muted | #e4d8e0gainsboro | #271b23black |
| Muted foreground | #54404ddarkslategray | #bfabb9silver |
| Accent | #d392bfplum | #d392bfplum |
| Accent foreground | #240f1eblack | #240f1eblack |
| Destructive | #b72906firebrick | #f84c20orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #92d3a6darkseagreen | #92d3a6darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.19:1 | AAA |
| Text on card | 18.19:1 | AAA |
| Primary button | 9.44:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 6.84:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 9.44:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Placebo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 156.416);
--foreground: oklch(0.177 0.034 153.376);
--muted: oklch(0.894 0.017 336.927);
--muted-foreground: oklch(0.398 0.034 338.127);
--popover: oklch(0.988 0.007 156.416);
--popover-foreground: oklch(0.177 0.034 153.376);
--card: oklch(0.988 0.007 156.416);
--card-foreground: oklch(0.177 0.034 153.376);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.812 0.092 154.055);
--primary-foreground: oklch(0.239 0.04 152.519);
--secondary: oklch(0.737 0.098 338.988);
--secondary-foreground: oklch(0.206 0.044 340.433);
--accent: oklch(0.737 0.098 338.988);
--accent-foreground: oklch(0.206 0.044 340.433);
--destructive: oklch(0.51 0.182 33.432);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.812 0.092 154.055);
--chart-1: oklch(0.812 0.092 154.055);
--chart-2: oklch(0.737 0.098 338.988);
--chart-3: oklch(0.737 0.098 338.988);
--chart-4: oklch(0.763 0.088 338.669);
--chart-5: oklch(0.815 0.098 153.881);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.012 156.328);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.024 338.37);
--muted-foreground: oklch(0.763 0.029 337.272);
--popover: oklch(0.137 0.012 156.328);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.012 156.328);
--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.812 0.092 154.055);
--primary-foreground: oklch(0.239 0.04 152.519);
--secondary: oklch(0.737 0.098 338.988);
--secondary-foreground: oklch(0.206 0.044 340.433);
--accent: oklch(0.737 0.098 338.988);
--accent-foreground: oklch(0.206 0.044 340.433);
--destructive: oklch(0.656 0.216 34.445);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.812 0.092 154.055);
--chart-1: oklch(0.812 0.092 154.055);
--chart-2: oklch(0.737 0.098 338.988);
--chart-3: oklch(0.737 0.098 338.988);
--chart-4: oklch(0.763 0.088 338.669);
--chart-5: oklch(0.815 0.098 153.881);
}