Violent is a shadcn/ui theme built around a muted deep green primary color (#364c2a) with muted deep green accents (#2a4c2f). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#364c2a) on a neutral background (#050704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050704black |
| Foreground | #040802black | #fcfdfcwhite |
| Card | #ffffffwhite | #050704black |
| Card foreground | #040802black | #fcfdfcwhite |
| Popover | #ffffffwhite | #050704black |
| Popover foreground | #040802black | #fcfdfcwhite |
| Primary | #364c2adarkslategray | #364c2adarkslategray |
| Primary foreground | #d0e0c7lightgrey | #d0e0c7lightgrey |
| Secondary | #474c2adarkolivegreen | #474c2adarkolivegreen |
| Secondary foreground | #dce0c7lightgrey | #dce0c7lightgrey |
| Muted | #eff1e5linen | #191a0eblack |
| Muted foreground | #61625bdimgray | #a3a49ddarkgray |
| Accent | #2a4c2fdarkslategray | #2a4c2fdarkslategray |
| Accent foreground | #c7e0cblightgrey | #c7e0cblightgrey |
| Destructive | #c23405firebrick | #e53e06orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #364c2adarkslategray | #364c2adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 6.68:1 | AA |
| Muted text | 5.37:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 5.54:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 6.68:1 | AA |
| Muted text | 6.97:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 4.19:1 | AA Large |
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.126 0.022 132.564);
--muted: oklch(0.952 0.016 113.615);
--muted-foreground: oklch(0.493 0.012 113.753);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.022 132.564);
--card: oklch(1 0 180);
--card-foreground: oklch(0.126 0.022 132.564);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.387 0.061 135.301);
--primary-foreground: oklch(0.888 0.038 134.466);
--secondary: oklch(0.401 0.053 115.808);
--secondary-foreground: oklch(0.898 0.034 114.006);
--accent: oklch(0.38 0.063 147.768);
--accent-foreground: oklch(0.883 0.039 149.649);
--destructive: oklch(0.539 0.185 35.406);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.387 0.061 135.301);
--chart-1: oklch(0.387 0.061 135.301);
--chart-2: oklch(0.401 0.053 115.808);
--chart-3: oklch(0.38 0.063 147.768);
--chart-4: oklch(0.436 0.058 115.854);
--chart-5: oklch(0.391 0.067 135.425);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.012 133.33);
--foreground: oklch(0.994 0.003 134.234);
--muted: oklch(0.213 0.022 115.242);
--muted-foreground: oklch(0.717 0.011 113.587);
--popover: oklch(0.121 0.012 133.33);
--popover-foreground: oklch(0.994 0.003 134.234);
--card: oklch(0.121 0.012 133.33);
--card-foreground: oklch(0.994 0.003 134.234);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.387 0.061 135.301);
--primary-foreground: oklch(0.888 0.038 134.466);
--secondary: oklch(0.401 0.053 115.808);
--secondary-foreground: oklch(0.898 0.034 114.006);
--accent: oklch(0.38 0.063 147.768);
--accent-foreground: oklch(0.883 0.039 149.649);
--destructive: oklch(0.609 0.21 35.137);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.387 0.061 135.301);
--chart-1: oklch(0.387 0.061 135.301);
--chart-2: oklch(0.401 0.053 115.808);
--chart-3: oklch(0.38 0.063 147.768);
--chart-4: oklch(0.436 0.058 115.854);
--chart-5: oklch(0.391 0.067 135.425);
}