Wholesale for shadcn/ui

Wholesale is a shadcn/ui theme built around a muted blue primary color (#384a61) with muted indigo accents (#3a3861). The light mode uses a neutral background (#f7fafd). Dark mode keeps the muted blue primary (#384a61) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#020203black
Foreground
#02070dblack
#f6f7f9whitesmoke
Card
#f3f7fcaliceblue
#030507black
Card foreground
#010509black
#f9fafbghostwhite
Popover
#f7fafdghostwhite
#020203black
Popover foreground
#02070dblack
#f6f7f9whitesmoke
Primary
#384a61darkslategray
#384a61darkslategray
Primary foreground
#dfe5eclavender
#dfe5eclavender
Secondary
#385f61darkslategray
#385f61darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4e7e7gainsboro
#181b1bblack
Muted foreground
#444546darkslategray
#b9bbbbsilver
Accent
#3a3861darkslategray
#3a3861darkslategray
Accent foreground
#dfdfecgainsboro
#dfdfecgainsboro
Destructive
#893206saddlebrown
#f6661echocolate
Destructive foreground
#fdd7c4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#384a61darkslategray
#384a61darkslategray

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card18.98:1AAA
Primary button7.10:1AAA
Secondary button7.04:1AAA
Muted text7.70:1AAA
Accent8.30:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.53:1AAA
Primary button7.10:1AAA
Secondary button7.04:1AAA
Muted text9.00:1AAA
Accent8.30:1AAA
Destructive6.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 253.256);
  --foreground: oklch(0.125 0.02 243.365);
  --muted: oklch(0.925 0.003 200.855);
  --muted-foreground: oklch(0.391 0.002 200.835);
  --popover: oklch(0.983 0.005 253.256);
  --popover-foreground: oklch(0.125 0.02 243.365);
  --card: oklch(0.974 0.008 253.275);
  --card-foreground: oklch(0.109 0.017 242.25);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.405 0.045 253.809);
  --primary-foreground: oklch(0.919 0.012 253.308);
  --secondary: oklch(0.458 0.045 200.021);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.362 0.07 284.592);
  --accent-foreground: oklch(0.907 0.019 288.323);
  --destructive: oklch(0.437 0.129 41.416);
  --destructive-foreground: oklch(0.906 0.049 48.155);
  --ring: oklch(0.405 0.045 253.809);
  --chart-1: oklch(0.405 0.045 253.809);
  --chart-2: oklch(0.458 0.045 200.021);
  --chart-3: oklch(0.362 0.07 284.592);
  --chart-4: oklch(0.489 0.048 200.017);
  --chart-5: oklch(0.404 0.05 253.877);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.007 247.946);
  --foreground: oklch(0.976 0.003 253.24);
  --muted: oklch(0.218 0.004 200.687);
  --muted-foreground: oklch(0.79 0.001 200.867);
  --popover: oklch(0.089 0.007 247.946);
  --popover-foreground: oklch(0.976 0.003 253.24);
  --card: oklch(0.112 0.008 247.946);
  --card-foreground: oklch(0.984 0.002 253.233);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.405 0.045 253.809);
  --primary-foreground: oklch(0.919 0.012 253.308);
  --secondary: oklch(0.458 0.045 200.021);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.362 0.07 284.592);
  --accent-foreground: oklch(0.907 0.019 288.323);
  --destructive: oklch(0.682 0.192 42.395);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.405 0.045 253.809);
  --chart-1: oklch(0.405 0.045 253.809);
  --chart-2: oklch(0.458 0.045 200.021);
  --chart-3: oklch(0.362 0.07 284.592);
  --chart-4: oklch(0.489 0.048 200.017);
  --chart-5: oklch(0.404 0.05 253.877);
}