Buyer is a shadcn/ui theme built around a muted deep pink primary color (#241419) with neutral gray accents (#d2d0d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep pink primary (#241419) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #120207black | #ffffffwhite |
| Card | #fcfcfcsnow | #070304black |
| Card foreground | #0e0205black | #ffffffwhite |
| Popover | #fcfcfcsnow | #070304black |
| Popover foreground | #0e0205black | #ffffffwhite |
| Primary | #241419black | #241419black |
| Primary foreground | #caa0acdarkgray | #caa0acdarkgray |
| Secondary | #d2d0d1lightgrey | #1e1517black |
| Secondary foreground | #3a3637darkslategray | #c1a4acdarkgray |
| Muted | #ecdadfgainsboro | #251318black |
| Muted foreground | #64595cdimgray | #a69b9edarkgray |
| Accent | #d2d0d1lightgrey | #1e1517black |
| Accent foreground | #3a3637darkslategray | #c1a4acdarkgray |
| Destructive | #c53511firebrick | #ee623ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #241419black | #241419black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 5.01:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 5.39:1 | AA |
| Text on background | 20.73:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Buyer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.038 359.641);
--muted: oklch(0.905 0.02 358.346);
--muted-foreground: oklch(0.475 0.016 358.633);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.115 0.033 357.977);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.115 0.033 357.977);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.215 0.027 1.135);
--primary-foreground: oklch(0.748 0.051 359.609);
--secondary: oklch(0.859 0.003 357.821);
--secondary-foreground: oklch(0.338 0.005 358.133);
--accent: oklch(0.859 0.003 357.821);
--accent-foreground: oklch(0.338 0.005 358.133);
--destructive: oklch(0.546 0.186 34.097);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.215 0.027 1.135);
--chart-1: oklch(0.215 0.027 1.135);
--chart-2: oklch(0.859 0.003 357.821);
--chart-3: oklch(0.859 0.003 357.821);
--chart-4: oklch(0.883 0.003 357.801);
--chart-5: oklch(0.214 0.03 1.529);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.009 357.586);
--foreground: oklch(1 0 180);
--muted: oklch(0.214 0.03 1.529);
--muted-foreground: oklch(0.7 0.014 358.281);
--popover: oklch(0.109 0.011 357.586);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.011 357.586);
--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.215 0.027 1.135);
--primary-foreground: oklch(0.748 0.051 359.609);
--secondary: oklch(0.208 0.017 359.913);
--secondary-foreground: oklch(0.747 0.036 359.05);
--accent: oklch(0.208 0.017 359.913);
--accent-foreground: oklch(0.747 0.036 359.05);
--destructive: oklch(0.668 0.181 35.176);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.215 0.027 1.135);
--chart-1: oklch(0.215 0.027 1.135);
--chart-2: oklch(0.208 0.017 359.913);
--chart-3: oklch(0.208 0.017 359.913);
--chart-4: oklch(0.239 0.021 0.118);
--chart-5: oklch(0.214 0.03 1.529);
}