Spirit is a shadcn/ui theme built around an orange primary color (#964c27) with blue accents (#277196). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the orange primary (#964c27) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #040201black |
| Foreground | #040201black | #fbf9f9snow |
| Card | #fdfcfcsnow | #040201black |
| Card foreground | #040201black | #fbf9f9snow |
| Popover | #fdfcfcsnow | #040201black |
| Popover foreground | #040201black | #fbf9f9snow |
| Primary | #964c27sienna | #964c27sienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #277196steelblue | #277196steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1eaeflavender | #10191eblack |
| Muted foreground | #394246darkslategray | #b9c1c6silver |
| Accent | #277196steelblue | #277196steelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #711705maroon | #f75636tomato |
| Destructive foreground | #fcb9aclightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #964c27sienna | #964c27sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 5.40:1 | AA |
| Muted text | 8.45:1 | AAA |
| Accent | 5.40:1 | AA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 5.40:1 | AA |
| Muted text | 9.73:1 | AAA |
| Accent | 5.40:1 | AA |
| Destructive | 6.33:1 | AA |
Paste this into your globals.css to use Spirit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.001 48.735);
--foreground: oklch(0.09 0.014 60.122);
--muted: oklch(0.932 0.011 228.911);
--muted-foreground: oklch(0.372 0.013 229.273);
--popover: oklch(0.992 0.001 48.735);
--popover-foreground: oklch(0.09 0.014 60.122);
--card: oklch(0.992 0.001 48.735);
--card-foreground: oklch(0.09 0.014 60.122);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.501 0.112 45.402);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.52 0.092 234.552);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.52 0.092 234.552);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.359 0.127 32.975);
--destructive-foreground: oklch(0.844 0.08 31.532);
--ring: oklch(0.501 0.112 45.402);
--chart-1: oklch(0.501 0.112 45.402);
--chart-2: oklch(0.52 0.092 234.552);
--chart-3: oklch(0.52 0.092 234.552);
--chart-4: oklch(0.55 0.098 234.639);
--chart-5: oklch(0.503 0.117 45.079);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.091 0.009 55.607);
--foreground: oklch(0.985 0.002 48.723);
--muted: oklch(0.208 0.016 230.074);
--muted-foreground: oklch(0.807 0.011 228.935);
--popover: oklch(0.091 0.009 55.607);
--popover-foreground: oklch(0.985 0.002 48.723);
--card: oklch(0.091 0.009 55.607);
--card-foreground: oklch(0.985 0.002 48.723);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.501 0.112 45.402);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.52 0.092 234.552);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.52 0.092 234.552);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.667 0.202 33.211);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.501 0.112 45.402);
--chart-1: oklch(0.501 0.112 45.402);
--chart-2: oklch(0.52 0.092 234.552);
--chart-3: oklch(0.52 0.092 234.552);
--chart-4: oklch(0.55 0.098 234.639);
--chart-5: oklch(0.503 0.117 45.079);
}