Hate for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background17.93:1AAA
Text on card17.93:1AAA
Primary button6.54:1AA
Secondary button6.24:1AA
Muted text6.97:1AA
Accent6.07:1AA
Destructive7.20:1AAA
Dark mode
Text on background19.67:1AAA
Text on card19.67:1AAA
Primary button6.54:1AA
Secondary button6.24:1AA
Muted text7.65:1AAA
Accent6.07:1AA
Destructive4.27:1AA Large

CSS variables

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);
}