Vicious is a shadcn/ui theme built around a deep violet primary color (#2a1939) with deep teal accents (#19392a). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the deep violet primary (#2a1939) on a violet-tinted background (#08050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #08050bblack |
| Foreground | #0d0613black | #f8f4fawhitesmoke |
| Card | #fdfbfdsnow | #08050bblack |
| Card foreground | #0d0613black | #f8f4fawhitesmoke |
| Popover | #fdfbfdsnow | #08050bblack |
| Popover foreground | #0d0613black | #f8f4fawhitesmoke |
| Primary | #2a1939midnightblue | #2a1939midnightblue |
| Primary foreground | #c4aadaplum | #c4aadaplum |
| Secondary | #392a19darkslategray | #392a19darkslategray |
| Secondary foreground | #dac4aasilver | #dac4aasilver |
| Muted | #eae1d7gainsboro | #282015black |
| Muted foreground | #564d43darkolivegreen | #bcb3a9darkgray |
| Accent | #19392adarkslategray | #19392adarkslategray |
| Accent foreground | #aadac4lightblue | #aadac4lightblue |
| Destructive | #c63b15firebrick | #d94117chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a1939midnightblue | #2a1939midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 5.17:1 | AA |
| Text on background | 18.66:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 7.79:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Vicious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 310.41);
--foreground: oklch(0.143 0.03 309.142);
--muted: oklch(0.915 0.017 73.075);
--muted-foreground: oklch(0.427 0.021 72.754);
--popover: oklch(0.991 0.003 310.41);
--popover-foreground: oklch(0.143 0.03 309.142);
--card: oklch(0.991 0.003 310.41);
--card-foreground: oklch(0.143 0.03 309.142);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.252 0.062 307.959);
--primary-foreground: oklch(0.776 0.073 309.569);
--secondary: oklch(0.298 0.036 71.343);
--secondary-foreground: oklch(0.832 0.043 72.728);
--accent: oklch(0.314 0.046 162.648);
--accent-foreground: oklch(0.848 0.058 165.761);
--destructive: oklch(0.555 0.182 35.102);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.252 0.062 307.959);
--chart-1: oklch(0.252 0.062 307.959);
--chart-2: oklch(0.298 0.036 71.343);
--chart-3: oklch(0.314 0.046 162.648);
--chart-4: oklch(0.332 0.041 71.21);
--chart-5: oklch(0.251 0.066 307.718);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.018 311.574);
--foreground: oklch(0.973 0.008 310.357);
--muted: oklch(0.248 0.023 72.072);
--muted-foreground: oklch(0.773 0.018 73.028);
--popover: oklch(0.122 0.018 311.574);
--popover-foreground: oklch(0.973 0.008 310.357);
--card: oklch(0.122 0.018 311.574);
--card-foreground: oklch(0.973 0.008 310.357);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.252 0.062 307.959);
--primary-foreground: oklch(0.776 0.073 309.569);
--secondary: oklch(0.298 0.036 71.343);
--secondary-foreground: oklch(0.832 0.043 72.728);
--accent: oklch(0.314 0.046 162.648);
--accent-foreground: oklch(0.848 0.058 165.761);
--destructive: oklch(0.592 0.195 35.036);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.252 0.062 307.959);
--chart-1: oklch(0.252 0.062 307.959);
--chart-2: oklch(0.298 0.036 71.343);
--chart-3: oklch(0.314 0.046 162.648);
--chart-4: oklch(0.332 0.041 71.21);
--chart-5: oklch(0.251 0.066 307.718);
}