Placebo is a shadcn/ui theme built around a deep cyan primary color (#0d454e) with muted light cyan accents (#c1cfd2). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep cyan primary (#0d454e) on a neutral background (#030708).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #030708black |
| Foreground | #010404black | #ffffffwhite |
| Card | #f7fcfdghostwhite | #040a0bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7fcfdghostwhite | #040a0bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0d454edarkslategray | #0d454edarkslategray |
| Primary foreground | #9fe3efpaleturquoise | #9fe3efpaleturquoise |
| Secondary | #dbe0e1gainsboro | #233134darkslategray |
| Secondary foreground | #3f494adarkslategray | #b9cccflightsteelblue |
| Muted | #d9e6e8gainsboro | #172426black |
| Muted foreground | #585e5fdimgray | #a0a6a7darkgray |
| Accent | #c1cfd2lightgrey | #2a474cdarkslategray |
| Accent foreground | #293638darkslategray | #c7dce0lightgrey |
| Destructive | #933b0bsaddlebrown | #f17f41coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d454edarkslategray | #0d454edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 5.15:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 7.33:1 | AAA |
| Text on background | 20.26:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 7.05:1 | AAA |
| Destructive | 7.82:1 | AAA |
Paste this into your globals.css to use Placebo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 209.461);
--foreground: oklch(0.097 0.011 205.915);
--muted: oklch(0.915 0.014 209.436);
--muted-foreground: oklch(0.478 0.008 209.434);
--popover: oklch(0.987 0.005 209.454);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.005 209.454);
--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.36 0.057 212.372);
--primary-foreground: oklch(0.874 0.07 209.676);
--secondary: oklch(0.903 0.005 209.454);
--secondary-foreground: oklch(0.396 0.012 209.432);
--accent: oklch(0.846 0.016 209.432);
--accent-foreground: oklch(0.321 0.018 209.499);
--destructive: oklch(0.467 0.131 43.291);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.36 0.057 212.372);
--chart-1: oklch(0.36 0.057 212.372);
--chart-2: oklch(0.903 0.005 209.454);
--chart-3: oklch(0.846 0.016 209.432);
--chart-4: oklch(0.925 0.004 209.457);
--chart-5: oklch(0.363 0.058 212.621);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.011 206.481);
--foreground: oklch(1 0 180);
--muted: oklch(0.249 0.018 209.622);
--muted-foreground: oklch(0.72 0.007 209.444);
--popover: oklch(0.138 0.013 206.959);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.013 206.959);
--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.36 0.057 212.372);
--primary-foreground: oklch(0.874 0.07 209.676);
--secondary: oklch(0.302 0.019 209.542);
--secondary-foreground: oklch(0.832 0.021 209.429);
--accent: oklch(0.376 0.036 209.875);
--accent-foreground: oklch(0.881 0.023 209.429);
--destructive: oklch(0.714 0.159 46.75);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.36 0.057 212.372);
--chart-1: oklch(0.36 0.057 212.372);
--chart-2: oklch(0.302 0.019 209.542);
--chart-3: oklch(0.376 0.036 209.875);
--chart-4: oklch(0.334 0.022 209.556);
--chart-5: oklch(0.363 0.058 212.621);
}