Trader for shadcn/ui

Trader is a shadcn/ui theme built around a muted deep red primary color (#1f1919) with muted deep indigo accents (#19191f). The light mode uses a neutral background (#fdf7f6). Dark mode keeps the muted deep red primary (#1f1919) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7f6snow
#000000black
Foreground
#150604black
#fdfcfcsnow
Card
#fdf3f2lavenderblush
#030303black
Card foreground
#110503black
#ffffffwhite
Popover
#fdf7f6snow
#000000black
Popover foreground
#150604black
#fdfcfcsnow
Primary
#1f1919black
#1f1919black
Primary foreground
#beaeacdarkgray
#beaeacdarkgray
Secondary
#191f19black
#191f19black
Secondary foreground
#acbeaedarkgray
#acbeaedarkgray
Muted
#cfe8d1gainsboro
#17301ablack
Muted foreground
#606661dimgray
#999f99darkgray
Accent
#19191fblack
#19191fblack
Accent foreground
#aeacbedarkgray
#aeacbedarkgray
Destructive
#670b04maroon
#f7483btomato
Destructive foreground
#fba8a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f1919black
#1f1919black

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.41:1AAA
Primary button8.09:1AAA
Secondary button8.54:1AAA
Muted text4.50:1AA
Accent7.87:1AAA
Destructive6.91:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button8.09:1AAA
Secondary button8.54:1AAA
Muted text5.26:1AA
Accent7.87:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 25.048);
  --foreground: oklch(0.147 0.03 30.599);
  --muted: oklch(0.906 0.04 148.087);
  --muted-foreground: oklch(0.505 0.011 148.345);
  --popover: oklch(0.981 0.007 25.048);
  --popover-foreground: oklch(0.147 0.03 30.599);
  --card: oklch(0.972 0.01 25.08);
  --card-foreground: oklch(0.135 0.026 31.168);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.222 0.01 25.408);
  --primary-foreground: oklch(0.764 0.019 25.206);
  --secondary: oklch(0.232 0.015 147.837);
  --secondary-foreground: oklch(0.783 0.03 148.163);
  --accent: oklch(0.216 0.013 289.837);
  --accent-foreground: oklch(0.752 0.025 290.373);
  --destructive: oklch(0.33 0.125 30.001);
  --destructive-foreground: oklch(0.811 0.099 23.983);
  --ring: oklch(0.222 0.01 25.408);
  --chart-1: oklch(0.222 0.01 25.408);
  --chart-2: oklch(0.232 0.015 147.837);
  --chart-3: oklch(0.216 0.013 289.837);
  --chart-4: oklch(0.266 0.019 147.779);
  --chart-5: oklch(0.221 0.012 25.54);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 25.002);
  --muted: oklch(0.283 0.051 146.279);
  --muted-foreground: oklch(0.695 0.01 148.427);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 25.002);
  --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.222 0.01 25.408);
  --primary-foreground: oklch(0.764 0.019 25.206);
  --secondary: oklch(0.232 0.015 147.837);
  --secondary-foreground: oklch(0.783 0.03 148.163);
  --accent: oklch(0.216 0.013 289.837);
  --accent-foreground: oklch(0.752 0.025 290.373);
  --destructive: oklch(0.652 0.214 28.539);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.222 0.01 25.408);
  --chart-1: oklch(0.222 0.01 25.408);
  --chart-2: oklch(0.232 0.015 147.837);
  --chart-3: oklch(0.216 0.013 289.837);
  --chart-4: oklch(0.266 0.019 147.779);
  --chart-5: oklch(0.221 0.012 25.54);
}