Best-seller for shadcn/ui

Best-seller is a shadcn/ui theme built around a neutral gray primary color (#cac4c5) with neutral gray accents (#c4c5ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#cac4c5) on a red-tinted background (#0e0608).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0608black
Foreground
#120306black
#fbf9f9snow
Card
#fcfcfcsnow
#12080ablack
Card foreground
#0d0204black
#fdfcfcsnow
Popover
#fcfcfcsnow
#12080ablack
Popover foreground
#0d0204black
#fdfcfcsnow
Primary
#cac4c5silver
#cac4c5silver
Primary foreground
#312b2cdarkslategray
#312b2cdarkslategray
Secondary
#c5cac4silver
#c5cac4silver
Secondary foreground
#2c312bdarkslategray
#2c312bdarkslategray
Muted
#eff1efwhitesmoke
#0f100eblack
Muted foreground
#4a5846darkslategray
#aab9a7darkgray
Accent
#c4c5casilver
#c4c5casilver
Accent foreground
#2b2c31darkslategray
#2b2c31darkslategray
Destructive
#5f1307maroon
#ee3317orangered
Destructive foreground
#f8aca0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cac4c5silver
#cac4c5silver

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card19.99:1AAA
Primary button8.05:1AAA
Secondary button7.98:1AAA
Muted text6.65:1AA
Accent8.06:1AAA
Destructive7.21:1AAA
Dark mode
Text on background19.07:1AAA
Text on card19.28:1AAA
Primary button8.05:1AAA
Secondary button7.98:1AAA
Muted text9.25:1AAA
Accent8.06:1AAA
Destructive4.11:1AA Large

CSS variables

Paste this into your globals.css to use Best-seller in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.033 6.545);
  --muted: oklch(0.956 0.003 139.988);
  --muted-foreground: oklch(0.442 0.033 139.929);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.116 0.028 5.303);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.116 0.028 5.303);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.825 0.008 4.559);
  --primary-foreground: oklch(0.296 0.008 5.041);
  --secondary: oklch(0.834 0.011 139.979);
  --secondary-foreground: oklch(0.305 0.012 139.958);
  --accent: oklch(0.823 0.008 276.042);
  --accent-foreground: oklch(0.295 0.008 275.785);
  --destructive: oklch(0.32 0.11 31.762);
  --destructive-foreground: oklch(0.814 0.092 28.921);
  --ring: oklch(0.825 0.008 4.559);
  --chart-1: oklch(0.825 0.008 4.559);
  --chart-2: oklch(0.834 0.011 139.979);
  --chart-3: oklch(0.823 0.008 276.042);
  --chart-4: oklch(0.857 0.009 139.981);
  --chart-5: oklch(0.822 0.012 4.684);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.015 5.377);
  --foreground: oklch(0.984 0.002 4.363);
  --muted: oklch(0.172 0.005 139.964);
  --muted-foreground: oklch(0.769 0.029 139.958);
  --popover: oklch(0.149 0.018 6.693);
  --popover-foreground: oklch(0.992 0.001 4.337);
  --card: oklch(0.149 0.018 6.693);
  --card-foreground: oklch(0.992 0.001 4.337);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.825 0.008 4.559);
  --primary-foreground: oklch(0.296 0.008 5.041);
  --secondary: oklch(0.834 0.011 139.979);
  --secondary-foreground: oklch(0.305 0.012 139.958);
  --accent: oklch(0.823 0.008 276.042);
  --accent-foreground: oklch(0.295 0.008 275.785);
  --destructive: oklch(0.616 0.224 31.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.825 0.008 4.559);
  --chart-1: oklch(0.825 0.008 4.559);
  --chart-2: oklch(0.834 0.011 139.979);
  --chart-3: oklch(0.823 0.008 276.042);
  --chart-4: oklch(0.857 0.009 139.981);
  --chart-5: oklch(0.822 0.012 4.684);
}