Spree is a shadcn/ui theme built around a light violet primary color (#ece7f9) with light green accents (#e7f9ec). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the light violet primary (#ece7f9) on a violet-tinted background (#080410).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #080410black |
| Foreground | #070312black | #ffffffwhite |
| Card | #fcfbfewhite | #080410black |
| Card foreground | #070312black | #ffffffwhite |
| Popover | #fcfbfewhite | #080410black |
| Popover foreground | #070312black | #ffffffwhite |
| Primary | #ece7f9lavender | #ece7f9lavender |
| Primary foreground | #432489darkslateblue | #432489darkslateblue |
| Secondary | #f9ece7linen | #f9ece7linen |
| Secondary foreground | #894324saddlebrown | #894324saddlebrown |
| Muted | #f5f1efwhitesmoke | #100c0ablack |
| Muted foreground | #484341darkslategray | #beb9b7silver |
| Accent | #e7f9echoneydew | #e7f9echoneydew |
| Accent foreground | #0f381bdarkgreen | #0f381bdarkgreen |
| Destructive | #710c0amaroon | #eb211ecrimson |
| Destructive foreground | #f8b5b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ece7f9lavender | #ece7f9lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 9.36:1 | AAA |
| Secondary button | 6.28:1 | AA |
| Muted text | 8.69:1 | AAA |
| Accent | 11.92:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 9.36:1 | AAA |
| Secondary button | 6.28:1 | AA |
| Muted text | 10.04:1 | AAA |
| Accent | 11.92:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Spree in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 299.978);
--foreground: oklch(0.119 0.038 298.473);
--muted: oklch(0.961 0.005 44.928);
--muted-foreground: oklch(0.389 0.007 44.794);
--popover: oklch(0.99 0.004 299.978);
--popover-foreground: oklch(0.119 0.038 298.473);
--card: oklch(0.99 0.004 299.978);
--card-foreground: oklch(0.119 0.038 298.473);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.937 0.024 299.6);
--primary-foreground: oklch(0.367 0.156 290.262);
--secondary: oklch(0.952 0.015 44.822);
--secondary-foreground: oklch(0.465 0.105 42.683);
--accent: oklch(0.964 0.025 155.37);
--accent-foreground: oklch(0.305 0.069 150.084);
--destructive: oklch(0.351 0.134 28.229);
--destructive-foreground: oklch(0.836 0.079 19.975);
--ring: oklch(0.937 0.024 299.6);
--chart-1: oklch(0.937 0.024 299.6);
--chart-2: oklch(0.952 0.015 44.822);
--chart-3: oklch(0.964 0.025 155.37);
--chart-4: oklch(0.976 0.008 44.902);
--chart-5: oklch(0.936 0.026 299.576);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.031 298.788);
--foreground: oklch(1 0 180);
--muted: oklch(0.157 0.008 44.52);
--muted-foreground: oklch(0.788 0.006 44.901);
--popover: oklch(0.124 0.031 298.788);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.031 298.788);
--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.937 0.024 299.6);
--primary-foreground: oklch(0.367 0.156 290.262);
--secondary: oklch(0.952 0.015 44.822);
--secondary-foreground: oklch(0.465 0.105 42.683);
--accent: oklch(0.964 0.025 155.37);
--accent-foreground: oklch(0.305 0.069 150.084);
--destructive: oklch(0.602 0.232 28.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.937 0.024 299.6);
--chart-1: oklch(0.937 0.024 299.6);
--chart-2: oklch(0.952 0.015 44.822);
--chart-3: oklch(0.964 0.025 155.37);
--chart-4: oklch(0.976 0.008 44.902);
--chart-5: oklch(0.936 0.026 299.576);
}