Buying is a shadcn/ui theme built around a light violet primary color (#d4c2e0) with light purple accents (#e0c2dd). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light violet primary (#d4c2e0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #000000black |
| Foreground | #0b0410black | #ffffffwhite |
| Card | #faf8fcghostwhite | #030303black |
| Card foreground | #09030cblack | #ffffffwhite |
| Popover | #faf8fcghostwhite | #030303black |
| Popover foreground | #09030cblack | #ffffffwhite |
| Primary | #d4c2e0thistle | #d4c2e0thistle |
| Primary foreground | #3c264bdarkslategray | #3c264bdarkslategray |
| Secondary | #c5c2e0thistle | #c5c2e0thistle |
| Secondary foreground | #29264bdarkslategray | #29264bdarkslategray |
| Muted | #e6e6ealavender | #151519black |
| Muted foreground | #4e4d56darkslategray | #a9a9b2darkgray |
| Accent | #e0c2ddthistle | #e0c2ddthistle |
| Accent foreground | #4b2647darkslategray | #4b2647darkslategray |
| Destructive | #692102maroon | #f04b05orangered |
| Destructive foreground | #fdbca0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d4c2e0thistle | #d4c2e0thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Buying in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 312.335);
--foreground: oklch(0.13 0.032 312.454);
--muted: oklch(0.926 0.006 290.888);
--muted-foreground: oklch(0.424 0.016 290.287);
--popover: oklch(0.982 0.006 312.312);
--popover-foreground: oklch(0.117 0.028 314.013);
--card: oklch(0.982 0.006 312.312);
--card-foreground: oklch(0.117 0.028 314.013);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.838 0.046 311.952);
--primary-foreground: oklch(0.312 0.07 310.576);
--secondary: oklch(0.826 0.042 290.03);
--secondary-foreground: oklch(0.291 0.066 286.093);
--accent: oklch(0.848 0.05 329.224);
--accent-foreground: oklch(0.33 0.075 330.874);
--destructive: oklch(0.356 0.11 39.865);
--destructive-foreground: oklch(0.848 0.085 44.213);
--ring: oklch(0.838 0.046 311.952);
--chart-1: oklch(0.838 0.046 311.952);
--chart-2: oklch(0.826 0.042 290.03);
--chart-3: oklch(0.848 0.05 329.224);
--chart-4: oklch(0.855 0.035 290.234);
--chart-5: oklch(0.836 0.05 311.914);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.009 290.121);
--muted-foreground: oklch(0.737 0.014 290.654);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.838 0.046 311.952);
--primary-foreground: oklch(0.312 0.07 310.576);
--secondary: oklch(0.826 0.042 290.03);
--secondary-foreground: oklch(0.291 0.066 286.093);
--accent: oklch(0.848 0.05 329.224);
--accent-foreground: oklch(0.33 0.075 330.874);
--destructive: oklch(0.641 0.21 37.498);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.838 0.046 311.952);
--chart-1: oklch(0.838 0.046 311.952);
--chart-2: oklch(0.826 0.042 290.03);
--chart-3: oklch(0.848 0.05 329.224);
--chart-4: oklch(0.855 0.035 290.234);
--chart-5: oklch(0.836 0.05 311.914);
}