Hake for shadcn/ui

Hake is a shadcn/ui theme built around a muted green primary color (#a9d0ad) with muted teal accents (#a9d0c0). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#a9d0ad) on a green-tinted background (#060e07).

Color palette

TokenLightDark
Background
#fbfefbwhite
#060e07black
Foreground
#000000black
#ffffffwhite
Card
#fbfefbwhite
#060e07black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefbwhite
#060e07black
Popover foreground
#000000black
#ffffffwhite
Primary
#a9d0adsilver
#a9d0adsilver
Primary foreground
#192e1bblack
#192e1bblack
Secondary
#b9d0a9silver
#b9d0a9silver
Secondary foreground
#222e19black
#222e19black
Muted
#dce9d2gainsboro
#1f2d16black
Muted foreground
#57644fdimgray
#a4b09bdarkgray
Accent
#a9d0c0silver
#a9d0c0silver
Accent foreground
#192e25darkslategray
#192e25darkslategray
Destructive
#d91d08firebrick
#f73722orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a9d0adsilver
#a9d0adsilver

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.64:1AAA
Primary button8.50:1AAA
Secondary button8.60:1AAA
Muted text4.99:1AA
Accent8.54:1AAA
Destructive5.10:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button8.50:1AAA
Secondary button8.60:1AAA
Muted text6.42:1AA
Accent8.54:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 148.022);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.034 132.032);
  --muted-foreground: oklch(0.486 0.037 132.371);
  --popover: oklch(0.994 0.004 148.022);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.004 148.022);
  --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.82 0.064 147.21);
  --primary-foreground: oklch(0.278 0.044 146.22);
  --secondary: oklch(0.83 0.058 132.316);
  --secondary-foreground: oklch(0.284 0.04 133.03);
  --accent: oklch(0.825 0.046 167.967);
  --accent-foreground: oklch(0.281 0.031 165.941);
  --destructive: oklch(0.564 0.219 30.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.82 0.064 147.21);
  --chart-1: oklch(0.82 0.064 147.21);
  --chart-2: oklch(0.83 0.058 132.316);
  --chart-3: oklch(0.825 0.046 167.967);
  --chart-4: oklch(0.85 0.051 132.229);
  --chart-5: oklch(0.823 0.07 147.122);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.02 146.967);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.277 0.044 133.276);
  --muted-foreground: oklch(0.743 0.033 132.097);
  --popover: oklch(0.153 0.02 146.967);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.02 146.967);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.82 0.064 147.21);
  --primary-foreground: oklch(0.278 0.044 146.22);
  --secondary: oklch(0.83 0.058 132.316);
  --secondary-foreground: oklch(0.284 0.04 133.03);
  --accent: oklch(0.825 0.046 167.967);
  --accent-foreground: oklch(0.281 0.031 165.941);
  --destructive: oklch(0.636 0.229 30.485);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.82 0.064 147.21);
  --chart-1: oklch(0.82 0.064 147.21);
  --chart-2: oklch(0.83 0.058 132.316);
  --chart-3: oklch(0.825 0.046 167.967);
  --chart-4: oklch(0.85 0.051 132.229);
  --chart-5: oklch(0.823 0.07 147.122);
}