Spirited is a shadcn/ui theme built around an indigo primary color (#212bb0) with violet accents (#5f21b0). The light mode uses a neutral background (#f6f7fd). Dark mode keeps the indigo primary (#212bb0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f7fdghostwhite | #000000black |
| Foreground | #050610black | #ffffffwhite |
| Card | #f6f7fdghostwhite | #000000black |
| Card foreground | #050610black | #ffffffwhite |
| Popover | #f6f7fdghostwhite | #000000black |
| Popover foreground | #050610black | #ffffffwhite |
| Primary | #212bb0darkslateblue | #212bb0darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #2172b0steelblue | #2172b0steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7ebeelavender | #111518black |
| Muted foreground | #4e555adarkslategray | #a5acb1darkgray |
| Accent | #5f21b0rebeccapurple | #5f21b0rebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bf0c03firebrick | #fc3227orangered |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #212bb0darkslateblue | #212bb0darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 10.31:1 | AAA |
| Secondary button | 5.12:1 | AA |
| Muted text | 6.32:1 | AA |
| Accent | 8.99:1 | AAA |
| Destructive | 6.00:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 10.31:1 | AAA |
| Secondary button | 5.12:1 | AA |
| Muted text | 7.99:1 | AAA |
| Accent | 8.99:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Spirited in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.977 0.008 282.959);
--foreground: oklch(0.125 0.024 277.977);
--muted: oklch(0.938 0.007 240.38);
--muted-foreground: oklch(0.445 0.012 240.658);
--popover: oklch(0.977 0.008 282.959);
--popover-foreground: oklch(0.125 0.024 277.977);
--card: oklch(0.977 0.008 282.959);
--card-foreground: oklch(0.125 0.024 277.977);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.391 0.204 269.476);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.535 0.122 246.474);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.431 0.204 296.066);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.509 0.204 29.657);
--destructive-foreground: oklch(0.979 0.01 21.021);
--ring: oklch(0.391 0.204 269.476);
--chart-1: oklch(0.391 0.204 269.476);
--chart-2: oklch(0.535 0.122 246.474);
--chart-3: oklch(0.431 0.204 296.066);
--chart-4: oklch(0.563 0.13 246.552);
--chart-5: oklch(0.389 0.211 268.761);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.192 0.01 241.007);
--muted-foreground: oklch(0.739 0.011 240.481);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.391 0.204 269.476);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.535 0.122 246.474);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.431 0.204 296.066);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.641 0.236 28.902);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.391 0.204 269.476);
--chart-1: oklch(0.391 0.204 269.476);
--chart-2: oklch(0.535 0.122 246.474);
--chart-3: oklch(0.431 0.204 296.066);
--chart-4: oklch(0.563 0.13 246.552);
--chart-5: oklch(0.389 0.211 268.761);
}