Stock-in-trade for shadcn/ui

Stock-in-trade is a shadcn/ui theme built around a muted violet primary color (#bba8cc) with muted light violet accents (#ccc7d1). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#bba8cc) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#fcfbfewhite
#030204black
Foreground
#030104black
#ffffffwhite
Card
#faf7fcghostwhite
#050307black
Card foreground
#000000black
#ffffffwhite
Popover
#faf7fcghostwhite
#050307black
Popover foreground
#000000black
#ffffffwhite
Primary
#bba8ccsilver
#bba8ccsilver
Primary foreground
#21192ablack
#21192ablack
Secondary
#dbdadcgainsboro
#1c1a1eblack
Secondary foreground
#424044darkslategray
#b5afbbsilver
Muted
#edeaf0lavender
#120f15black
Muted foreground
#483e51darkslategray
#b8aec1silver
Accent
#ccc7d1lightgrey
#2e2735darkslategray
Accent foreground
#332e38darkslategray
#c7bed0silver
Destructive
#722509maroon
#f06533tomato
Destructive foreground
#f9c6b3peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bba8ccsilver
#bba8ccsilver

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card19.82:1AAA
Primary button7.75:1AAA
Secondary button7.37:1AAA
Muted text8.49:1AAA
Accent7.96:1AAA
Destructive6.95:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.52:1AAA
Primary button7.75:1AAA
Secondary button8.07:1AAA
Muted text8.92:1AAA
Accent8.05:1AAA
Destructive6.61:1AA

CSS variables

Paste this into your globals.css to use Stock-in-trade in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 309.087);
  --foreground: oklch(0.079 0.022 311.22);
  --muted: oklch(0.942 0.008 309.04);
  --muted-foreground: oklch(0.381 0.033 308.206);
  --popover: oklch(0.981 0.007 309.048);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 309.048);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.76 0.054 308.376);
  --primary-foreground: oklch(0.231 0.035 307.506);
  --secondary: oklch(0.891 0.003 309.089);
  --secondary-foreground: oklch(0.376 0.007 308.924);
  --accent: oklch(0.837 0.015 308.936);
  --accent-foreground: oklch(0.31 0.019 308.472);
  --destructive: oklch(0.378 0.115 38.088);
  --destructive-foreground: oklch(0.867 0.064 40.92);
  --ring: oklch(0.76 0.054 308.376);
  --chart-1: oklch(0.76 0.054 308.376);
  --chart-2: oklch(0.891 0.003 309.089);
  --chart-3: oklch(0.837 0.015 308.936);
  --chart-4: oklch(0.914 0.002 309.098);
  --chart-5: oklch(0.757 0.061 308.285);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.012 310.228);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.175 0.012 308.424);
  --muted-foreground: oklch(0.766 0.028 308.74);
  --popover: oklch(0.106 0.015 310.228);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.106 0.015 310.228);
  --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.76 0.054 308.376);
  --primary-foreground: oklch(0.231 0.035 307.506);
  --secondary: oklch(0.221 0.009 308.687);
  --secondary-foreground: oklch(0.763 0.018 308.879);
  --accent: oklch(0.286 0.028 308.08);
  --accent-foreground: oklch(0.814 0.027 308.78);
  --destructive: oklch(0.674 0.182 39.275);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.76 0.054 308.376);
  --chart-1: oklch(0.76 0.054 308.376);
  --chart-2: oklch(0.221 0.009 308.687);
  --chart-3: oklch(0.286 0.028 308.08);
  --chart-4: oklch(0.253 0.011 308.652);
  --chart-5: oklch(0.757 0.061 308.285);
}