Spur is a shadcn/ui theme built around a vivid deep blue primary color (#094181) with vivid deep orange accents (#814909). The light mode uses a neutral background (#f8fafb). Dark mode keeps the vivid deep blue primary (#094181) on a neutral background (#020508).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafbghostwhite | #020508black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f5f7fawhitesmoke | #04070cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f5f7fawhitesmoke | #04070cblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #094181midnightblue | #094181midnightblue |
| Primary foreground | #c1dcfbpowderblue | #c1dcfbpowderblue |
| Secondary | #814909saddlebrown | #814909saddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9dccegainsboro | #312516black |
| Muted foreground | #5b5249darkolivegreen | #b6aea4darkgray |
| Accent | #814909saddlebrown | #814909saddlebrown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a9330ffirebrick | #ef6b43tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #094181midnightblue | #094181midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 20.42:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Spur in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 251.473);
--foreground: oklch(0 0 0);
--muted: oklch(0.901 0.024 71.202);
--muted-foreground: oklch(0.444 0.019 71.022);
--popover: oklch(0.976 0.004 251.485);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.976 0.004 251.485);
--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.381 0.121 255.897);
--primary-foreground: oklch(0.884 0.051 251.869);
--secondary: oklch(0.462 0.103 61.255);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.462 0.103 61.255);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.494 0.16 35.841);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.381 0.121 255.897);
--chart-1: oklch(0.381 0.121 255.897);
--chart-2: oklch(0.462 0.103 61.255);
--chart-3: oklch(0.462 0.103 61.255);
--chart-4: oklch(0.498 0.112 60.92);
--chart-5: oklch(0.382 0.124 256.154);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.011 244.114);
--foreground: oklch(1 0 180);
--muted: oklch(0.274 0.031 69.659);
--muted-foreground: oklch(0.755 0.017 71.249);
--popover: oklch(0.128 0.013 244.491);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.013 244.491);
--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.381 0.121 255.897);
--primary-foreground: oklch(0.884 0.051 251.869);
--secondary: oklch(0.462 0.103 61.255);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.462 0.103 61.255);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.682 0.172 37.454);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.381 0.121 255.897);
--chart-1: oklch(0.381 0.121 255.897);
--chart-2: oklch(0.462 0.103 61.255);
--chart-3: oklch(0.462 0.103 61.255);
--chart-4: oklch(0.498 0.112 60.92);
--chart-5: oklch(0.382 0.124 256.154);
}