Trading for shadcn/ui

Trading is a shadcn/ui theme built around a muted light pink primary color (#d1b7c2) with muted light blue accents (#b7c2d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#d1b7c2) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fcf8fasnow
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#d1b7c2silver
#d1b7c2silver
Primary foreground
#352229darkslategray
#352229darkslategray
Secondary
#c2d1b7silver
#c2d1b7silver
Secondary foreground
#293522darkslategray
#293522darkslategray
Muted
#e4eeddbeige
#182211black
Muted foreground
#636660dimgray
#9b9f99darkgray
Accent
#b7c2d1lightsteelblue
#b7c2d1lightsteelblue
Accent foreground
#222935darkslategray
#222935darkslategray
Destructive
#8d2e01saddlebrown
#f75002orangered
Destructive foreground
#fed5c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d1b7c2silver
#d1b7c2silver

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.00:1AAA
Secondary button8.06:1AAA
Muted text4.87:1AA
Accent8.10:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.94:1AAA
Text on card20.19:1AAA
Primary button8.00:1AAA
Secondary button8.06:1AAA
Muted text6.13:1AA
Accent8.10:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.937 0.025 132.559);
  --muted-foreground: oklch(0.507 0.01 132.511);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.806 0.033 351.734);
  --primary-foreground: oklch(0.278 0.032 353.669);
  --secondary: oklch(0.843 0.039 132.714);
  --secondary-foreground: oklch(0.312 0.036 133.326);
  --accent: oklch(0.81 0.025 258.366);
  --accent-foreground: oklch(0.281 0.024 258.352);
  --destructive: oklch(0.439 0.138 39.634);
  --destructive-foreground: oklch(0.904 0.053 46.287);
  --ring: oklch(0.806 0.033 351.734);
  --chart-1: oklch(0.806 0.033 351.734);
  --chart-2: oklch(0.843 0.039 132.714);
  --chart-3: oklch(0.81 0.025 258.366);
  --chart-4: oklch(0.863 0.034 132.657);
  --chart-5: oklch(0.804 0.037 351.887);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.004 350.749);
  --muted: oklch(0.236 0.034 133.608);
  --muted-foreground: oklch(0.696 0.009 132.461);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.002 350.685);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 350.685);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.806 0.033 351.734);
  --primary-foreground: oklch(0.278 0.032 353.669);
  --secondary: oklch(0.843 0.039 132.714);
  --secondary-foreground: oklch(0.312 0.036 133.326);
  --accent: oklch(0.81 0.025 258.366);
  --accent-foreground: oklch(0.281 0.024 258.352);
  --destructive: oklch(0.658 0.214 38.132);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.806 0.033 351.734);
  --chart-1: oklch(0.806 0.033 351.734);
  --chart-2: oklch(0.843 0.039 132.714);
  --chart-3: oklch(0.81 0.025 258.366);
  --chart-4: oklch(0.863 0.034 132.657);
  --chart-5: oklch(0.804 0.037 351.887);
}