Spree for shadcn/ui

Spree is a shadcn/ui theme built around a light violet primary color (#ece7f9) with light green accents (#e7f9ec). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the light violet primary (#ece7f9) on a violet-tinted background (#080410).

Color palette

TokenLightDark
Background
#fcfbfewhite
#080410black
Foreground
#070312black
#ffffffwhite
Card
#fcfbfewhite
#080410black
Card foreground
#070312black
#ffffffwhite
Popover
#fcfbfewhite
#080410black
Popover foreground
#070312black
#ffffffwhite
Primary
#ece7f9lavender
#ece7f9lavender
Primary foreground
#432489darkslateblue
#432489darkslateblue
Secondary
#f9ece7linen
#f9ece7linen
Secondary foreground
#894324saddlebrown
#894324saddlebrown
Muted
#f5f1efwhitesmoke
#100c0ablack
Muted foreground
#484341darkslategray
#beb9b7silver
Accent
#e7f9echoneydew
#e7f9echoneydew
Accent foreground
#0f381bdarkgreen
#0f381bdarkgreen
Destructive
#710c0amaroon
#eb211ecrimson
Destructive foreground
#f8b5b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ece7f9lavender
#ece7f9lavender

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button9.36:1AAA
Secondary button6.28:1AA
Muted text8.69:1AAA
Accent11.92:1AAA
Destructive6.99:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button9.36:1AAA
Secondary button6.28:1AA
Muted text10.04:1AAA
Accent11.92:1AAA
Destructive4.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 299.978);
  --foreground: oklch(0.119 0.038 298.473);
  --muted: oklch(0.961 0.005 44.928);
  --muted-foreground: oklch(0.389 0.007 44.794);
  --popover: oklch(0.99 0.004 299.978);
  --popover-foreground: oklch(0.119 0.038 298.473);
  --card: oklch(0.99 0.004 299.978);
  --card-foreground: oklch(0.119 0.038 298.473);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.937 0.024 299.6);
  --primary-foreground: oklch(0.367 0.156 290.262);
  --secondary: oklch(0.952 0.015 44.822);
  --secondary-foreground: oklch(0.465 0.105 42.683);
  --accent: oklch(0.964 0.025 155.37);
  --accent-foreground: oklch(0.305 0.069 150.084);
  --destructive: oklch(0.351 0.134 28.229);
  --destructive-foreground: oklch(0.836 0.079 19.975);
  --ring: oklch(0.937 0.024 299.6);
  --chart-1: oklch(0.937 0.024 299.6);
  --chart-2: oklch(0.952 0.015 44.822);
  --chart-3: oklch(0.964 0.025 155.37);
  --chart-4: oklch(0.976 0.008 44.902);
  --chart-5: oklch(0.936 0.026 299.576);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.031 298.788);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.157 0.008 44.52);
  --muted-foreground: oklch(0.788 0.006 44.901);
  --popover: oklch(0.124 0.031 298.788);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.031 298.788);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.937 0.024 299.6);
  --primary-foreground: oklch(0.367 0.156 290.262);
  --secondary: oklch(0.952 0.015 44.822);
  --secondary-foreground: oklch(0.465 0.105 42.683);
  --accent: oklch(0.964 0.025 155.37);
  --accent-foreground: oklch(0.305 0.069 150.084);
  --destructive: oklch(0.602 0.232 28.389);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.024 299.6);
  --chart-1: oklch(0.937 0.024 299.6);
  --chart-2: oklch(0.952 0.015 44.822);
  --chart-3: oklch(0.964 0.025 155.37);
  --chart-4: oklch(0.976 0.008 44.902);
  --chart-5: oklch(0.936 0.026 299.576);
}