Hate for shadcn/ui

Hate is a shadcn/ui theme built around a vivid green primary color (#28a90f) with vivid green accents (#0fa942). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#28a90f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#081406black
#f7f8f7whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#081406black
#f7f8f7whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#081406black
#f7f8f7whitesmoke
Primary
#28a90fforestgreen
#28a90fforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#76a90folivedrab
#76a90folivedrab
Secondary foreground
#000000black
#000000black
Muted
#f3f5efwhitesmoke
#0e100ablack
Muted foreground
#686b61dimgray
#9b9e94darkgray
Accent
#0fa942forestgreen
#0fa942forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#650e06maroon
#f34939tomato
Destructive foreground
#faaba3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#28a90fforestgreen
#28a90fforestgreen

Contrast

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

Light mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button3.10:1AA Large
Secondary button7.43:1AAA
Muted text4.96:1AA
Accent3.10:1AA Large
Destructive7.04:1AAA
Dark mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button3.10:1AA Large
Secondary button7.43:1AAA
Muted text7.03:1AAA
Accent3.10:1AA Large
Destructive3.59:1AA Large

CSS variables

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.174 0.033 139.624);
  --muted: oklch(0.968 0.009 121.638);
  --muted-foreground: oklch(0.522 0.016 121.995);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.174 0.033 139.624);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.174 0.033 139.624);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.641 0.207 141.291);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.673 0.173 128.425);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.641 0.185 147.472);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.329 0.121 30.203);
  --destructive-foreground: oklch(0.814 0.094 25.089);
  --ring: oklch(0.641 0.207 141.291);
  --chart-1: oklch(0.641 0.207 141.291);
  --chart-2: oklch(0.673 0.173 128.425);
  --chart-3: oklch(0.641 0.185 147.472);
  --chart-4: oklch(0.714 0.184 128.491);
  --chart-5: oklch(0.648 0.211 141.373);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.002 140.528);
  --muted: oklch(0.168 0.013 122.791);
  --muted-foreground: oklch(0.694 0.015 121.845);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.002 140.528);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.978 0.002 140.528);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.641 0.207 141.291);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.673 0.173 128.425);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.641 0.185 147.472);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.648 0.21 29.245);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.207 141.291);
  --chart-1: oklch(0.641 0.207 141.291);
  --chart-2: oklch(0.673 0.173 128.425);
  --chart-3: oklch(0.641 0.185 147.472);
  --chart-4: oklch(0.714 0.184 128.491);
  --chart-5: oklch(0.648 0.211 141.373);
}