Market for shadcn/ui

Market is a shadcn/ui theme built around a muted deep blue primary color (#2f363d) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode switches to a green primary (#6f9e4b) on a neutral background (#ffffff).

Color palette

TokenLightDark
Background
#ffffffwhite
#ffffffwhite
Foreground
#24292edarkslategray
#3d3d3ddarkslategray
Card
#fafafasnow
#fafafasnow
Card foreground
#191c1fblack
#191c1fblack
Popover
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Popover foreground
#0d0f11black
#0d0f11black
Primary
#2f363ddarkslategray
#6f9e4bolivedrab
Primary foreground
#c8cfd5lightgrey
#ffffffwhite
Secondary
#bdbfc1silver
#f65628tomato
Secondary foreground
#252627darkslategray
#ffffffwhite
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d9d9d9gainsboro
#d9d9d9gainsboro
Accent foreground
#404040darkslategray
#404040darkslategray
Destructive
#ba2208firebrick
#cd0000red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Input
#ebebeblinen
#ebebeblinen
Ring
#2f363ddarkslategray
#2f363ddarkslategray

Contrast

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

Light mode
Text on background14.66:1AAA
Text on card16.38:1AAA
Primary button7.82:1AAA
Secondary button8.24:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive6.31:1AA
Dark mode
Text on background10.86:1AAA
Text on card16.38:1AAA
Primary button3.14:1AA Large
Secondary button3.34:1AA Large
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive5.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.277 0.011 248.24);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.169 0.005 248.117);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.225 0.008 248.197);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.327 0.016 248.303);
  --primary-foreground: oklch(0.85 0.011 247.958);
  --secondary: oklch(0.804 0.003 247.866);
  --secondary-foreground: oklch(0.269 0.003 247.927);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.51 0.189 31.784);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.327 0.016 248.303);
  --chart-1: oklch(0.327 0.016 248.303);
  --chart-2: oklch(0.804 0.003 247.866);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.829 0.003 247.859);
  --chart-5: oklch(0.327 0.019 248.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.36 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.169 0.005 248.117);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.225 0.008 248.197);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.646 0.124 133.227);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.664 0.204 35.99);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.533 0.219 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.327 0.016 248.303);
  --chart-1: oklch(0.646 0.124 133.227);
  --chart-2: oklch(0.664 0.204 35.99);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.68 0.192 36.472);
  --chart-5: oklch(0.654 0.133 133.421);
}