Spree for shadcn/ui

Spree is a shadcn/ui theme built around a neutral gray primary color (#abaeb5) with neutral gray accents (#aeabb5). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the neutral gray primary (#abaeb5) on a blue-tinted background (#05080f).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#05080fblack
Foreground
#000000black
#f5f6fawhitesmoke
Card
#f7f8fdghostwhite
#05080fblack
Card foreground
#000000black
#f5f6fawhitesmoke
Popover
#f7f8fdghostwhite
#05080fblack
Popover foreground
#000000black
#f5f6fawhitesmoke
Primary
#abaeb5darkgray
#abaeb5darkgray
Primary foreground
#161618black
#161618black
Secondary
#abb2b5darkgray
#abb2b5darkgray
Secondary foreground
#161818black
#161818black
Muted
#d7dde0gainsboro
#1f2628darkslategray
Muted foreground
#5e6a6edimgray
#919da1darkgray
Accent
#aeabb5darkgray
#aeabb5darkgray
Accent foreground
#161618black
#161618black
Destructive
#5d1409maroon
#db2f14firebrick
Destructive foreground
#f6ada2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#abaeb5darkgray
#abaeb5darkgray

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button8.10:1AAA
Secondary button8.31:1AAA
Muted text4.07:1AA Large
Accent7.99:1AAA
Destructive7.26:1AAA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button8.10:1AAA
Secondary button8.31:1AAA
Muted text5.52:1AA
Accent7.99:1AAA
Destructive4.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 271.347);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.895 0.008 219.57);
  --muted-foreground: oklch(0.516 0.016 219.79);
  --popover: oklch(0.98 0.007 271.347);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.007 271.347);
  --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.75 0.01 271.275);
  --primary-foreground: oklch(0.201 0.004 271.203);
  --secondary: oklch(0.76 0.009 219.595);
  --secondary-foreground: oklch(0.205 0.003 219.643);
  --accent: oklch(0.747 0.014 297.499);
  --accent-foreground: oklch(0.2 0.006 297.334);
  --destructive: oklch(0.318 0.107 31.683);
  --destructive-foreground: oklch(0.814 0.088 28.871);
  --ring: oklch(0.75 0.01 271.275);
  --chart-1: oklch(0.75 0.01 271.275);
  --chart-2: oklch(0.76 0.009 219.595);
  --chart-3: oklch(0.747 0.014 297.499);
  --chart-4: oklch(0.784 0.008 219.582);
  --chart-5: oklch(0.746 0.016 271.202);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.017 266.636);
  --foreground: oklch(0.973 0.006 271.355);
  --muted: oklch(0.263 0.01 219.871);
  --muted-foreground: oklch(0.688 0.015 219.691);
  --popover: oklch(0.134 0.017 266.636);
  --popover-foreground: oklch(0.973 0.006 271.355);
  --card: oklch(0.134 0.017 266.636);
  --card-foreground: oklch(0.973 0.006 271.355);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.75 0.01 271.275);
  --primary-foreground: oklch(0.201 0.004 271.203);
  --secondary: oklch(0.76 0.009 219.595);
  --secondary-foreground: oklch(0.205 0.003 219.643);
  --accent: oklch(0.747 0.014 297.499);
  --accent-foreground: oklch(0.2 0.006 297.334);
  --destructive: oklch(0.581 0.211 31.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.75 0.01 271.275);
  --chart-1: oklch(0.75 0.01 271.275);
  --chart-2: oklch(0.76 0.009 219.595);
  --chart-3: oklch(0.747 0.014 297.499);
  --chart-4: oklch(0.784 0.008 219.582);
  --chart-5: oklch(0.746 0.016 271.202);
}