Collector is a shadcn/ui theme built around a purple primary color (#e882c8) with red accents (#e88295). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#e882c8) on a purple-tinted background (#0c0309).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0309black |
| Foreground | #150410black | #fdfcfdwhite |
| Card | #ffffffwhite | #0c0309black |
| Card foreground | #150410black | #fdfcfdwhite |
| Popover | #ffffffwhite | #0c0309black |
| Popover foreground | #150410black | #fdfcfdwhite |
| Primary | #e882c8orchid | #e882c8orchid |
| Primary foreground | #2f0923black | #2f0923black |
| Secondary | #d582e8violet | #d582e8violet |
| Secondary foreground | #28092fblack | #28092fblack |
| Muted | #e8dbeblavender | #211424black |
| Muted foreground | #554c57darkslategray | #b1a8b3darkgray |
| Accent | #e88295palevioletred | #e88295palevioletred |
| Accent foreground | #2f0910black | #2f0910black |
| Destructive | #be1509firebrick | #f4291aorangered |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e882c8orchid | #e882c8orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Collector in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.148 0.04 340.215);
--muted: oklch(0.906 0.027 320.018);
--muted-foreground: oklch(0.429 0.022 320.037);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.148 0.04 340.215);
--card: oklch(1 0 180);
--card-foreground: oklch(0.148 0.04 340.215);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.739 0.15 340.221);
--primary-foreground: oklch(0.219 0.072 342.805);
--secondary: oklch(0.731 0.166 320.081);
--secondary-foreground: oklch(0.215 0.079 319.738);
--accent: oklch(0.723 0.126 9.003);
--accent-foreground: oklch(0.211 0.063 13.569);
--destructive: oklch(0.51 0.2 29.758);
--destructive-foreground: oklch(0.99 0.005 22.267);
--ring: oklch(0.739 0.15 340.221);
--chart-1: oklch(0.739 0.15 340.221);
--chart-2: oklch(0.731 0.166 320.081);
--chart-3: oklch(0.723 0.126 9.003);
--chart-4: oklch(0.757 0.149 320.096);
--chart-5: oklch(0.739 0.156 340.374);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.026 337.4);
--foreground: oklch(0.992 0.001 336.583);
--muted: oklch(0.216 0.038 320.099);
--muted-foreground: oklch(0.742 0.019 320.015);
--popover: oklch(0.122 0.026 337.4);
--popover-foreground: oklch(0.992 0.001 336.583);
--card: oklch(0.122 0.026 337.4);
--card-foreground: oklch(0.992 0.001 336.583);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.739 0.15 340.221);
--primary-foreground: oklch(0.219 0.072 342.805);
--secondary: oklch(0.731 0.166 320.081);
--secondary-foreground: oklch(0.215 0.079 319.738);
--accent: oklch(0.723 0.126 9.003);
--accent-foreground: oklch(0.211 0.063 13.569);
--destructive: oklch(0.622 0.236 29.646);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.739 0.15 340.221);
--chart-1: oklch(0.739 0.15 340.221);
--chart-2: oklch(0.731 0.166 320.081);
--chart-3: oklch(0.723 0.126 9.003);
--chart-4: oklch(0.757 0.149 320.096);
--chart-5: oklch(0.739 0.156 340.374);
}