Stock-in-trade for shadcn/ui

Stock-in-trade is a shadcn/ui theme built around a muted teal primary color (#76a28c) with muted light teal accents (#d0dcd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#76a28c) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#ffffffwhite
#030705black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#030705black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030705black
Popover foreground
#000000black
#ffffffwhite
Primary
#76a28clightslategray
#76a28clightslategray
Primary foreground
#000000black
#000000black
Secondary
#d0dcd6lightgrey
#2b312edarkslategray
Secondary foreground
#35463ddarkslategray
#c3cbc7silver
Muted
#ebefedwhitesmoke
#101412black
Muted foreground
#565857dimgray
#a7a9a8darkgray
Accent
#d0dcd6lightgrey
#2b312edarkslategray
Accent foreground
#35463ddarkslategray
#c3cbc7silver
Destructive
#891101darkred
#ef1d01red
Destructive foreground
#ffc5bdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#76a28clightslategray
#76a28clightslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.32:1AAA
Secondary button7.11:1AAA
Muted text6.18:1AA
Accent7.11:1AAA
Destructive6.52:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.32:1AAA
Secondary button8.02:1AAA
Muted text7.87:1AAA
Accent8.02:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.004 165.02);
  --muted-foreground: oklch(0.457 0.003 164.993);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.674 0.057 162.668);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.884 0.015 164.706);
  --secondary-foreground: oklch(0.376 0.026 163.149);
  --accent: oklch(0.884 0.015 164.706);
  --accent-foreground: oklch(0.376 0.026 163.149);
  --destructive: oklch(0.403 0.155 31.284);
  --destructive-foreground: oklch(0.872 0.068 27.151);
  --ring: oklch(0.674 0.057 162.668);
  --chart-1: oklch(0.674 0.057 162.668);
  --chart-2: oklch(0.884 0.015 164.706);
  --chart-3: oklch(0.884 0.015 164.706);
  --chart-4: oklch(0.906 0.012 164.8);
  --chart-5: oklch(0.68 0.066 162.277);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.012 165.248);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.007 164.164);
  --muted-foreground: oklch(0.734 0.002 165.061);
  --popover: oklch(0.121 0.012 165.248);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.012 165.248);
  --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.674 0.057 162.668);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.306 0.011 164.206);
  --secondary-foreground: oklch(0.834 0.01 164.821);
  --accent: oklch(0.306 0.011 164.206);
  --accent-foreground: oklch(0.834 0.01 164.821);
  --destructive: oklch(0.605 0.238 30.592);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.674 0.057 162.668);
  --chart-1: oklch(0.674 0.057 162.668);
  --chart-2: oklch(0.306 0.011 164.206);
  --chart-3: oklch(0.306 0.011 164.206);
  --chart-4: oklch(0.337 0.012 164.173);
  --chart-5: oklch(0.68 0.066 162.277);
}