Hard-to-find for shadcn/ui

Hard-to-find is a shadcn/ui theme built around a light teal primary color (#a2e6db) with light yellow accents (#e6dba2). The light mode uses a neutral background (#fbfefe). Dark mode keeps the light teal primary (#a2e6db) on a teal-tinted background (#040b0a).

Color palette

TokenLightDark
Background
#fbfefewhite
#040b0ablack
Foreground
#010404black
#fcfdfdwhite
Card
#fbfefewhite
#040b0ablack
Card foreground
#010404black
#fcfdfdwhite
Popover
#fbfefewhite
#040b0ablack
Popover foreground
#010404black
#fcfdfdwhite
Primary
#a2e6dbpowderblue
#a2e6dbpowderblue
Primary foreground
#12443cdarkslategray
#12443cdarkslategray
Secondary
#dba2e6plum
#dba2e6plum
Secondary foreground
#3c1244midnightblue
#3c1244midnightblue
Muted
#ebe9eclavender
#151316black
Muted foreground
#5e585fdimgray
#a6a0a7darkgray
Accent
#e6dba2palegoldenrod
#e6dba2palegoldenrod
Accent foreground
#443c12darkolivegreen
#443c12darkolivegreen
Destructive
#732207maroon
#e1430eorangered
Destructive foreground
#fac4b2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a2e6dbpowderblue
#a2e6dbpowderblue

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button7.78:1AAA
Secondary button7.59:1AAA
Muted text5.74:1AA
Accent7.91:1AAA
Destructive6.92:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.78:1AAA
Secondary button7.59:1AAA
Muted text7.21:1AAA
Accent7.91:1AAA
Destructive4.18: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.004 185.352);
  --foreground: oklch(0.099 0.011 185.115);
  --muted: oklch(0.937 0.004 320.538);
  --muted-foreground: oklch(0.469 0.014 320.577);
  --popover: oklch(0.995 0.004 185.352);
  --popover-foreground: oklch(0.099 0.011 185.115);
  --card: oklch(0.995 0.004 185.352);
  --card-foreground: oklch(0.099 0.011 185.115);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.878 0.07 183.173);
  --primary-foreground: oklch(0.353 0.055 179.735);
  --secondary: oklch(0.789 0.112 320.721);
  --secondary-foreground: oklch(0.276 0.098 320.568);
  --accent: oklch(0.887 0.074 98.148);
  --accent-foreground: oklch(0.356 0.06 97.898);
  --destructive: oklch(0.377 0.119 36.951);
  --destructive-foreground: oklch(0.864 0.067 39.236);
  --ring: oklch(0.878 0.07 183.173);
  --chart-1: oklch(0.878 0.07 183.173);
  --chart-2: oklch(0.789 0.112 320.721);
  --chart-3: oklch(0.887 0.074 98.148);
  --chart-4: oklch(0.816 0.097 320.697);
  --chart-5: oklch(0.881 0.073 183.063);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.012 185.041);
  --foreground: oklch(0.994 0.002 185.403);
  --muted: oklch(0.191 0.006 320.578);
  --muted-foreground: oklch(0.712 0.013 320.559);
  --popover: oklch(0.14 0.012 185.041);
  --popover-foreground: oklch(0.994 0.002 185.403);
  --card: oklch(0.14 0.012 185.041);
  --card-foreground: oklch(0.994 0.002 185.403);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.878 0.07 183.173);
  --primary-foreground: oklch(0.353 0.055 179.735);
  --secondary: oklch(0.789 0.112 320.721);
  --secondary-foreground: oklch(0.276 0.098 320.568);
  --accent: oklch(0.887 0.074 98.148);
  --accent-foreground: oklch(0.356 0.06 97.898);
  --destructive: oklch(0.609 0.202 35.964);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.878 0.07 183.173);
  --chart-1: oklch(0.878 0.07 183.173);
  --chart-2: oklch(0.789 0.112 320.721);
  --chart-3: oklch(0.887 0.074 98.148);
  --chart-4: oklch(0.816 0.097 320.697);
  --chart-5: oklch(0.881 0.073 183.063);
}