Spiral is a shadcn/ui theme built around a vivid green primary color (#72a201) with vivid violet accents (#3101a2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#72a201) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060802black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #ffffffwhite | #060802black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #060802black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #72a201olive | #72a201olive |
| Primary foreground | #000000black | #000000black |
| Secondary | #3101a2indigo | #3101a2indigo |
| Secondary foreground | #e3d6fflavender | #e3d6fflavender |
| Muted | #ebe8f3lavender | #100c17black |
| Muted foreground | #616062dimgray | #9e9d9fdarkgray |
| Accent | #3101a2indigo | #3101a2indigo |
| Accent foreground | #e3d6fflavender | #e3d6fflavender |
| Destructive | #bf4b08chocolate | #f56a19chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #72a201olive | #72a201olive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 9.23:1 | AAA |
| Muted text | 5.15:1 | AA |
| Accent | 9.23:1 | AAA |
| Destructive | 4.97:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 9.23:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 9.23:1 | AAA |
| Destructive | 6.96:1 | AA |
Paste this into your globals.css to use Spiral in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.015 299.765);
--muted-foreground: oklch(0.49 0.003 299.931);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.654 0.17 127.862);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.348 0.211 279.145);
--secondary-foreground: oklch(0.9 0.056 298.981);
--accent: oklch(0.348 0.211 279.145);
--accent-foreground: oklch(0.9 0.056 298.981);
--destructive: oklch(0.561 0.163 42.98);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.654 0.17 127.862);
--chart-1: oklch(0.654 0.17 127.862);
--chart-2: oklch(0.348 0.211 279.145);
--chart-3: oklch(0.348 0.211 279.145);
--chart-4: oklch(0.371 0.226 278.787);
--chart-5: oklch(0.661 0.173 128.045);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.019 119.902);
--foreground: oklch(0.994 0.002 120.064);
--muted: oklch(0.166 0.023 297.588);
--muted-foreground: oklch(0.698 0.003 299.969);
--popover: oklch(0.129 0.019 119.902);
--popover-foreground: oklch(0.994 0.002 120.064);
--card: oklch(0.129 0.019 119.902);
--card-foreground: oklch(0.994 0.002 120.064);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.654 0.17 127.862);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.348 0.211 279.145);
--secondary-foreground: oklch(0.9 0.056 298.981);
--accent: oklch(0.348 0.211 279.145);
--accent-foreground: oklch(0.9 0.056 298.981);
--destructive: oklch(0.687 0.19 44.419);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.654 0.17 127.862);
--chart-1: oklch(0.654 0.17 127.862);
--chart-2: oklch(0.348 0.211 279.145);
--chart-3: oklch(0.348 0.211 279.145);
--chart-4: oklch(0.371 0.226 278.787);
--chart-5: oklch(0.661 0.173 128.045);
}