Vicious is a shadcn/ui theme built around a neutral gray primary color (#76766f) with neutral gray accents (#72766f). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#76766f) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #040401black | #fcfcf8snow |
| Card | #fcfcfcsnow | #0b0b04black |
| Card foreground | #000000black | #fdfdfbsnow |
| Popover | #fcfcfcsnow | #0b0b04black |
| Popover foreground | #000000black | #fdfdfbsnow |
| Primary | #76766fdimgray | #76766fdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #76736fdimgray | #76736fdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5dcd2gainsboro | #2d251ablack |
| Muted foreground | #5e554adarkolivegreen | #b5aca1darkgray |
| Accent | #72766fdimgray | #72766fdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9d3610saddlebrown | #e95d2bchocolate |
| Destructive foreground | #fceae3linen | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #76766fdimgray | #76766fdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.56:1 | AA |
| Secondary button | 4.70:1 | AA |
| Muted text | 5.40:1 | AA |
| Accent | 4.61:1 | AA |
| Destructive | 6.07:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 4.56:1 | AA |
| Secondary button | 4.70:1 | AA |
| Muted text | 6.75:1 | AA |
| Accent | 4.61:1 | AA |
| Destructive | 6.06:1 | AA |
Paste this into your globals.css to use Vicious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.013 110.364);
--muted: oklch(0.899 0.017 73.069);
--muted-foreground: oklch(0.455 0.021 72.791);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.564 0.01 109.048);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.557 0.007 73.125);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.561 0.011 130.629);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.477 0.145 38.101);
--destructive-foreground: oklch(0.949 0.022 41.142);
--ring: oklch(0.564 0.01 109.048);
--chart-1: oklch(0.564 0.01 109.048);
--chart-2: oklch(0.557 0.007 73.125);
--chart-3: oklch(0.561 0.011 130.629);
--chart-4: oklch(0.584 0.007 73.124);
--chart-5: oklch(0.574 0.021 109.363);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.015 110.234);
--foreground: oklch(0.99 0.005 108.81);
--muted: oklch(0.27 0.023 72.218);
--muted-foreground: oklch(0.748 0.019 73.015);
--popover: oklch(0.147 0.017 110.337);
--popover-foreground: oklch(0.995 0.003 108.759);
--card: oklch(0.147 0.017 110.337);
--card-foreground: oklch(0.995 0.003 108.759);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.564 0.01 109.048);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.557 0.007 73.125);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.561 0.011 130.629);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.652 0.184 38.931);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.564 0.01 109.048);
--chart-1: oklch(0.564 0.01 109.048);
--chart-2: oklch(0.557 0.007 73.125);
--chart-3: oklch(0.561 0.011 130.629);
--chart-4: oklch(0.584 0.007 73.124);
--chart-5: oklch(0.574 0.021 109.363);
}