Havoc is a shadcn/ui theme built around a light blue primary color (#b8c7ef) with light indigo accents (#c5b8ef). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the light blue primary (#b8c7ef) on a blue-tinted background (#04060c).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #04060cblack |
| Foreground | #040711black | #ffffffwhite |
| Card | #f8f9fcghostwhite | #04060cblack |
| Card foreground | #040711black | #ffffffwhite |
| Popover | #f8f9fcghostwhite | #04060cblack |
| Popover foreground | #040711black | #ffffffwhite |
| Primary | #b8c7eflightsteelblue | #b8c7eflightsteelblue |
| Primary foreground | #162960midnightblue | #162960midnightblue |
| Secondary | #b8e2efpowderblue | #b8e2efpowderblue |
| Secondary foreground | #164e60darkslategray | #164e60darkslategray |
| Muted | #d6dadbgainsboro | #242729darkslategray |
| Muted foreground | #4b5d62dimgray | #9daeb4darkgray |
| Accent | #c5b8eflightsteelblue | #c5b8eflightsteelblue |
| Accent foreground | #271660midnightblue | #271660midnightblue |
| Destructive | #ca3102firebrick | #fd450dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8c7eflightsteelblue | #b8c7eflightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 8.19:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 4.90:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 5.32:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 8.19:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 6.52:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Havoc in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 270.084);
--foreground: oklch(0.131 0.023 263.136);
--muted: oklch(0.886 0.004 217.769);
--muted-foreground: oklch(0.465 0.023 218.181);
--popover: oklch(0.982 0.004 270.084);
--popover-foreground: oklch(0.131 0.023 263.136);
--card: oklch(0.982 0.004 270.084);
--card-foreground: oklch(0.131 0.023 263.136);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.832 0.059 269.406);
--primary-foreground: oklch(0.302 0.1 265.627);
--secondary: oklch(0.888 0.047 218.231);
--secondary-foreground: oklch(0.397 0.064 222.386);
--accent: oklch(0.813 0.077 295.331);
--accent-foreground: oklch(0.277 0.122 285.963);
--destructive: oklch(0.55 0.195 34.351);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.832 0.059 269.406);
--chart-1: oklch(0.832 0.059 269.406);
--chart-2: oklch(0.888 0.047 218.231);
--chart-3: oklch(0.813 0.077 295.331);
--chart-4: oklch(0.907 0.039 218.1);
--chart-5: oklch(0.83 0.061 269.363);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.016 263.251);
--foreground: oklch(1 0 180);
--muted: oklch(0.272 0.005 217.876);
--muted-foreground: oklch(0.74 0.021 217.945);
--popover: oklch(0.121 0.016 263.251);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.016 263.251);
--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.832 0.059 269.406);
--primary-foreground: oklch(0.302 0.1 265.627);
--secondary: oklch(0.888 0.047 218.231);
--secondary-foreground: oklch(0.397 0.064 222.386);
--accent: oklch(0.813 0.077 295.331);
--accent-foreground: oklch(0.277 0.122 285.963);
--destructive: oklch(0.656 0.227 34.763);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.832 0.059 269.406);
--chart-1: oklch(0.832 0.059 269.406);
--chart-2: oklch(0.888 0.047 218.231);
--chart-3: oklch(0.813 0.077 295.331);
--chart-4: oklch(0.907 0.039 218.1);
--chart-5: oklch(0.83 0.061 269.363);
}