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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 5.74:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 4.18:1 | AA Large |
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);
}