Product is a shadcn/ui theme built around a neutral gray primary color (#a8b3b2) with neutral gray accents (#b3a8a8). The light mode uses a neutral background (#fbfefe). Dark mode keeps the neutral gray primary (#a8b3b2) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #030707black |
| Foreground | #061312black | #f5f9f9whitesmoke |
| Card | #f7fdfdmintcream | #040b0bblack |
| Card foreground | #050f0fblack | #f9fbfbghostwhite |
| Popover | #f7fdfdmintcream | #040b0bblack |
| Popover foreground | #050f0fblack | #f9fbfbghostwhite |
| Primary | #a8b3b2darkgray | #a8b3b2darkgray |
| Primary foreground | #131616black | #131616black |
| Secondary | #b3a8a8darkgray | #b3a8a8darkgray |
| Secondary foreground | #161313black | #161313black |
| Muted | #ead2d3gainsboro | #2d1517black |
| Muted foreground | #6c5a5cdimgray | #a59394rosybrown |
| Accent | #b3a8a8darkgray | #b3a8a8darkgray |
| Accent foreground | #161313black | #161313black |
| Destructive | #701100maroon | #ff2600orangered |
| Destructive foreground | #ffb1a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a8b3b2darkgray | #a8b3b2darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.66:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 4.49:1 | AA Large |
| Accent | 7.97:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Product in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 192.354);
--foreground: oklch(0.175 0.019 190.239);
--muted: oklch(0.883 0.027 13.08);
--muted-foreground: oklch(0.487 0.023 13.444);
--popover: oklch(0.99 0.007 192.281);
--popover-foreground: oklch(0.159 0.016 190.623);
--card: oklch(0.99 0.007 192.281);
--card-foreground: oklch(0.159 0.016 190.623);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.758 0.013 192.074);
--primary-foreground: oklch(0.196 0.004 191.952);
--secondary: oklch(0.74 0.013 12.801);
--secondary-foreground: oklch(0.19 0.005 12.942);
--accent: oklch(0.74 0.013 12.801);
--accent-foreground: oklch(0.19 0.005 12.942);
--destructive: oklch(0.353 0.131 32.71);
--destructive-foreground: oklch(0.831 0.094 30.291);
--ring: oklch(0.758 0.013 192.074);
--chart-1: oklch(0.758 0.013 192.074);
--chart-2: oklch(0.74 0.013 12.801);
--chart-3: oklch(0.74 0.013 12.801);
--chart-4: oklch(0.766 0.012 12.752);
--chart-5: oklch(0.762 0.018 191.929);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.011 191.555);
--foreground: oklch(0.98 0.004 192.333);
--muted: oklch(0.231 0.04 16.436);
--muted-foreground: oklch(0.678 0.021 13.09);
--popover: oklch(0.142 0.013 191.348);
--popover-foreground: oklch(0.987 0.003 192.365);
--card: oklch(0.142 0.013 191.348);
--card-foreground: oklch(0.987 0.003 192.365);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.758 0.013 192.074);
--primary-foreground: oklch(0.196 0.004 191.952);
--secondary: oklch(0.74 0.013 12.801);
--secondary-foreground: oklch(0.19 0.005 12.942);
--accent: oklch(0.74 0.013 12.801);
--accent-foreground: oklch(0.19 0.005 12.942);
--destructive: oklch(0.639 0.247 31.221);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.758 0.013 192.074);
--chart-1: oklch(0.758 0.013 192.074);
--chart-2: oklch(0.74 0.013 12.801);
--chart-3: oklch(0.74 0.013 12.801);
--chart-4: oklch(0.766 0.012 12.752);
--chart-5: oklch(0.762 0.018 191.929);
}