Hint is a shadcn/ui theme built around a purple primary color (#7c1683) with pink accents (#831654). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the purple primary (#7c1683) on a purple-tinted background (#100410).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #100410black |
| Foreground | #150316black | #ffffffwhite |
| Card | #fdfcfdwhite | #100410black |
| Card foreground | #150316black | #ffffffwhite |
| Popover | #fdfcfdwhite | #100410black |
| Popover foreground | #150316black | #ffffffwhite |
| Primary | #7c1683purple | #7c1683purple |
| Primary foreground | #f5d3f8lavender | #f5d3f8lavender |
| Secondary | #451683indigo | #451683indigo |
| Secondary foreground | #e3d3f8lavender | #e3d3f8lavender |
| Muted | #ddd5e7gainsboro | #20182ablack |
| Muted foreground | #413b4adarkslategray | #bcb5c4silver |
| Accent | #831654purple | #831654purple |
| Accent foreground | #f8d3e8mistyrose | #f8d3e8mistyrose |
| Destructive | #d53707orangered | #f8430dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c1683purple | #7c1683purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 8.79:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 4.81:1 | AA |
| Text on background | 20.06:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 8.79:1 | AAA |
| Muted text | 8.60:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Hint in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 323.649);
--foreground: oklch(0.149 0.05 325.27);
--muted: oklch(0.884 0.027 305.339);
--muted-foreground: oklch(0.365 0.026 304.788);
--popover: oklch(0.992 0.003 323.649);
--popover-foreground: oklch(0.149 0.05 325.27);
--card: oklch(0.992 0.003 323.649);
--card-foreground: oklch(0.149 0.05 325.27);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.425 0.18 325.055);
--primary-foreground: oklch(0.907 0.061 323.974);
--secondary: oklch(0.347 0.164 296.056);
--secondary-foreground: oklch(0.892 0.052 304.968);
--accent: oklch(0.412 0.153 351.821);
--accent-foreground: oklch(0.904 0.048 343.04);
--destructive: oklch(0.575 0.2 34.591);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.425 0.18 325.055);
--chart-1: oklch(0.425 0.18 325.055);
--chart-2: oklch(0.347 0.164 296.056);
--chart-3: oklch(0.412 0.153 351.821);
--chart-4: oklch(0.37 0.177 295.847);
--chart-5: oklch(0.429 0.185 325.037);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.035 325.073);
--foreground: oklch(1 0 180);
--muted: oklch(0.227 0.037 303.518);
--muted-foreground: oklch(0.784 0.022 305.374);
--popover: oklch(0.137 0.035 325.073);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.035 325.073);
--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.425 0.18 325.055);
--primary-foreground: oklch(0.907 0.061 323.974);
--secondary: oklch(0.347 0.164 296.056);
--secondary-foreground: oklch(0.892 0.052 304.968);
--accent: oklch(0.412 0.153 351.821);
--accent-foreground: oklch(0.904 0.048 343.04);
--destructive: oklch(0.646 0.223 34.801);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.425 0.18 325.055);
--chart-1: oklch(0.425 0.18 325.055);
--chart-2: oklch(0.347 0.164 296.056);
--chart-3: oklch(0.412 0.153 351.821);
--chart-4: oklch(0.37 0.177 295.847);
--chart-5: oklch(0.429 0.185 325.037);
}