Spud for shadcn/ui

Spud is a shadcn/ui theme built around a yellow primary color (#d3c77e) with muted yellow accents (#d2cdad). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the yellow primary (#d3c77e) on a yellow-tinted background (#0b0a04).

Color palette

TokenLightDark
Background
#fdfcf7snow
#0b0a04black
Foreground
#040401black
#f9f9f6whitesmoke
Card
#fcfbf3floralwhite
#0f0e05black
Card foreground
#000000black
#fbfbf9snow
Popover
#fdfcf7snow
#0b0a04black
Popover foreground
#040401black
#f9f9f6whitesmoke
Primary
#d3c77eburlywood
#d3c77eburlywood
Primary foreground
#171508black
#171508black
Secondary
#dad8c8lightgrey
#2a291ddarkslategray
Secondary foreground
#43402ddarkslategray
#c9c6b0silver
Muted
#e7e6dfgainsboro
#201f18black
Muted foreground
#616056dimgray
#a9a79edarkgray
Accent
#d2cdadsilver
#474329darkolivegreen
Accent foreground
#312e1bdarkslategray
#dddac5lightgrey
Destructive
#641902maroon
#f13b04orangered
Destructive foreground
#fdb29bburlywood
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3c77eburlywood
#d3c77eburlywood

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card20.21:1AAA
Primary button10.69:1AAA
Secondary button7.27:1AAA
Muted text5.04:1AA
Accent8.48:1AAA
Destructive7.13:1AAA
Dark mode
Text on background18.75:1AAA
Text on card18.68:1AAA
Primary button10.69:1AAA
Secondary button8.51:1AAA
Muted text6.87:1AA
Accent7.06:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.007 99.451);
  --foreground: oklch(0.101 0.012 102.646);
  --muted: oklch(0.923 0.009 99.476);
  --muted-foreground: oklch(0.487 0.015 99.775);
  --popover: oklch(0.991 0.007 99.451);
  --popover-foreground: oklch(0.101 0.012 102.646);
  --card: oklch(0.986 0.011 99.505);
  --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.824 0.095 100.615);
  --primary-foreground: oklch(0.193 0.024 100.755);
  --secondary: oklch(0.879 0.022 99.691);
  --secondary-foreground: oklch(0.37 0.032 100.394);
  --accent: oklch(0.843 0.043 100.035);
  --accent-foreground: oklch(0.3 0.032 100.567);
  --destructive: oklch(0.337 0.113 36.298);
  --destructive-foreground: oklch(0.829 0.095 37.638);
  --ring: oklch(0.824 0.095 100.615);
  --chart-1: oklch(0.824 0.095 100.615);
  --chart-2: oklch(0.879 0.022 99.691);
  --chart-3: oklch(0.843 0.043 100.035);
  --chart-4: oklch(0.9 0.018 99.628);
  --chart-5: oklch(0.83 0.1 100.641);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.016 102.199);
  --foreground: oklch(0.98 0.004 99.399);
  --muted: oklch(0.237 0.012 100.014);
  --muted-foreground: oklch(0.728 0.014 99.611);
  --popover: oklch(0.145 0.016 102.199);
  --popover-foreground: oklch(0.98 0.004 99.399);
  --card: oklch(0.162 0.019 101.364);
  --card-foreground: oklch(0.987 0.003 99.38);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.824 0.095 100.615);
  --primary-foreground: oklch(0.193 0.024 100.755);
  --secondary: oklch(0.278 0.021 100.29);
  --secondary-foreground: oklch(0.823 0.03 99.848);
  --accent: oklch(0.38 0.041 100.577);
  --accent-foreground: oklch(0.886 0.029 99.801);
  --destructive: oklch(0.628 0.224 34.14);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.824 0.095 100.615);
  --chart-1: oklch(0.824 0.095 100.615);
  --chart-2: oklch(0.278 0.021 100.29);
  --chart-3: oklch(0.38 0.041 100.577);
  --chart-4: oklch(0.312 0.024 100.323);
  --chart-5: oklch(0.83 0.1 100.641);
}