Bestseller for shadcn/ui

Bestseller is a shadcn/ui theme built around a muted violet primary color (#b8a6c5) with muted light violet accents (#d2ccd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#b8a6c5) on a violet-tinted background (#0b0410).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0410black
Foreground
#0b0410black
#fdfcfdwhite
Card
#fcfcfcsnow
#0e0514black
Card foreground
#09030cblack
#ffffffwhite
Popover
#fcfcfcsnow
#0e0514black
Popover foreground
#09030cblack
#ffffffwhite
Primary
#b8a6c5silver
#b8a6c5silver
Primary foreground
#1d1622black
#1d1622black
Secondary
#e3e3e3gainsboro
#1a181bblack
Secondary foreground
#4a494bdarkslategray
#b4adb8darkgray
Muted
#f0eef1whitesmoke
#100e11black
Muted foreground
#4c4153darkslategray
#b7acbesilver
Accent
#d2ccd6lightgrey
#2c2631darkslategray
Accent foreground
#39323edarkslategray
#c6bdccsilver
Destructive
#db0e0ared
#f52724crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b8a6c5silver
#b8a6c5silver

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card19.95:1AAA
Primary button7.78:1AAA
Secondary button6.96:1AA
Muted text8.32:1AAA
Accent7.85:1AAA
Destructive5.14:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.96:1AAA
Primary button7.78:1AAA
Secondary button8.08:1AAA
Muted text8.85:1AAA
Accent8.09:1AAA
Destructive4.04:1AA Large

CSS variables

Paste this into your globals.css to use Bestseller in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.031 312.428);
  --muted: oklch(0.952 0.005 312.319);
  --muted-foreground: oklch(0.393 0.032 311.746);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.118 0.027 313.951);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.118 0.027 313.951);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.75 0.048 311.88);
  --primary-foreground: oklch(0.215 0.025 311.492);
  --secondary: oklch(0.915 0.001 312.351);
  --secondary-foreground: oklch(0.408 0.003 312.309);
  --accent: oklch(0.853 0.015 312.225);
  --accent-foreground: oklch(0.33 0.024 311.828);
  --destructive: oklch(0.564 0.226 29.048);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.75 0.048 311.88);
  --chart-1: oklch(0.75 0.048 311.88);
  --chart-2: oklch(0.915 0.001 312.351);
  --chart-3: oklch(0.853 0.015 312.225);
  --chart-4: oklch(0.939 0.001 312.353);
  --chart-5: oklch(0.746 0.055 311.809);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.032 312.445);
  --foreground: oklch(0.992 0.001 312.353);
  --muted: oklch(0.166 0.008 312.016);
  --muted-foreground: oklch(0.759 0.028 312.088);
  --popover: oklch(0.142 0.036 311.335);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.036 311.335);
  --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.75 0.048 311.88);
  --primary-foreground: oklch(0.215 0.025 311.492);
  --secondary: oklch(0.212 0.008 312.09);
  --secondary-foreground: oklch(0.757 0.017 312.194);
  --accent: oklch(0.28 0.022 311.763);
  --accent-foreground: oklch(0.81 0.023 312.144);
  --destructive: oklch(0.622 0.236 28.167);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.75 0.048 311.88);
  --chart-1: oklch(0.75 0.048 311.88);
  --chart-2: oklch(0.212 0.008 312.09);
  --chart-3: oklch(0.28 0.022 311.763);
  --chart-4: oklch(0.244 0.01 312.066);
  --chart-5: oklch(0.746 0.055 311.809);
}