Collector for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button7.14:1AAA
Secondary button7.00:1AAA
Muted text6.14:1AA
Accent6.90:1AA
Destructive6.15:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.14:1AAA
Secondary button7.00:1AAA
Muted text7.66:1AAA
Accent6.90:1AA
Destructive4.05:1AA Large

CSS variables

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);
}