Hate is a shadcn/ui theme built around a near-black primary color (#030302) with near-black accents (#030302). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030302) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #050301black | #f8f7f7whitesmoke |
| Card | #fcfcfcsnow | #080602black |
| Card foreground | #000000black | #fafaf9snow |
| Popover | #ffffffwhite | #040301black |
| Popover foreground | #050301black | #f8f7f7whitesmoke |
| Primary | #030302black | #030302black |
| Primary foreground | #b4a083rosybrown | #b4a083rosybrown |
| Secondary | #030202black | #030202black |
| Secondary foreground | #b48783rosybrown | #b48783rosybrown |
| Muted | #e8cccalightgrey | #351a17black |
| Muted foreground | #585150dimgray | #afa7a7darkgray |
| Accent | #030302black | #030302black |
| Accent foreground | #b0b483darkkhaki | #b0b483darkkhaki |
| Destructive | #881802darkred | #fb2d04orangered |
| Destructive foreground | #fec8bepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030302black | #030302black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 6.64:1 | AA |
| Muted text | 5.14:1 | AA |
| Accent | 9.52:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 6.64:1 | AA |
| Muted text | 6.79:1 | AA |
| Accent | 9.52:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Hate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.016 86.572);
--muted: oklch(0.868 0.031 23.963);
--muted-foreground: oklch(0.441 0.01 23.821);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.016 86.572);
--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.094 0.005 79.91);
--primary-foreground: oklch(0.715 0.047 76.126);
--secondary: oklch(0.089 0.005 25.268);
--secondary-foreground: oklch(0.666 0.057 24.616);
--accent: oklch(0.097 0.007 111.009);
--accent-foreground: oklch(0.755 0.068 111.881);
--destructive: oklch(0.406 0.149 32.675);
--destructive-foreground: oklch(0.879 0.063 31.361);
--ring: oklch(0.094 0.005 79.91);
--chart-1: oklch(0.094 0.005 79.91);
--chart-2: oklch(0.089 0.005 25.268);
--chart-3: oklch(0.097 0.007 111.009);
--chart-4: oklch(0.141 0.009 25.024);
--chart-5: oklch(0.094 0.005 80.289);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.01 83.245);
--foreground: oklch(0.978 0.002 76.645);
--muted: oklch(0.255 0.044 26.089);
--muted-foreground: oklch(0.736 0.009 23.702);
--popover: oklch(0.096 0.01 83.245);
--popover-foreground: oklch(0.978 0.002 76.645);
--card: oklch(0.121 0.012 83.245);
--card-foreground: oklch(0.985 0.001 76.647);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.094 0.005 79.91);
--primary-foreground: oklch(0.715 0.047 76.126);
--secondary: oklch(0.089 0.005 25.268);
--secondary-foreground: oklch(0.666 0.057 24.616);
--accent: oklch(0.097 0.007 111.009);
--accent-foreground: oklch(0.755 0.068 111.881);
--destructive: oklch(0.636 0.241 31.786);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.094 0.005 79.91);
--chart-1: oklch(0.094 0.005 79.91);
--chart-2: oklch(0.089 0.005 25.268);
--chart-3: oklch(0.097 0.007 111.009);
--chart-4: oklch(0.141 0.009 25.024);
--chart-5: oklch(0.094 0.005 80.289);
}