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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.24:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 6.88:1 | AA |
| Muted text | 6.48:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.05:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 6.88:1 | AA |
| Muted text | 8.89:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 4.50:1 | AA |
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);
}