Spawn is a shadcn/ui theme built around a vivid violet primary color (#8125f8) with vivid green accents (#9df825). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid violet primary (#8125f8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #000000black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f7f3fcghostwhite | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7f3fcghostwhite | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #8125f8blueviolet | #8125f8blueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9df825greenyellow | #9df825greenyellow |
| Secondary foreground | #2e4f02darkgreen | #2e4f02darkgreen |
| Muted | #dee1dbgainsboro | #22241eblack |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #9df825greenyellow | #9df825greenyellow |
| Accent foreground | #2e4f02darkgreen | #2e4f02darkgreen |
| Destructive | #8e2201darkred | #fe5420orangered |
| Destructive foreground | #ffd0c2peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8125f8blueviolet | #8125f8blueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 5.90:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.29:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.33:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.90:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.48:1 | AA |
Paste this into your globals.css to use Spawn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 305.629);
--foreground: oklch(0 0 0);
--muted: oklch(0.906 0.008 125.865);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.97 0.012 305.572);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0.012 305.572);
--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.539 0.274 294.236);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.888 0.237 131.846);
--secondary-foreground: oklch(0.387 0.106 131.924);
--accent: oklch(0.888 0.237 131.846);
--accent-foreground: oklch(0.387 0.106 131.924);
--destructive: oklch(0.427 0.149 35.117);
--destructive-foreground: oklch(0.895 0.056 37.592);
--ring: oklch(0.539 0.274 294.236);
--chart-1: oklch(0.539 0.274 294.236);
--chart-2: oklch(0.888 0.237 131.846);
--chart-3: oklch(0.888 0.237 131.846);
--chart-4: oklch(0.894 0.229 131.167);
--chart-5: oklch(0.54 0.279 293.678);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 305.726);
--muted: oklch(0.256 0.012 126.352);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.539 0.274 294.236);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.888 0.237 131.846);
--secondary-foreground: oklch(0.387 0.106 131.924);
--accent: oklch(0.888 0.237 131.846);
--accent-foreground: oklch(0.387 0.106 131.924);
--destructive: oklch(0.674 0.215 36.059);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.539 0.274 294.236);
--chart-1: oklch(0.539 0.274 294.236);
--chart-2: oklch(0.888 0.237 131.846);
--chart-3: oklch(0.888 0.237 131.846);
--chart-4: oklch(0.894 0.229 131.167);
--chart-5: oklch(0.54 0.279 293.678);
}