Spree is a shadcn/ui theme built around a neutral gray primary color (#abaeb5) with neutral gray accents (#aeabb5). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the neutral gray primary (#abaeb5) on a blue-tinted background (#05080f).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #05080fblack |
| Foreground | #000000black | #f5f6fawhitesmoke |
| Card | #f7f8fdghostwhite | #05080fblack |
| Card foreground | #000000black | #f5f6fawhitesmoke |
| Popover | #f7f8fdghostwhite | #05080fblack |
| Popover foreground | #000000black | #f5f6fawhitesmoke |
| Primary | #abaeb5darkgray | #abaeb5darkgray |
| Primary foreground | #161618black | #161618black |
| Secondary | #abb2b5darkgray | #abb2b5darkgray |
| Secondary foreground | #161818black | #161818black |
| Muted | #d7dde0gainsboro | #1f2628darkslategray |
| Muted foreground | #5e6a6edimgray | #919da1darkgray |
| Accent | #aeabb5darkgray | #aeabb5darkgray |
| Accent foreground | #161618black | #161618black |
| Destructive | #5d1409maroon | #db2f14firebrick |
| Destructive foreground | #f6ada2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #abaeb5darkgray | #abaeb5darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 4.07:1 | AA Large |
| Accent | 7.99:1 | AAA |
| Destructive | 7.26:1 | AAA |
| Text on background | 18.55:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.73:1 | AA |
Paste this into your globals.css to use Spree in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 271.347);
--foreground: oklch(0 0 0);
--muted: oklch(0.895 0.008 219.57);
--muted-foreground: oklch(0.516 0.016 219.79);
--popover: oklch(0.98 0.007 271.347);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.007 271.347);
--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.75 0.01 271.275);
--primary-foreground: oklch(0.201 0.004 271.203);
--secondary: oklch(0.76 0.009 219.595);
--secondary-foreground: oklch(0.205 0.003 219.643);
--accent: oklch(0.747 0.014 297.499);
--accent-foreground: oklch(0.2 0.006 297.334);
--destructive: oklch(0.318 0.107 31.683);
--destructive-foreground: oklch(0.814 0.088 28.871);
--ring: oklch(0.75 0.01 271.275);
--chart-1: oklch(0.75 0.01 271.275);
--chart-2: oklch(0.76 0.009 219.595);
--chart-3: oklch(0.747 0.014 297.499);
--chart-4: oklch(0.784 0.008 219.582);
--chart-5: oklch(0.746 0.016 271.202);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.017 266.636);
--foreground: oklch(0.973 0.006 271.355);
--muted: oklch(0.263 0.01 219.871);
--muted-foreground: oklch(0.688 0.015 219.691);
--popover: oklch(0.134 0.017 266.636);
--popover-foreground: oklch(0.973 0.006 271.355);
--card: oklch(0.134 0.017 266.636);
--card-foreground: oklch(0.973 0.006 271.355);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.75 0.01 271.275);
--primary-foreground: oklch(0.201 0.004 271.203);
--secondary: oklch(0.76 0.009 219.595);
--secondary-foreground: oklch(0.205 0.003 219.643);
--accent: oklch(0.747 0.014 297.499);
--accent-foreground: oklch(0.2 0.006 297.334);
--destructive: oklch(0.581 0.211 31.526);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.75 0.01 271.275);
--chart-1: oklch(0.75 0.01 271.275);
--chart-2: oklch(0.76 0.009 219.595);
--chart-3: oklch(0.747 0.014 297.499);
--chart-4: oklch(0.784 0.008 219.582);
--chart-5: oklch(0.746 0.016 271.202);
}