Hateful for shadcn/ui

Hateful is a shadcn/ui theme built around a deep green primary color (#0b2311) with deep orange accents (#23110b). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the deep green primary (#0b2311) on a green-tinted background (#040c06).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#040c06black
Foreground
#020d05black
#f8fcf9mintcream
Card
#f8fbf9mintcream
#051007black
Card foreground
#020903black
#fcfdfcwhite
Popover
#fcfdfcwhite
#040c06black
Popover foreground
#020d05black
#f8fcf9mintcream
Primary
#0b2311black
#0b2311black
Primary foreground
#3bbf5cmediumseagreen
#3bbf5cmediumseagreen
Secondary
#110b23black
#110b23black
Secondary foreground
#9b86damediumpurple
#9b86damediumpurple
Muted
#d9d4e8gainsboro
#1c172bblack
Muted foreground
#413f46darkslategray
#bbb9c0silver
Accent
#23110bblack
#23110bblack
Accent foreground
#da9b86darksalmon
#da9b86darksalmon
Destructive
#aa1b08firebrick
#f42b10orangered
Destructive foreground
#fee9e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b2311black
#0b2311black

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.39:1AAA
Primary button6.95:1AA
Secondary button6.22:1AA
Muted text7.15:1AAA
Accent7.79:1AAA
Destructive6.25:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.04:1AAA
Primary button6.95:1AA
Secondary button6.22:1AA
Muted text8.96:1AAA
Accent7.79:1AAA
Destructive4.04:1AA Large

CSS variables

Paste this into your globals.css to use Hateful in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 153.838);
  --foreground: oklch(0.143 0.028 152.792);
  --muted: oklch(0.879 0.028 297.248);
  --muted-foreground: oklch(0.372 0.011 297.279);
  --popover: oklch(0.993 0.002 153.838);
  --popover-foreground: oklch(0.143 0.028 152.792);
  --card: oklch(0.986 0.005 153.799);
  --card-foreground: oklch(0.124 0.024 153.056);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.231 0.046 149.622);
  --primary-foreground: oklch(0.712 0.18 147.928);
  --secondary: oklch(0.173 0.049 292.009);
  --secondary-foreground: oklch(0.673 0.123 294.355);
  --accent: oklch(0.202 0.033 39.162);
  --accent-foreground: oklch(0.745 0.082 39.21);
  --destructive: oklch(0.476 0.18 30.909);
  --destructive-foreground: oklch(0.951 0.023 26.615);
  --ring: oklch(0.231 0.046 149.622);
  --chart-1: oklch(0.231 0.046 149.622);
  --chart-2: oklch(0.173 0.049 292.009);
  --chart-3: oklch(0.202 0.033 39.162);
  --chart-4: oklch(0.198 0.062 291.154);
  --chart-5: oklch(0.233 0.049 149.395);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.021 153.142);
  --foreground: oklch(0.987 0.005 153.796);
  --muted: oklch(0.221 0.04 294.407);
  --muted-foreground: oklch(0.79 0.009 297.613);
  --popover: oklch(0.14 0.021 153.142);
  --popover-foreground: oklch(0.987 0.005 153.796);
  --card: oklch(0.157 0.025 152.392);
  --card-foreground: oklch(0.993 0.002 153.837);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.231 0.046 149.622);
  --primary-foreground: oklch(0.712 0.18 147.928);
  --secondary: oklch(0.173 0.049 292.009);
  --secondary-foreground: oklch(0.673 0.123 294.355);
  --accent: oklch(0.202 0.033 39.162);
  --accent-foreground: oklch(0.745 0.082 39.21);
  --destructive: oklch(0.622 0.235 30.885);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.231 0.046 149.622);
  --chart-1: oklch(0.231 0.046 149.622);
  --chart-2: oklch(0.173 0.049 292.009);
  --chart-3: oklch(0.202 0.033 39.162);
  --chart-4: oklch(0.198 0.062 291.154);
  --chart-5: oklch(0.233 0.049 149.395);
}