Spotty Dove Grey for shadcn/ui

Spotty Dove Grey is a shadcn/ui theme built around a neutral gray primary color (#6c6a6a) with neutral gray accents (#6a6c6c). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#6c6a6a) on a red-tinted background (#0f0706).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0f0706black
Foreground
#120503black
#fdfcfcsnow
Card
#fefbfbsnow
#0f0706black
Card foreground
#120503black
#fdfcfcsnow
Popover
#fefbfbsnow
#0f0706black
Popover foreground
#120503black
#fdfcfcsnow
Primary
#6c6a6adimgray
#6c6a6adimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6a6c6cdimgray
#6a6c6cdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ddebeelavender
#111f22black
Muted foreground
#46595ddarkslategray
#a2b5b9darkgray
Accent
#6a6c6cdimgray
#6a6c6cdimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#e04300orangered
#ff6929tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#ebe6e5linen
#251e1dblack
Input
#ebe6e5linen
#251e1dblack
Ring
#6c6a6adimgray
#6c6a6adimgray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button5.34:1AA
Secondary button5.29:1AA
Muted text6.05:1AA
Accent5.29:1AA
Destructive4.20:1AA Large
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button5.34:1AA
Secondary button5.29:1AA
Muted text7.89:1AAA
Accent5.29:1AA
Destructive7.30:1AAA

CSS variables

Paste this into your globals.css to use Spotty Dove Grey in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 31.049);
  --foreground: oklch(0.138 0.026 38.448);
  --muted: oklch(0.931 0.016 211.04);
  --muted-foreground: oklch(0.45 0.024 211.166);
  --popover: oklch(0.991 0.003 31.049);
  --popover-foreground: oklch(0.138 0.026 38.448);
  --card: oklch(0.991 0.003 31.049);
  --card-foreground: oklch(0.138 0.026 38.448);
  --border: oklch(0.929 0.005 31.053);
  --input: oklch(0.929 0.005 31.053);
  --primary: oklch(0.527 0.002 31.051);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.529 0.002 211.04);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.529 0.002 211.04);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.607 0.202 37.149);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.527 0.002 31.051);
  --chart-1: oklch(0.527 0.002 31.051);
  --chart-2: oklch(0.529 0.002 211.04);
  --chart-3: oklch(0.529 0.002 211.04);
  --chart-4: oklch(0.556 0.002 211.04);
  --chart-5: oklch(0.524 0.009 31.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.016 34.773);
  --foreground: oklch(0.992 0.001 31.046);
  --muted: oklch(0.229 0.021 211.604);
  --muted-foreground: oklch(0.76 0.022 211.058);
  --popover: oklch(0.14 0.016 34.773);
  --popover-foreground: oklch(0.992 0.001 31.046);
  --card: oklch(0.14 0.016 34.773);
  --card-foreground: oklch(0.992 0.001 31.046);
  --border: oklch(0.244 0.011 31.189);
  --input: oklch(0.244 0.011 31.189);
  --primary: oklch(0.527 0.002 31.051);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.529 0.002 211.04);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.529 0.002 211.04);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.701 0.197 40.79);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.527 0.002 31.051);
  --chart-1: oklch(0.527 0.002 31.051);
  --chart-2: oklch(0.529 0.002 211.04);
  --chart-3: oklch(0.529 0.002 211.04);
  --chart-4: oklch(0.556 0.002 211.04);
  --chart-5: oklch(0.524 0.009 31.083);
}