Violence is a shadcn/ui theme built around a light blue primary color (#b7dcf0) with light blue accents (#b7c0f0). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the light blue primary (#b7dcf0) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #030607black |
| Foreground | #02090dblack | #ffffffwhite |
| Card | #f8fbfcghostwhite | #030607black |
| Card foreground | #02090dblack | #ffffffwhite |
| Popover | #f8fbfcghostwhite | #030607black |
| Popover foreground | #02090dblack | #ffffffwhite |
| Primary | #b7dcf0powderblue | #b7dcf0powderblue |
| Primary foreground | #144661darkslategray | #144661darkslategray |
| Secondary | #b7f0e8paleturquoise | #b7f0e8paleturquoise |
| Secondary foreground | #030d0bblack | #030d0bblack |
| Muted | #ecf3f2whitesmoke | #0c1312black |
| Muted foreground | #4d6662dimgray | #99b2aedarkgray |
| Accent | #b7c0f0lightsteelblue | #b7c0f0lightsteelblue |
| Accent foreground | #142061midnightblue | #142061midnightblue |
| Destructive | #8d2a0csaddlebrown | #eb4e1echocolate |
| Destructive foreground | #fbdad0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b7dcf0powderblue | #b7dcf0powderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 15.63:1 | AAA |
| Muted text | 5.51:1 | AA |
| Accent | 8.36:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 20.35:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 15.63:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 8.36:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Violence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.003 230.707);
--foreground: oklch(0.134 0.018 224.356);
--muted: oklch(0.959 0.008 186.393);
--muted-foreground: oklch(0.488 0.03 184.93);
--popover: oklch(0.985 0.003 230.707);
--popover-foreground: oklch(0.134 0.018 224.356);
--card: oklch(0.985 0.003 230.707);
--card-foreground: oklch(0.134 0.018 224.356);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.875 0.048 231.542);
--primary-foreground: oklch(0.376 0.07 236.773);
--secondary: oklch(0.915 0.059 184.855);
--secondary-foreground: oklch(0.145 0.019 185.266);
--accent: oklch(0.817 0.069 276.941);
--accent-foreground: oklch(0.281 0.117 269.404);
--destructive: oklch(0.434 0.139 36.043);
--destructive-foreground: oklch(0.913 0.039 37.606);
--ring: oklch(0.875 0.048 231.542);
--chart-1: oklch(0.875 0.048 231.542);
--chart-2: oklch(0.915 0.059 184.855);
--chart-3: oklch(0.817 0.069 276.941);
--chart-4: oklch(0.929 0.049 185.192);
--chart-5: oklch(0.875 0.05 231.589);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.009 225.882);
--foreground: oklch(1 0 180);
--muted: oklch(0.178 0.011 184.943);
--muted-foreground: oklch(0.744 0.028 185.614);
--popover: oklch(0.116 0.009 225.882);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.116 0.009 225.882);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.875 0.048 231.542);
--primary-foreground: oklch(0.376 0.07 236.773);
--secondary: oklch(0.915 0.059 184.855);
--secondary-foreground: oklch(0.145 0.019 185.266);
--accent: oklch(0.817 0.069 276.941);
--accent-foreground: oklch(0.281 0.117 269.404);
--destructive: oklch(0.637 0.202 36.132);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.875 0.048 231.542);
--chart-1: oklch(0.875 0.048 231.542);
--chart-2: oklch(0.915 0.059 184.855);
--chart-3: oklch(0.817 0.069 276.941);
--chart-4: oklch(0.929 0.049 185.192);
--chart-5: oklch(0.875 0.05 231.589);
}