Buyer for shadcn/ui

Buyer is a shadcn/ui theme built around a muted deep pink primary color (#241419) with neutral gray accents (#d2d0d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep pink primary (#241419) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#120207black
#ffffffwhite
Card
#fcfcfcsnow
#070304black
Card foreground
#0e0205black
#ffffffwhite
Popover
#fcfcfcsnow
#070304black
Popover foreground
#0e0205black
#ffffffwhite
Primary
#241419black
#241419black
Primary foreground
#caa0acdarkgray
#caa0acdarkgray
Secondary
#d2d0d1lightgrey
#1e1517black
Secondary foreground
#3a3637darkslategray
#c1a4acdarkgray
Muted
#ecdadfgainsboro
#251318black
Muted foreground
#64595cdimgray
#a69b9edarkgray
Accent
#d2d0d1lightgrey
#1e1517black
Accent foreground
#3a3637darkslategray
#c1a4acdarkgray
Destructive
#c53511firebrick
#ee623ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#241419black
#241419black

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card19.95:1AAA
Primary button7.67:1AAA
Secondary button7.75:1AAA
Muted text5.01:1AA
Accent7.75:1AAA
Destructive5.39:1AA
Dark mode
Text on background20.73:1AAA
Text on card20.48:1AAA
Primary button7.67:1AAA
Secondary button7.81:1AAA
Muted text6.57:1AA
Accent7.81:1AAA
Destructive6.45:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.038 359.641);
  --muted: oklch(0.905 0.02 358.346);
  --muted-foreground: oklch(0.475 0.016 358.633);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.115 0.033 357.977);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.115 0.033 357.977);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.215 0.027 1.135);
  --primary-foreground: oklch(0.748 0.051 359.609);
  --secondary: oklch(0.859 0.003 357.821);
  --secondary-foreground: oklch(0.338 0.005 358.133);
  --accent: oklch(0.859 0.003 357.821);
  --accent-foreground: oklch(0.338 0.005 358.133);
  --destructive: oklch(0.546 0.186 34.097);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.215 0.027 1.135);
  --chart-1: oklch(0.215 0.027 1.135);
  --chart-2: oklch(0.859 0.003 357.821);
  --chart-3: oklch(0.859 0.003 357.821);
  --chart-4: oklch(0.883 0.003 357.801);
  --chart-5: oklch(0.214 0.03 1.529);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.009 357.586);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.214 0.03 1.529);
  --muted-foreground: oklch(0.7 0.014 358.281);
  --popover: oklch(0.109 0.011 357.586);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.011 357.586);
  --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.215 0.027 1.135);
  --primary-foreground: oklch(0.748 0.051 359.609);
  --secondary: oklch(0.208 0.017 359.913);
  --secondary-foreground: oklch(0.747 0.036 359.05);
  --accent: oklch(0.208 0.017 359.913);
  --accent-foreground: oklch(0.747 0.036 359.05);
  --destructive: oklch(0.668 0.181 35.176);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.215 0.027 1.135);
  --chart-1: oklch(0.215 0.027 1.135);
  --chart-2: oklch(0.208 0.017 359.913);
  --chart-3: oklch(0.208 0.017 359.913);
  --chart-4: oklch(0.239 0.021 0.118);
  --chart-5: oklch(0.214 0.03 1.529);
}