Shop for shadcn/ui

Shop is a shadcn/ui theme built around a muted blue primary color (#618a9e) with muted orange accents (#9e7561). The light mode uses a neutral background (#f8fafc). Dark mode keeps the muted blue primary (#618a9e) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#030607black
Foreground
#041016black
#fcfdfdwhite
Card
#f8fafcghostwhite
#030607black
Card foreground
#041016black
#fcfdfdwhite
Popover
#f8fafcghostwhite
#030607black
Popover foreground
#041016black
#fcfdfdwhite
Primary
#618a9ecadetblue
#618a9ecadetblue
Primary foreground
#000000black
#000000black
Secondary
#9e7561gray
#9e7561gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3dfdegainsboro
#211e1cblack
Muted foreground
#6d5d55dimgray
#aa9a92rosybrown
Accent
#9e7561gray
#9e7561gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#692907saddlebrown
#f06419chocolate
Destructive foreground
#f9c5a9navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#618a9ecadetblue
#618a9ecadetblue

Contrast

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

Light mode
Text on background18.45:1AAA
Text on card18.45:1AAA
Primary button5.61:1AA
Secondary button4.04:1AA Large
Muted text4.75:1AA
Accent4.04:1AA Large
Destructive7.03:1AAA
Dark mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button5.61:1AA
Secondary button4.04:1AA Large
Muted text6.12:1AA
Accent4.04:1AA Large
Destructive6.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 228.787);
  --foreground: oklch(0.163 0.023 228.934);
  --muted: oklch(0.907 0.005 48.687);
  --muted-foreground: oklch(0.491 0.024 48.217);
  --popover: oklch(0.985 0.003 228.787);
  --popover-foreground: oklch(0.163 0.023 228.934);
  --card: oklch(0.985 0.003 228.787);
  --card-foreground: oklch(0.163 0.023 228.934);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.61 0.055 230.426);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.599 0.06 47.699);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.599 0.06 47.699);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.37 0.101 43.912);
  --destructive-foreground: oklch(0.863 0.071 49.689);
  --ring: oklch(0.61 0.055 230.426);
  --chart-1: oklch(0.61 0.055 230.426);
  --chart-2: oklch(0.599 0.06 47.699);
  --chart-3: oklch(0.599 0.06 47.699);
  --chart-4: oklch(0.624 0.056 47.811);
  --chart-5: oklch(0.612 0.061 230.711);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.008 224.554);
  --foreground: oklch(0.993 0.001 228.763);
  --muted: oklch(0.237 0.007 48.424);
  --muted-foreground: oklch(0.698 0.022 48.395);
  --popover: oklch(0.116 0.008 224.554);
  --popover-foreground: oklch(0.993 0.001 228.763);
  --card: oklch(0.116 0.008 224.554);
  --card-foreground: oklch(0.993 0.001 228.763);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.61 0.055 230.426);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.599 0.06 47.699);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.599 0.06 47.699);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.672 0.189 43.207);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.61 0.055 230.426);
  --chart-1: oklch(0.61 0.055 230.426);
  --chart-2: oklch(0.599 0.06 47.699);
  --chart-3: oklch(0.599 0.06 47.699);
  --chart-4: oklch(0.624 0.056 47.811);
  --chart-5: oklch(0.612 0.061 230.711);
}