Violent is a shadcn/ui theme built around a vivid green primary color (#37ee17) with muted light green accents (#c2cec0). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#37ee17) on a green-tinted background (#060a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #060a05black |
| Foreground | #051203black | #f6f9f6whitesmoke |
| Card | #fbfefbwhite | #060a05black |
| Card foreground | #051203black | #f6f9f6whitesmoke |
| Popover | #fbfefbwhite | #060a05black |
| Popover foreground | #051203black | #f6f9f6whitesmoke |
| Primary | #37ee17limegreen | #37ee17limegreen |
| Primary foreground | #0b3404darkgreen | #0b3404darkgreen |
| Secondary | #d2d7d1lightgrey | #212e1fdarkslategray |
| Secondary foreground | #383f37darkslategray | #b6ccb3silver |
| Muted | #eff6eewhitesmoke | #0a1109black |
| Muted foreground | #626561dimgray | #9a9e9adarkgray |
| Accent | #c2cec0silver | #2d4828darkslategray |
| Accent foreground | #2a3428darkslategray | #c8dec4lightgrey |
| Destructive | #ba2e03firebrick | #f13b04orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #37ee17limegreen | #37ee17limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.92:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 8.85:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.38:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.05:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 8.85:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 7.05:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Violent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.006 141.053);
--foreground: oklch(0.162 0.038 139.264);
--muted: oklch(0.967 0.013 141.036);
--muted-foreground: oklch(0.504 0.007 141.033);
--popover: oklch(0.994 0.006 141.053);
--popover-foreground: oklch(0.162 0.038 139.264);
--card: oklch(0.994 0.006 141.053);
--card-foreground: oklch(0.162 0.038 139.264);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.826 0.27 141.519);
--primary-foreground: oklch(0.286 0.087 140.747);
--secondary: oklch(0.872 0.01 141.04);
--secondary-foreground: oklch(0.357 0.017 140.963);
--accent: oklch(0.838 0.024 141.002);
--accent-foreground: oklch(0.311 0.025 140.892);
--destructive: oklch(0.519 0.182 34.576);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.826 0.27 141.519);
--chart-1: oklch(0.826 0.27 141.519);
--chart-2: oklch(0.872 0.01 141.04);
--chart-3: oklch(0.838 0.024 141.002);
--chart-4: oklch(0.895 0.008 141.045);
--chart-5: oklch(0.835 0.274 141.592);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.015 140.072);
--foreground: oklch(0.979 0.005 141.054);
--muted: oklch(0.167 0.02 140.659);
--muted-foreground: oklch(0.694 0.007 141.044);
--popover: oklch(0.138 0.015 140.072);
--popover-foreground: oklch(0.979 0.005 141.054);
--card: oklch(0.138 0.015 140.072);
--card-foreground: oklch(0.979 0.005 141.054);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.826 0.27 141.519);
--primary-foreground: oklch(0.286 0.087 140.747);
--secondary: oklch(0.284 0.033 140.826);
--secondary-foreground: oklch(0.822 0.042 140.953);
--accent: oklch(0.371 0.063 140.747);
--accent-foreground: oklch(0.878 0.043 140.958);
--destructive: oklch(0.628 0.224 34.14);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.826 0.27 141.519);
--chart-1: oklch(0.826 0.27 141.519);
--chart-2: oklch(0.284 0.033 140.826);
--chart-3: oklch(0.371 0.063 140.747);
--chart-4: oklch(0.317 0.038 140.818);
--chart-5: oklch(0.835 0.274 141.592);
}