Purchase is a shadcn/ui theme built around a vivid deep pink primary color (#830226) with muted light pink accents (#ebe5e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#830226) on a pink-tinted background (#0c0306).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0306black |
| Foreground | #040102black | #fdfbfcsnow |
| Card | #ffffffwhite | #0c0306black |
| Card foreground | #040102black | #fdfbfcsnow |
| Popover | #ffffffwhite | #0c0306black |
| Popover foreground | #040102black | #fdfbfcsnow |
| Primary | #830226maroon | #830226maroon |
| Primary foreground | #feb9ccpink | #feb9ccpink |
| Secondary | #ebe5e7linen | #171717black |
| Secondary foreground | #5a444adarkslategray | #b0b0b0darkgray |
| Muted | #eddee2gainsboro | #211212black |
| Muted foreground | #464344darkslategray | #bcb9b9silver |
| Accent | #ebe5e7linen | #171717black |
| Accent foreground | #5a444adarkslategray | #b0b0b0darkgray |
| Destructive | #b04911sienna | #e96a25chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #830226maroon | #830226maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.78:1 | AAA |
| Text on card | 20.78:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 7.50:1 | AAA |
| Accent | 7.15:1 | AAA |
| Destructive | 5.50:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 9.30:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Purchase in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.018 357.424);
--muted: oklch(0.913 0.018 358.282);
--muted-foreground: oklch(0.388 0.004 358.004);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.018 357.424);
--card: oklch(1 0 180);
--card-foreground: oklch(0.082 0.018 357.424);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.387 0.154 16.107);
--primary-foreground: oklch(0.854 0.084 0.399);
--secondary: oklch(0.927 0.007 357.942);
--secondary-foreground: oklch(0.412 0.032 359.845);
--accent: oklch(0.927 0.007 357.942);
--accent-foreground: oklch(0.412 0.032 359.845);
--destructive: oklch(0.535 0.148 43.567);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.387 0.154 16.107);
--chart-1: oklch(0.387 0.154 16.107);
--chart-2: oklch(0.927 0.007 357.942);
--chart-3: oklch(0.927 0.007 357.942);
--chart-4: oklch(0.951 0.005 357.861);
--chart-5: oklch(0.391 0.156 16.655);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.023 357.757);
--foreground: oklch(0.991 0.002 357.777);
--muted: oklch(0.202 0.027 19.641);
--muted-foreground: oklch(0.787 0.003 17.223);
--popover: oklch(0.12 0.023 357.757);
--popover-foreground: oklch(0.991 0.002 357.777);
--card: oklch(0.12 0.023 357.757);
--card-foreground: oklch(0.991 0.002 357.777);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.387 0.154 16.107);
--primary-foreground: oklch(0.854 0.084 0.399);
--secondary: oklch(0.204 0 180);
--secondary-foreground: oklch(0.757 0 180);
--accent: oklch(0.204 0 180);
--accent-foreground: oklch(0.757 0 180);
--destructive: oklch(0.67 0.176 44.643);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.387 0.154 16.107);
--chart-1: oklch(0.387 0.154 16.107);
--chart-2: oklch(0.204 0 180);
--chart-3: oklch(0.204 0 180);
--chart-4: oklch(0.238 0 161.565);
--chart-5: oklch(0.391 0.156 16.655);
}