Gumshoe for shadcn/ui

Gumshoe is a shadcn/ui theme built around a blue primary color (#4277e0) with muted blue accents (#b1b5be). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the blue primary (#4277e0) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#020203black
Foreground
#000000black
#f6f7f8whitesmoke
Card
#f8f9fcghostwhite
#020203black
Card foreground
#000000black
#f6f7f8whitesmoke
Popover
#f8f9fcghostwhite
#020203black
Popover foreground
#000000black
#f6f7f8whitesmoke
Primary
#4277e0royalblue
#4277e0royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cbcccdlightgrey
#303236darkslategray
Secondary foreground
#323334darkslategray
#c9cbcflightgrey
Muted
#edeff2whitesmoke
#0d0f12black
Muted foreground
#3f434bdarkslategray
#b4b8c0silver
Accent
#b1b5besilver
#3e4451darkslategray
Accent foreground
#1c1e21black
#dcdfe4gainsboro
Destructive
#6f2106maroon
#f2521corangered
Destructive foreground
#fac0adlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4277e0royalblue
#4277e0royalblue

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button4.23:1AA Large
Secondary button7.86:1AAA
Muted text8.61:1AAA
Accent8.16:1AAA
Destructive6.99:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.31:1AAA
Primary button4.23:1AA Large
Secondary button7.88:1AAA
Muted text9.67:1AAA
Accent7.28:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 264.538);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.952 0.004 264.537);
  --muted-foreground: oklch(0.381 0.015 264.379);
  --popover: oklch(0.982 0.004 264.538);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.004 264.538);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.588 0.17 262.438);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.845 0.001 264.547);
  --secondary-foreground: oklch(0.32 0.001 264.539);
  --accent: oklch(0.774 0.013 264.491);
  --accent-foreground: oklch(0.233 0.008 264.418);
  --destructive: oklch(0.367 0.116 36.981);
  --destructive-foreground: oklch(0.856 0.072 39.228);
  --ring: oklch(0.588 0.17 262.438);
  --chart-1: oklch(0.588 0.17 262.438);
  --chart-2: oklch(0.845 0.001 264.547);
  --chart-3: oklch(0.774 0.013 264.491);
  --chart-4: oklch(0.868 0.001 264.548);
  --chart-5: oklch(0.587 0.177 262.367);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.006 260.615);
  --foreground: oklch(0.976 0.002 264.546);
  --muted: oklch(0.166 0.007 264.369);
  --muted-foreground: oklch(0.782 0.013 264.495);
  --popover: oklch(0.088 0.006 260.615);
  --popover-foreground: oklch(0.976 0.002 264.546);
  --card: oklch(0.088 0.006 260.615);
  --card-foreground: oklch(0.976 0.002 264.546);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.588 0.17 262.438);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.317 0.006 264.476);
  --secondary-foreground: oklch(0.842 0.005 264.532);
  --accent: oklch(0.387 0.023 264.265);
  --accent-foreground: oklch(0.903 0.008 264.523);
  --destructive: oklch(0.652 0.205 36.901);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.588 0.17 262.438);
  --chart-1: oklch(0.588 0.17 262.438);
  --chart-2: oklch(0.317 0.006 264.476);
  --chart-3: oklch(0.387 0.023 264.265);
  --chart-4: oklch(0.347 0.007 264.473);
  --chart-5: oklch(0.587 0.177 262.367);
}