Hard-to-find for shadcn/ui

Hard-to-find is a shadcn/ui theme built around a green primary color (#668141) with muted light green accents (#d9ddd5). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#668141) on a green-tinted background (#0b1004).

Color palette

TokenLightDark
Background
#fdfefbwhite
#0b1004black
Foreground
#0e1504black
#ffffffwhite
Card
#fdfefbwhite
#0b1004black
Card foreground
#0e1504black
#ffffffwhite
Popover
#fdfefbwhite
#0b1004black
Popover foreground
#0e1504black
#ffffffwhite
Primary
#668141olivedrab
#668141olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d9ddd5gainsboro
#1d2018black
Secondary foreground
#414739darkslategray
#b7bfabsilver
Muted
#e4e9ddgainsboro
#1d2216black
Muted foreground
#4d5247darkslategray
#b3b8addarkgray
Accent
#d9ddd5gainsboro
#1d2018black
Accent foreground
#414739darkslategray
#b7bfabsilver
Destructive
#c01a11firebrick
#ed3a31crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#668141olivedrab
#668141olivedrab

Contrast

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

Light mode
Text on background18.34:1AAA
Text on card18.34:1AAA
Primary button4.39:1AA Large
Secondary button6.98:1AA
Muted text6.49:1AA
Accent6.98:1AA
Destructive6.17:1AA
Dark mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button4.39:1AA Large
Secondary button8.69:1AAA
Muted text8.03:1AAA
Accent8.69:1AAA
Destructive3.99:1AA Large

CSS variables

Paste this into your globals.css to use Hard-to-find in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 125.09);
  --foreground: oklch(0.184 0.035 127.081);
  --muted: oklch(0.927 0.017 125.294);
  --muted-foreground: oklch(0.431 0.018 125.637);
  --popover: oklch(0.995 0.003 125.09);
  --popover-foreground: oklch(0.184 0.035 127.081);
  --card: oklch(0.995 0.003 125.09);
  --card-foreground: oklch(0.184 0.035 127.081);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.566 0.095 127.756);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.892 0.012 125.231);
  --secondary-foreground: oklch(0.387 0.024 125.937);
  --accent: oklch(0.892 0.012 125.231);
  --accent-foreground: oklch(0.387 0.024 125.937);
  --destructive: oklch(0.517 0.199 29.308);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.566 0.095 127.756);
  --chart-1: oklch(0.566 0.095 127.756);
  --chart-2: oklch(0.892 0.012 125.231);
  --chart-3: oklch(0.892 0.012 125.231);
  --chart-4: oklch(0.914 0.009 125.189);
  --chart-5: oklch(0.574 0.103 127.992);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.163 0.026 125.925);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.023 126.406);
  --muted-foreground: oklch(0.776 0.016 125.327);
  --popover: oklch(0.163 0.026 125.925);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.163 0.026 125.925);
  --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.566 0.095 127.756);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.237 0.015 125.967);
  --secondary-foreground: oklch(0.793 0.03 125.578);
  --accent: oklch(0.237 0.015 125.967);
  --accent-foreground: oklch(0.793 0.03 125.578);
  --destructive: oklch(0.623 0.216 28.329);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.566 0.095 127.756);
  --chart-1: oklch(0.566 0.095 127.756);
  --chart-2: oklch(0.237 0.015 125.967);
  --chart-3: oklch(0.237 0.015 125.967);
  --chart-4: oklch(0.272 0.019 126.035);
  --chart-5: oklch(0.574 0.103 127.992);
}