Shampoo is a shadcn/ui theme built around a near-black primary color (#070808) with muted light teal accents (#d2dad7). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the near-black primary (#070808) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #000000black |
| Foreground | #05150fblack | #f6f9f8whitesmoke |
| Card | #f5faf8mintcream | #030303black |
| Card foreground | #04110cblack | #f9fbfamintcream |
| Popover | #f8fcfamintcream | #000000black |
| Popover foreground | #05150fblack | #f6f9f8whitesmoke |
| Primary | #070808black | #070808black |
| Primary foreground | #98a9a3darkgray | #98a9a3darkgray |
| Secondary | #d2dad7lightgrey | #252726darkslategray |
| Secondary foreground | #37433fdarkslategray | #bec1c0silver |
| Muted | #eceeedwhitesmoke | #111312black |
| Muted foreground | #51675edimgray | #98aea6darkgray |
| Accent | #d2dad7lightgrey | #252726darkslategray |
| Accent foreground | #37433fdarkslategray | #bec1c0silver |
| Destructive | #b72910firebrick | #e13214orangered |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #070808black | #070808black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.07:1 | AAA |
| Text on card | 18.23:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 7.25:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 7.94:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 4.48:1 | AA Large |
Paste this into your globals.css to use Shampoo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 171.476);
--foreground: oklch(0.178 0.027 167.347);
--muted: oklch(0.948 0.003 171.515);
--muted-foreground: oklch(0.492 0.03 169.725);
--popover: oklch(0.987 0.004 171.476);
--popover-foreground: oklch(0.178 0.027 167.347);
--card: oklch(0.98 0.006 171.417);
--card-foreground: oklch(0.161 0.023 168.929);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.134 0.003 171.64);
--primary-foreground: oklch(0.72 0.021 170.717);
--secondary: oklch(0.882 0.01 171.269);
--secondary-foreground: oklch(0.372 0.018 170.131);
--accent: oklch(0.882 0.01 171.269);
--accent-foreground: oklch(0.372 0.018 170.131);
--destructive: oklch(0.51 0.182 32.127);
--destructive-foreground: oklch(0.991 0.004 29.481);
--ring: oklch(0.134 0.003 171.64);
--chart-1: oklch(0.134 0.003 171.64);
--chart-2: oklch(0.882 0.01 171.269);
--chart-3: oklch(0.882 0.01 171.269);
--chart-4: oklch(0.904 0.008 171.338);
--chart-5: oklch(0.135 0.004 171.656);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.004 171.47);
--muted: oklch(0.184 0.004 170.987);
--muted-foreground: oklch(0.732 0.027 170.475);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.004 171.47);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.003 171.511);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.134 0.003 171.64);
--primary-foreground: oklch(0.72 0.021 170.717);
--secondary: oklch(0.271 0.002 171.328);
--secondary-foreground: oklch(0.807 0.003 171.479);
--accent: oklch(0.271 0.002 171.328);
--accent-foreground: oklch(0.807 0.003 171.479);
--destructive: oklch(0.594 0.214 32.047);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.134 0.003 171.64);
--chart-1: oklch(0.134 0.003 171.64);
--chart-2: oklch(0.271 0.002 171.328);
--chart-3: oklch(0.271 0.002 171.328);
--chart-4: oklch(0.302 0.003 171.315);
--chart-5: oklch(0.135 0.004 171.656);
}