Placebo is a shadcn/ui theme built around a light green primary color (#f9fbf4) with light indigo accents (#f5f4fb). The light mode uses a neutral background (#fdfefb). Dark mode keeps the light green primary (#f9fbf4) on a green-tinted background (#0d0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0d0f05black |
| Foreground | #111405black | #ffffffwhite |
| Card | #fbfcf8snow | #101307black |
| Card foreground | #0e1004black | #ffffffwhite |
| Popover | #fdfefbwhite | #0d0f05black |
| Popover foreground | #111405black | #ffffffwhite |
| Primary | #f9fbf4whitesmoke | #f9fbf4whitesmoke |
| Primary foreground | #374017darkolivegreen | #374017darkolivegreen |
| Secondary | #f5f4fbwhitesmoke | #f5f4fbwhitesmoke |
| Secondary foreground | #45328bdarkslateblue | #45328bdarkslateblue |
| Muted | #efeef2whitesmoke | #0e0d11black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #f5f4fbwhitesmoke | #f5f4fbwhitesmoke |
| Accent foreground | #45328bdarkslateblue | #45328bdarkslateblue |
| Destructive | #8a0000darkred | #f50000red |
| Destructive foreground | #ffbdbdlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9fbf4whitesmoke | #f9fbf4whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.37:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 10.55:1 | AAA |
| Secondary button | 9.21:1 | AAA |
| Muted text | 5.18:1 | AA |
| Accent | 9.21:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 10.55:1 | AAA |
| Secondary button | 9.21:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 9.21:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Placebo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 116.383);
--foreground: oklch(0.184 0.029 118.906);
--muted: oklch(0.95 0.005 296.228);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.995 0.003 116.383);
--popover-foreground: oklch(0.184 0.029 118.906);
--card: oklch(0.989 0.006 116.435);
--card-foreground: oklch(0.166 0.025 118.245);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.985 0.01 116.507);
--primary-foreground: oklch(0.352 0.063 119.951);
--secondary: oklch(0.97 0.01 296.149);
--secondary-foreground: oklch(0.392 0.141 288.095);
--accent: oklch(0.97 0.01 296.149);
--accent-foreground: oklch(0.392 0.141 288.095);
--destructive: oklch(0.397 0.163 29.234);
--destructive-foreground: oklch(0.858 0.077 18.77);
--ring: oklch(0.985 0.01 116.507);
--chart-1: oklch(0.985 0.01 116.507);
--chart-2: oklch(0.97 0.01 296.149);
--chart-3: oklch(0.97 0.01 296.149);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.985 0.01 116.519);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.162 0.021 117.953);
--foreground: oklch(1 0 180);
--muted: oklch(0.163 0.008 295.388);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.162 0.021 117.953);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.179 0.024 118.57);
--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.985 0.01 116.507);
--primary-foreground: oklch(0.352 0.063 119.951);
--secondary: oklch(0.97 0.01 296.149);
--secondary-foreground: oklch(0.392 0.141 288.095);
--accent: oklch(0.97 0.01 296.149);
--accent-foreground: oklch(0.392 0.141 288.095);
--destructive: oklch(0.609 0.25 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.985 0.01 116.507);
--chart-1: oklch(0.985 0.01 116.507);
--chart-2: oklch(0.97 0.01 296.149);
--chart-3: oklch(0.97 0.01 296.149);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.985 0.01 116.519);
}