Violent is a shadcn/ui theme built around a muted green primary color (#b2cfaa) with muted purple accents (#c8aacf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#b2cfaa) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020302black |
| Foreground | #030802black | #fafaf9snow |
| Card | #ffffffwhite | #020302black |
| Card foreground | #030802black | #fafaf9snow |
| Popover | #ffffffwhite | #020302black |
| Popover foreground | #030802black | #fafaf9snow |
| Primary | #b2cfaasilver | #b2cfaasilver |
| Primary foreground | #1e2e1ablack | #1e2e1ablack |
| Secondary | #c8aacfplum | #c8aacfplum |
| Secondary foreground | #2a1a2edarkslategray | #2a1a2edarkslategray |
| Muted | #f4eff6whitesmoke | #0f0910black |
| Muted foreground | #66526bdimgray | #a894addarkgray |
| Accent | #c8aacfplum | #c8aacfplum |
| Accent foreground | #2a1a2edarkslategray | #2a1a2edarkslategray |
| Destructive | #db530achocolate | #f46315chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b2cfaasilver | #b2cfaasilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 8.49:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 3.98:1 | AA Large |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 8.49:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 6.64:1 | AA |
Paste this into your globals.css to use Violent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.021 137.782);
--muted: oklch(0.957 0.012 319.448);
--muted-foreground: oklch(0.468 0.046 319.465);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.021 137.782);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.021 137.782);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.823 0.06 139.432);
--primary-foreground: oklch(0.279 0.042 139.472);
--secondary: oklch(0.776 0.061 319.463);
--secondary-foreground: oklch(0.246 0.043 319.444);
--accent: oklch(0.776 0.061 319.463);
--accent-foreground: oklch(0.246 0.043 319.444);
--destructive: oklch(0.617 0.184 41.64);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.06 139.432);
--chart-1: oklch(0.823 0.06 139.432);
--chart-2: oklch(0.776 0.061 319.463);
--chart-3: oklch(0.776 0.061 319.463);
--chart-4: oklch(0.802 0.054 319.461);
--chart-5: oklch(0.826 0.066 139.433);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.01 138.479);
--foreground: oklch(0.985 0.002 139.444);
--muted: oklch(0.152 0.018 319.49);
--muted-foreground: oklch(0.693 0.042 319.46);
--popover: oklch(0.096 0.01 138.479);
--popover-foreground: oklch(0.985 0.002 139.444);
--card: oklch(0.096 0.01 138.479);
--card-foreground: oklch(0.985 0.002 139.444);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.823 0.06 139.432);
--primary-foreground: oklch(0.279 0.042 139.472);
--secondary: oklch(0.776 0.061 319.463);
--secondary-foreground: oklch(0.246 0.043 319.444);
--accent: oklch(0.776 0.061 319.463);
--accent-foreground: oklch(0.246 0.043 319.444);
--destructive: oklch(0.676 0.194 42.703);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.823 0.06 139.432);
--chart-1: oklch(0.823 0.06 139.432);
--chart-2: oklch(0.776 0.061 319.463);
--chart-3: oklch(0.776 0.061 319.463);
--chart-4: oklch(0.802 0.054 319.461);
--chart-5: oklch(0.826 0.066 139.433);
}