Spool for shadcn/ui

Spool is a shadcn/ui theme built around a deep yellow primary color (#3b350c) with deep purple accents (#350c3b). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the deep yellow primary (#3b350c) on a yellow-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#fdfcf7snow
#0a0a05black
Foreground
#0c0b03black
#faf9f5whitesmoke
Card
#fcfbf2floralwhite
#0e0d07black
Card foreground
#080702black
#fcfbf8snow
Popover
#fdfcf7snow
#0a0a05black
Popover foreground
#0c0b03black
#faf9f5whitesmoke
Primary
#3b350cdarkolivegreen
#3b350cdarkolivegreen
Primary foreground
#d7c23cgoldenrod
#d7c23cgoldenrod
Secondary
#0c3b35darkslategray
#0c3b35darkslategray
Secondary foreground
#3cd7c2mediumturquoise
#3cd7c2mediumturquoise
Muted
#e6eae9lavender
#151918black
Muted foreground
#445553darkslategray
#aabbb9silver
Accent
#350c3bmidnightblue
#350c3bmidnightblue
Accent foreground
#dd91e8plum
#dd91e8plum
Destructive
#ba0f03firebrick
#ec1304red
Destructive foreground
#fff1f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b350cdarkolivegreen
#3b350cdarkolivegreen

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.42:1AAA
Primary button6.85:1AA
Secondary button6.88:1AA
Muted text6.48:1AA
Accent7.32:1AAA
Destructive6.05:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.84:1AAA
Primary button6.85:1AA
Secondary button6.88:1AA
Muted text8.89:1AAA
Accent7.32:1AAA
Destructive4.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 99.454);
  --foreground: oklch(0.148 0.02 102.524);
  --muted: oklch(0.934 0.004 187.644);
  --muted-foreground: oklch(0.434 0.021 186.503);
  --popover: oklch(0.991 0.008 99.454);
  --popover-foreground: oklch(0.148 0.02 102.524);
  --card: oklch(0.987 0.011 99.51);
  --card-foreground: oklch(0.129 0.017 103.001);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.326 0.058 100.404);
  --primary-foreground: oklch(0.81 0.149 100.269);
  --secondary: oklch(0.321 0.05 182.28);
  --secondary-foreground: oklch(0.796 0.129 181.916);
  --accent: oklch(0.25 0.094 322.047);
  --accent-foreground: oklch(0.763 0.146 322.045);
  --destructive: oklch(0.5 0.199 29.9);
  --destructive-foreground: oklch(0.969 0.015 22.393);
  --ring: oklch(0.326 0.058 100.404);
  --chart-1: oklch(0.326 0.058 100.404);
  --chart-2: oklch(0.321 0.05 182.28);
  --chart-3: oklch(0.25 0.094 322.047);
  --chart-4: oklch(0.364 0.058 182.032);
  --chart-5: oklch(0.33 0.06 100.327);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.011 101.594);
  --foreground: oklch(0.982 0.006 99.426);
  --muted: oklch(0.208 0.006 187.067);
  --muted-foreground: oklch(0.778 0.019 187.147);
  --popover: oklch(0.141 0.011 101.594);
  --popover-foreground: oklch(0.982 0.006 99.426);
  --card: oklch(0.156 0.013 100.772);
  --card-foreground: oklch(0.988 0.004 99.397);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.326 0.058 100.404);
  --primary-foreground: oklch(0.81 0.149 100.269);
  --secondary: oklch(0.321 0.05 182.28);
  --secondary-foreground: oklch(0.796 0.129 181.916);
  --accent: oklch(0.25 0.094 322.047);
  --accent-foreground: oklch(0.763 0.146 322.045);
  --destructive: oklch(0.597 0.239 29.783);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.326 0.058 100.404);
  --chart-1: oklch(0.326 0.058 100.404);
  --chart-2: oklch(0.321 0.05 182.28);
  --chart-3: oklch(0.25 0.094 322.047);
  --chart-4: oklch(0.364 0.058 182.032);
  --chart-5: oklch(0.33 0.06 100.327);
}