Hate is a shadcn/ui theme built around a vivid yellow primary color (#e6e33d) with vivid purple accents (#e33de6). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid yellow primary (#e6e33d) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #030302black |
| Foreground | #151405black | #fafaf5whitesmoke |
| Card | #fcfbf8snow | #030302black |
| Card foreground | #151405black | #fafaf5whitesmoke |
| Popover | #fcfbf8snow | #030302black |
| Popover foreground | #151405black | #fafaf5whitesmoke |
| Primary | #e6e33dgreenyellow | #e6e33dgreenyellow |
| Primary foreground | #4d4c0adarkolivegreen | #4d4c0adarkolivegreen |
| Secondary | #3de6e3turquoise | #3de6e3turquoise |
| Secondary foreground | #0a4d4cdarkslategray | #0a4d4cdarkslategray |
| Muted | #d3e8e8gainsboro | #172c2bdarkslategray |
| Muted foreground | #424c4cdarkslategray | #b3bdbcsilver |
| Accent | #e33de6mediumorchid | #e33de6mediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #67210amaroon | #db4614chocolate |
| Destructive foreground | #f7beablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e6e33dgreenyellow | #e6e33dgreenyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.93:1 | AAA |
| Text on card | 17.93:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 6.97:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 7.20:1 | AAA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 7.65:1 | AAA |
| Accent | 6.07:1 | AA |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Hate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 105.693);
--foreground: oklch(0.188 0.029 108.06);
--muted: oklch(0.917 0.022 195.551);
--muted-foreground: oklch(0.409 0.013 195.434);
--popover: oklch(0.989 0.004 105.693);
--popover-foreground: oklch(0.188 0.029 108.06);
--card: oklch(0.989 0.004 105.693);
--card-foreground: oklch(0.188 0.029 108.06);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.891 0.175 108.492);
--primary-foreground: oklch(0.404 0.082 108.536);
--secondary: oklch(0.842 0.132 193.233);
--secondary-foreground: oklch(0.381 0.061 193.118);
--accent: oklch(0.668 0.265 327.322);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.352 0.106 37.474);
--destructive-foreground: oklch(0.848 0.071 39.228);
--ring: oklch(0.891 0.175 108.492);
--chart-1: oklch(0.891 0.175 108.492);
--chart-2: oklch(0.842 0.132 193.233);
--chart-3: oklch(0.668 0.265 327.322);
--chart-4: oklch(0.849 0.128 193.383);
--chart-5: oklch(0.9 0.179 108.512);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.008 107.087);
--foreground: oklch(0.983 0.006 105.731);
--muted: oklch(0.274 0.027 194.312);
--muted-foreground: oklch(0.789 0.011 195.73);
--popover: oklch(0.099 0.008 107.087);
--popover-foreground: oklch(0.983 0.006 105.731);
--card: oklch(0.099 0.008 107.087);
--card-foreground: oklch(0.983 0.006 105.731);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.891 0.175 108.492);
--primary-foreground: oklch(0.404 0.082 108.536);
--secondary: oklch(0.842 0.132 193.233);
--secondary-foreground: oklch(0.381 0.061 193.118);
--accent: oklch(0.668 0.265 327.322);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.602 0.194 36.556);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.891 0.175 108.492);
--chart-1: oklch(0.891 0.175 108.492);
--chart-2: oklch(0.842 0.132 193.233);
--chart-3: oklch(0.668 0.265 327.322);
--chart-4: oklch(0.849 0.128 193.383);
--chart-5: oklch(0.9 0.179 108.512);
}