Collision is a shadcn/ui theme built around a green primary color (#279b46) with orange accents (#9b4627). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#279b46) on a green-tinted background (#041007).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #041007black |
| Foreground | #020d05black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #051409black |
| Card foreground | #010903black | #ffffffwhite |
| Popover | #fcfcfcsnow | #051409black |
| Popover foreground | #010903black | #ffffffwhite |
| Primary | #279b46seagreen | #279b46seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #46279bdarkslateblue | #46279bdarkslateblue |
| Secondary foreground | #f8f7fdghostwhite | #f8f7fdghostwhite |
| Muted | #f1eff5whitesmoke | #0b0a10black |
| Muted foreground | #423f4adarkslategray | #b8b5c0silver |
| Accent | #9b4627sienna | #9b4627sienna |
| Accent foreground | #fdf8f7snow | #fdf8f7snow |
| Destructive | #6e2b0csaddlebrown | #e96e35tomato |
| Destructive foreground | #f7cab6peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #279b46seagreen | #279b46seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 3.58:1 | AA Large |
| Secondary button | 9.76:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 6.05:1 | AA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 3.58:1 | AA Large |
| Secondary button | 9.76:1 | AAA |
| Muted text | 9.77:1 | AAA |
| Accent | 6.05:1 | AA |
| Destructive | 6.72:1 | AA |
Paste this into your globals.css to use Collision in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.03 153.376);
--muted: oklch(0.956 0.008 298.421);
--muted-foreground: oklch(0.376 0.019 297.681);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.125 0.025 153.728);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.025 153.728);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.607 0.16 147.858);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.39 0.175 287.472);
--secondary-foreground: oklch(0.979 0.008 298.419);
--accent: oklch(0.498 0.123 39.828);
--accent-foreground: oklch(0.984 0.005 41.262);
--destructive: oklch(0.381 0.104 42.164);
--destructive-foreground: oklch(0.873 0.058 46.219);
--ring: oklch(0.607 0.16 147.858);
--chart-1: oklch(0.607 0.16 147.858);
--chart-2: oklch(0.39 0.175 287.472);
--chart-3: oklch(0.498 0.123 39.828);
--chart-4: oklch(0.411 0.186 287.316);
--chart-5: oklch(0.615 0.165 147.582);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.026 152.926);
--foreground: oklch(0.993 0.002 154.493);
--muted: oklch(0.149 0.013 297.043);
--muted-foreground: oklch(0.778 0.016 298.212);
--popover: oklch(0.174 0.031 151.896);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.174 0.031 151.896);
--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.607 0.16 147.858);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.39 0.175 287.472);
--secondary-foreground: oklch(0.979 0.008 298.419);
--accent: oklch(0.498 0.123 39.828);
--accent-foreground: oklch(0.984 0.005 41.262);
--destructive: oklch(0.676 0.167 43.264);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.607 0.16 147.858);
--chart-1: oklch(0.607 0.16 147.858);
--chart-2: oklch(0.39 0.175 287.472);
--chart-3: oklch(0.498 0.123 39.828);
--chart-4: oklch(0.411 0.186 287.316);
--chart-5: oklch(0.615 0.165 147.582);
}