Spume for shadcn/ui

Spume is a shadcn/ui theme built around a neutral gray primary color (#7c7d73) with muted light yellow accents (#cccdbc). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#7c7d73) on a yellow-tinted background (#0f1005).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f1005black
Foreground
#0d0d02black
#fafaf5whitesmoke
Card
#ffffffwhite
#0f1005black
Card foreground
#0d0d02black
#fafaf5whitesmoke
Popover
#ffffffwhite
#0f1005black
Popover foreground
#0d0d02black
#fafaf5whitesmoke
Primary
#7c7d73gray
#7c7d73gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dfdfd8gainsboro
#181811black
Secondary foreground
#48493cdarkslategray
#bbbc9fdarkgray
Muted
#e7e8cfantiquewhite
#2f3017darkslategray
Muted foreground
#6c6d54dimgray
#a9ab92darkgray
Accent
#cccdbcsilver
#31321fdarkslategray
Accent foreground
#313225darkslategray
#ced0b4silver
Destructive
#be2409firebrick
#db2a0aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c7d73gray
#7c7d73gray

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button4.18:1AA Large
Secondary button6.82:1AA
Muted text4.25:1AA Large
Accent8.08:1AAA
Destructive6.09:1AA
Dark mode
Text on background18.31:1AAA
Text on card18.31:1AAA
Primary button4.18:1AA Large
Secondary button9.17:1AAA
Muted text5.72:1AA
Accent8.25:1AAA
Destructive4.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.155 0.026 111.092);
  --muted: oklch(0.923 0.033 109.364);
  --muted-foreground: oklch(0.528 0.038 109.993);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.155 0.026 111.092);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.155 0.026 111.092);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.585 0.014 109.158);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.901 0.01 108.906);
  --secondary-foreground: oklch(0.4 0.021 109.681);
  --accent: oklch(0.843 0.024 109.229);
  --accent-foreground: oklch(0.312 0.022 109.991);
  --destructive: oklch(0.519 0.192 31.809);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.585 0.014 109.158);
  --chart-1: oklch(0.585 0.014 109.158);
  --chart-2: oklch(0.901 0.01 108.906);
  --chart-3: oklch(0.843 0.024 109.229);
  --chart-4: oklch(0.922 0.008 108.86);
  --chart-5: oklch(0.595 0.025 109.467);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.167 0.023 110.904);
  --foreground: oklch(0.984 0.007 108.842);
  --muted: oklch(0.302 0.041 111.101);
  --muted-foreground: oklch(0.732 0.035 109.581);
  --popover: oklch(0.167 0.023 110.904);
  --popover-foreground: oklch(0.984 0.007 108.842);
  --card: oklch(0.167 0.023 110.904);
  --card-foreground: oklch(0.984 0.007 108.842);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.585 0.014 109.158);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.206 0.014 109.926);
  --secondary-foreground: oklch(0.786 0.04 109.637);
  --accent: oklch(0.311 0.031 110.507);
  --accent-foreground: oklch(0.849 0.038 109.522);
  --destructive: oklch(0.576 0.215 31.722);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.585 0.014 109.158);
  --chart-1: oklch(0.585 0.014 109.158);
  --chart-2: oklch(0.206 0.014 109.926);
  --chart-3: oklch(0.311 0.031 110.507);
  --chart-4: oklch(0.244 0.018 110.055);
  --chart-5: oklch(0.595 0.025 109.467);
}