Injury is a shadcn/ui theme built around a vivid violet primary color (#bb6cf4) with vivid green accents (#a5f46c). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid violet primary (#bb6cf4) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030104black |
| Foreground | #0e0614black | #fdfcfdwhite |
| Card | #faf7fdghostwhite | #060208black |
| Card foreground | #0b0510black | #ffffffwhite |
| Popover | #fdfbfewhite | #030104black |
| Popover foreground | #0e0614black | #fdfcfdwhite |
| Primary | #bb6cf4mediumorchid | #bb6cf4mediumorchid |
| Primary foreground | #1a032bblack | #1a032bblack |
| Secondary | #a5f46clightgreen | #a5f46clightgreen |
| Secondary foreground | #142b03black | #142b03black |
| Muted | #edeeecwhitesmoke | #121311black |
| Muted foreground | #40413edarkslategray | #bfc1besilver |
| Accent | #a5f46clightgreen | #a5f46clightgreen |
| Accent foreground | #142b03black | #142b03black |
| Destructive | #b13a06firebrick | #ec4d09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bb6cf4mediumorchid | #bb6cf4mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 11.43:1 | AAA |
| Muted text | 8.84:1 | AAA |
| Accent | 11.43:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 20.31:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 11.43:1 | AAA |
| Muted text | 10.29:1 | AAA |
| Accent | 11.43:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Injury in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 311.688);
--foreground: oklch(0.143 0.033 310.606);
--muted: oklch(0.948 0.003 131.751);
--muted-foreground: oklch(0.373 0.005 131.828);
--popover: oklch(0.99 0.004 311.688);
--popover-foreground: oklch(0.143 0.033 310.606);
--card: oklch(0.98 0.009 311.651);
--card-foreground: oklch(0.131 0.029 311.72);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.676 0.203 308.894);
--primary-foreground: oklch(0.177 0.078 307.403);
--secondary: oklch(0.887 0.187 134.04);
--secondary-foreground: oklch(0.259 0.07 134.838);
--accent: oklch(0.887 0.187 134.04);
--accent-foreground: oklch(0.259 0.07 134.838);
--destructive: oklch(0.516 0.164 38.476);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.676 0.203 308.894);
--chart-1: oklch(0.676 0.203 308.894);
--chart-2: oklch(0.887 0.187 134.04);
--chart-3: oklch(0.887 0.187 134.04);
--chart-4: oklch(0.896 0.171 133.712);
--chart-5: oklch(0.675 0.209 308.761);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.019 313.619);
--foreground: oklch(0.991 0.002 311.71);
--muted: oklch(0.184 0.005 131.935);
--muted-foreground: oklch(0.808 0.004 131.764);
--popover: oklch(0.082 0.019 313.619);
--popover-foreground: oklch(0.991 0.002 311.71);
--card: oklch(0.103 0.024 313.619);
--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.676 0.203 308.894);
--primary-foreground: oklch(0.177 0.078 307.403);
--secondary: oklch(0.887 0.187 134.04);
--secondary-foreground: oklch(0.259 0.07 134.838);
--accent: oklch(0.887 0.187 134.04);
--accent-foreground: oklch(0.259 0.07 134.838);
--destructive: oklch(0.637 0.206 37.942);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.676 0.203 308.894);
--chart-1: oklch(0.676 0.203 308.894);
--chart-2: oklch(0.887 0.187 134.04);
--chart-3: oklch(0.887 0.187 134.04);
--chart-4: oklch(0.896 0.171 133.712);
--chart-5: oklch(0.675 0.209 308.761);
}