Buying for shadcn/ui

Buying is a shadcn/ui theme built around a light violet primary color (#d4c2e0) with light purple accents (#e0c2dd). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light violet primary (#d4c2e0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#000000black
Foreground
#0b0410black
#ffffffwhite
Card
#faf8fcghostwhite
#030303black
Card foreground
#09030cblack
#ffffffwhite
Popover
#faf8fcghostwhite
#030303black
Popover foreground
#09030cblack
#ffffffwhite
Primary
#d4c2e0thistle
#d4c2e0thistle
Primary foreground
#3c264bdarkslategray
#3c264bdarkslategray
Secondary
#c5c2e0thistle
#c5c2e0thistle
Secondary foreground
#29264bdarkslategray
#29264bdarkslategray
Muted
#e6e6ealavender
#151519black
Muted foreground
#4e4d56darkslategray
#a9a9b2darkgray
Accent
#e0c2ddthistle
#e0c2ddthistle
Accent foreground
#4b2647darkslategray
#4b2647darkslategray
Destructive
#692102maroon
#f04b05orangered
Destructive foreground
#fdbca0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d4c2e0thistle
#d4c2e0thistle

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.30:1AAA
Primary button8.01:1AAA
Secondary button8.25:1AAA
Muted text6.68:1AA
Accent7.75:1AAA
Destructive7.08:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.01:1AAA
Secondary button8.25:1AAA
Muted text7.82:1AAA
Accent7.75:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 312.335);
  --foreground: oklch(0.13 0.032 312.454);
  --muted: oklch(0.926 0.006 290.888);
  --muted-foreground: oklch(0.424 0.016 290.287);
  --popover: oklch(0.982 0.006 312.312);
  --popover-foreground: oklch(0.117 0.028 314.013);
  --card: oklch(0.982 0.006 312.312);
  --card-foreground: oklch(0.117 0.028 314.013);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.838 0.046 311.952);
  --primary-foreground: oklch(0.312 0.07 310.576);
  --secondary: oklch(0.826 0.042 290.03);
  --secondary-foreground: oklch(0.291 0.066 286.093);
  --accent: oklch(0.848 0.05 329.224);
  --accent-foreground: oklch(0.33 0.075 330.874);
  --destructive: oklch(0.356 0.11 39.865);
  --destructive-foreground: oklch(0.848 0.085 44.213);
  --ring: oklch(0.838 0.046 311.952);
  --chart-1: oklch(0.838 0.046 311.952);
  --chart-2: oklch(0.826 0.042 290.03);
  --chart-3: oklch(0.848 0.05 329.224);
  --chart-4: oklch(0.855 0.035 290.234);
  --chart-5: oklch(0.836 0.05 311.914);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.197 0.009 290.121);
  --muted-foreground: oklch(0.737 0.014 290.654);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.838 0.046 311.952);
  --primary-foreground: oklch(0.312 0.07 310.576);
  --secondary: oklch(0.826 0.042 290.03);
  --secondary-foreground: oklch(0.291 0.066 286.093);
  --accent: oklch(0.848 0.05 329.224);
  --accent-foreground: oklch(0.33 0.075 330.874);
  --destructive: oklch(0.641 0.21 37.498);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.838 0.046 311.952);
  --chart-1: oklch(0.838 0.046 311.952);
  --chart-2: oklch(0.826 0.042 290.03);
  --chart-3: oklch(0.848 0.05 329.224);
  --chart-4: oklch(0.855 0.035 290.234);
  --chart-5: oklch(0.836 0.05 311.914);
}