Violent is a shadcn/ui theme built around a yellow primary color (#e1bd51) with purple accents (#bd51e1). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the yellow primary (#e1bd51) on a yellow-tinted background (#0a0905).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #0a0905black |
| Foreground | #100d04black | #f8f8f6whitesmoke |
| Card | #fcfaf2floralwhite | #0e0c07black |
| Card foreground | #0c0a03black | #fbfaf9snow |
| Popover | #fdfcf7snow | #0a0905black |
| Popover foreground | #100d04black | #f8f8f6whitesmoke |
| Primary | #e1bd51sandybrown | #e1bd51sandybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #51e1bdmediumturquoise | #51e1bdmediumturquoise |
| Secondary foreground | #000000black | #000000black |
| Muted | #cce5dfgainsboro | #1a332ddarkslategray |
| Muted foreground | #394643darkslategray | #b9c6c2silver |
| Accent | #bd51e1mediumorchid | #bd51e1mediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #af230dfirebrick | #f04c33tomato |
| Destructive foreground | #fef3f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1bd51sandybrown | #e1bd51sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.86:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 11.62:1 | AAA |
| Secondary button | 12.89:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 5.42:1 | AA |
| Destructive | 6.27:1 | AA |
| Text on background | 18.73:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 11.62:1 | AAA |
| Secondary button | 12.89:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 5.42:1 | AA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Violent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 91.47);
--foreground: oklch(0.16 0.019 93.789);
--muted: oklch(0.903 0.028 178.955);
--muted-foreground: oklch(0.382 0.017 178.509);
--popover: oklch(0.99 0.007 91.47);
--popover-foreground: oklch(0.16 0.019 93.789);
--card: oklch(0.985 0.01 91.499);
--card-foreground: oklch(0.144 0.017 95.752);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.81 0.132 90.629);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.824 0.134 173.051);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.633 0.223 316.617);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.491 0.179 31.508);
--destructive-foreground: oklch(0.971 0.013 28.001);
--ring: oklch(0.81 0.132 90.629);
--chart-1: oklch(0.81 0.132 90.629);
--chart-2: oklch(0.824 0.134 173.051);
--chart-3: oklch(0.633 0.223 316.617);
--chart-4: oklch(0.835 0.127 173.805);
--chart-5: oklch(0.816 0.136 90.467);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.01 94.571);
--foreground: oklch(0.979 0.002 91.427);
--muted: oklch(0.298 0.034 175.981);
--muted-foreground: oklch(0.815 0.015 179.346);
--popover: oklch(0.139 0.01 94.571);
--popover-foreground: oklch(0.979 0.002 91.427);
--card: oklch(0.154 0.012 92.869);
--card-foreground: oklch(0.986 0.001 91.421);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.81 0.132 90.629);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.824 0.134 173.051);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.633 0.223 316.617);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.644 0.204 31.573);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.81 0.132 90.629);
--chart-1: oklch(0.81 0.132 90.629);
--chart-2: oklch(0.824 0.134 173.051);
--chart-3: oklch(0.633 0.223 316.617);
--chart-4: oklch(0.835 0.127 173.805);
--chart-5: oklch(0.816 0.136 90.467);
}