Accusation is a shadcn/ui theme built around a vivid deep green primary color (#02210c) with vivid deep purple accents (#210218). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#02210c) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #020d06black | #ffffffwhite |
| Card | #ffffffwhite | #010402black |
| Card foreground | #020d06black | #ffffffwhite |
| Popover | #ffffffwhite | #010402black |
| Popover foreground | #020d06black | #ffffffwhite |
| Primary | #02210cblack | #02210cblack |
| Primary foreground | #10e052limegreen | #10e052limegreen |
| Secondary | #210218black | #210218black |
| Secondary foreground | #f462c6hotpink | #f462c6hotpink |
| Muted | #f4ebf1whitesmoke | #140b11black |
| Muted foreground | #4a3f47darkslategray | #c0b5bcsilver |
| Accent | #210218black | #210218black |
| Accent foreground | #f462c6hotpink | #f462c6hotpink |
| Destructive | #ad3a10firebrick | #d74814chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #02210cblack | #02210cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 9.59:1 | AAA |
| Secondary button | 6.80:1 | AA |
| Muted text | 8.62:1 | AAA |
| Accent | 6.80:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 9.59:1 | AAA |
| Secondary button | 6.80:1 | AA |
| Muted text | 9.74:1 | AAA |
| Accent | 6.80:1 | AA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Accusation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.026 155.725);
--muted: oklch(0.95 0.012 336.805);
--muted-foreground: oklch(0.383 0.019 337.519);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.026 155.725);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.026 155.725);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.22 0.055 150.805);
--primary-foreground: oklch(0.791 0.235 146.577);
--secondary: oklch(0.173 0.065 342.474);
--secondary-foreground: oklch(0.711 0.209 341.99);
--accent: oklch(0.173 0.065 342.474);
--accent-foreground: oklch(0.711 0.209 341.99);
--destructive: oklch(0.509 0.158 37.768);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.22 0.055 150.805);
--chart-1: oklch(0.22 0.055 150.805);
--chart-2: oklch(0.173 0.065 342.474);
--chart-3: oklch(0.173 0.065 342.474);
--chart-4: oklch(0.211 0.081 343.812);
--chart-5: oklch(0.221 0.057 150.707);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.013 156.194);
--foreground: oklch(1 0 180);
--muted: oklch(0.164 0.019 338.644);
--muted-foreground: oklch(0.783 0.016 336.959);
--popover: oklch(0.097 0.013 156.194);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.097 0.013 156.194);
--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.22 0.055 150.805);
--primary-foreground: oklch(0.791 0.235 146.577);
--secondary: oklch(0.173 0.065 342.474);
--secondary-foreground: oklch(0.711 0.209 341.99);
--accent: oklch(0.173 0.065 342.474);
--accent-foreground: oklch(0.711 0.209 341.99);
--destructive: oklch(0.596 0.188 37.51);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.22 0.055 150.805);
--chart-1: oklch(0.22 0.055 150.805);
--chart-2: oklch(0.173 0.065 342.474);
--chart-3: oklch(0.173 0.065 342.474);
--chart-4: oklch(0.211 0.081 343.812);
--chart-5: oklch(0.221 0.057 150.707);
}