Violent is a shadcn/ui theme built around a deep violet primary color (#130e20) with deep green accents (#1b200e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#130e20) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040307black |
| Foreground | #070410black | #f9f8fbghostwhite |
| Card | #ffffffwhite | #040307black |
| Card foreground | #070410black | #f9f8fbghostwhite |
| Popover | #ffffffwhite | #040307black |
| Popover foreground | #070410black | #f9f8fbghostwhite |
| Primary | #130e20black | #130e20black |
| Primary foreground | #a292cemediumpurple | #a292cemediumpurple |
| Secondary | #1b200eblack | #1b200eblack |
| Secondary foreground | #93ac4dyellowgreen | #93ac4dyellowgreen |
| Muted | #f3f3f1whitesmoke | #0d0e0cblack |
| Muted foreground | #616558dimgray | #a4a79adarkgray |
| Accent | #1b200eblack | #1b200eblack |
| Accent foreground | #93ac4dyellowgreen | #93ac4dyellowgreen |
| Destructive | #7a2701saddlebrown | #f95001orangered |
| Destructive foreground | #ffc7aepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #130e20black | #130e20black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 6.56:1 | AA |
| Muted text | 5.38:1 | AA |
| Accent | 6.56:1 | AA |
| Destructive | 6.63:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 6.56:1 | AA |
| Muted text | 7.91:1 | AAA |
| Accent | 6.56:1 | AA |
| Destructive | 3.41: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.123 0.031 296.978);
--muted: oklch(0.963 0.002 118.604);
--muted-foreground: oklch(0.499 0.021 119.3);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.031 296.978);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.031 296.978);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.181 0.035 294.87);
--primary-foreground: oklch(0.696 0.088 296.274);
--secondary: oklch(0.232 0.032 121.119);
--secondary-foreground: oklch(0.706 0.125 122.095);
--accent: oklch(0.232 0.032 121.119);
--accent-foreground: oklch(0.706 0.125 122.095);
--destructive: oklch(0.395 0.123 40.152);
--destructive-foreground: oklch(0.873 0.072 46.086);
--ring: oklch(0.181 0.035 294.87);
--chart-1: oklch(0.181 0.035 294.87);
--chart-2: oklch(0.232 0.032 121.119);
--chart-3: oklch(0.232 0.032 121.119);
--chart-4: oklch(0.273 0.04 121.353);
--chart-5: oklch(0.179 0.038 294.5);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.013 298.489);
--foreground: oklch(0.982 0.004 298.491);
--muted: oklch(0.16 0.003 118.918);
--muted-foreground: oklch(0.723 0.019 119.029);
--popover: oklch(0.106 0.013 298.489);
--popover-foreground: oklch(0.982 0.004 298.491);
--card: oklch(0.106 0.013 298.489);
--card-foreground: oklch(0.982 0.004 298.491);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.181 0.035 294.87);
--primary-foreground: oklch(0.696 0.088 296.274);
--secondary: oklch(0.232 0.032 121.119);
--secondary-foreground: oklch(0.706 0.125 122.095);
--accent: oklch(0.232 0.032 121.119);
--accent-foreground: oklch(0.706 0.125 122.095);
--destructive: oklch(0.66 0.216 37.989);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.181 0.035 294.87);
--chart-1: oklch(0.181 0.035 294.87);
--chart-2: oklch(0.232 0.032 121.119);
--chart-3: oklch(0.232 0.032 121.119);
--chart-4: oklch(0.273 0.04 121.353);
--chart-5: oklch(0.179 0.038 294.5);
}