Vicious is a shadcn/ui theme built around a near-black primary color (#020303) with near-black accents (#020203). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the near-black primary (#020303) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfdwhite | #000000black |
| Foreground | #010609black | #fcfdfdwhite |
| Card | #f8fbfcghostwhite | #030303black |
| Card foreground | #010305black | #ffffffwhite |
| Popover | #fbfdfdwhite | #000000black |
| Popover foreground | #010609black | #fcfdfdwhite |
| Primary | #020303black | #020303black |
| Primary foreground | #969ea2darkgray | #969ea2darkgray |
| Secondary | #020303black | #020303black |
| Secondary foreground | #96a2a0darkgray | #96a2a0darkgray |
| Muted | #cfe7e3gainsboro | #18302cdarkslategray |
| Muted foreground | #5c6160dimgray | #9ea3a3darkgray |
| Accent | #020203black | #020203black |
| Accent foreground | #9698a2darkgray | #9698a2darkgray |
| Destructive | #9a2409firebrick | #ec370eorangered |
| Destructive foreground | #fddfd8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020303black | #020303black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 4.87:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 5.50:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Vicious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 228.774);
--foreground: oklch(0.117 0.017 220.564);
--muted: oklch(0.91 0.026 184.683);
--muted-foreground: oklch(0.488 0.007 185.06);
--popover: oklch(0.993 0.002 228.774);
--popover-foreground: oklch(0.117 0.017 220.564);
--card: oklch(0.985 0.004 228.797);
--card-foreground: oklch(0.093 0.013 220.564);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.092 0.001 228.018);
--primary-foreground: oklch(0.693 0.011 228.961);
--secondary: oklch(0.093 0.001 185.406);
--secondary-foreground: oklch(0.701 0.014 184.927);
--accent: oklch(0.091 0.001 276.728);
--accent-foreground: oklch(0.68 0.015 276.953);
--destructive: oklch(0.452 0.158 33.26);
--destructive-foreground: oklch(0.927 0.034 32.713);
--ring: oklch(0.092 0.001 228.018);
--chart-1: oklch(0.092 0.001 228.018);
--chart-2: oklch(0.093 0.001 185.406);
--chart-3: oklch(0.091 0.001 276.728);
--chart-4: oklch(0.147 0.002 185.1);
--chart-5: oklch(0.092 0.002 227.659);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 228.768);
--muted: oklch(0.287 0.031 182.107);
--muted-foreground: oklch(0.712 0.007 185.206);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 228.768);
--card: oklch(0.092 0 180);
--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.092 0.001 228.018);
--primary-foreground: oklch(0.693 0.011 228.961);
--secondary: oklch(0.093 0.001 185.406);
--secondary-foreground: oklch(0.701 0.014 184.927);
--accent: oklch(0.091 0.001 276.728);
--accent-foreground: oklch(0.68 0.015 276.953);
--destructive: oklch(0.616 0.222 32.918);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.092 0.001 228.018);
--chart-1: oklch(0.092 0.001 228.018);
--chart-2: oklch(0.093 0.001 185.406);
--chart-3: oklch(0.091 0.001 276.728);
--chart-4: oklch(0.147 0.002 185.1);
--chart-5: oklch(0.092 0.002 227.659);
}