Hare is a shadcn/ui theme built around an orange primary color (#dcaa74) with yellow accents (#dbdc74). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the orange primary (#dcaa74) on an orange-tinted background (#0d0a07).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #0d0a07black |
| Foreground | #080502black | #fdfcfcsnow |
| Card | #faf7f5whitesmoke | #110d09black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #faf7f5whitesmoke | #110d09black |
| Popover foreground | #040301black | #ffffffwhite |
| Primary | #dcaa74burlywood | #dcaa74burlywood |
| Primary foreground | #181006black | #181006black |
| Secondary | #dc7674lightcoral | #dc7674lightcoral |
| Secondary foreground | #180606black | #180606black |
| Muted | #ebdcdbgainsboro | #241514black |
| Muted foreground | #473838darkslategray | #c7b8b8silver |
| Accent | #dbdc74khaki | #dbdc74khaki |
| Accent foreground | #181806black | #181806black |
| Destructive | #622204maroon | #eb510aorangered |
| Destructive foreground | #fbbb9dburlywood | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dcaa74burlywood | #dcaa74burlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 9.01:1 | AAA |
| Secondary button | 6.46:1 | AA |
| Muted text | 8.32:1 | AAA |
| Accent | 12.39:1 | AAA |
| Destructive | 7.26:1 | AAA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 9.01:1 | AAA |
| Secondary button | 6.46:1 | AA |
| Muted text | 9.22:1 | AAA |
| Accent | 12.39:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Hare in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 69.621);
--foreground: oklch(0.12 0.015 78.569);
--muted: oklch(0.905 0.016 18.643);
--muted-foreground: oklch(0.358 0.021 19.34);
--popover: oklch(0.979 0.004 69.605);
--popover-foreground: oklch(0.095 0.012 78.569);
--card: oklch(0.979 0.004 69.605);
--card-foreground: oklch(0.095 0.012 78.569);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.772 0.092 67.646);
--primary-foreground: oklch(0.18 0.024 68.807);
--secondary: oklch(0.681 0.128 22.003);
--secondary-foreground: oklch(0.156 0.033 22.943);
--accent: oklch(0.873 0.128 109.624);
--accent-foreground: oklch(0.205 0.033 109.797);
--destructive: oklch(0.345 0.101 41.424);
--destructive-foreground: oklch(0.843 0.085 45.935);
--ring: oklch(0.772 0.092 67.646);
--chart-1: oklch(0.772 0.092 67.646);
--chart-2: oklch(0.681 0.128 22.003);
--chart-3: oklch(0.873 0.128 109.624);
--chart-4: oklch(0.707 0.115 21.421);
--chart-5: oklch(0.775 0.096 67.488);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.149 0.009 71.47);
--foreground: oklch(0.993 0.001 69.641);
--muted: oklch(0.214 0.025 20.379);
--muted-foreground: oklch(0.795 0.017 18.698);
--popover: oklch(0.162 0.011 69.164);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.162 0.011 69.164);
--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.772 0.092 67.646);
--primary-foreground: oklch(0.18 0.024 68.807);
--secondary: oklch(0.681 0.128 22.003);
--secondary-foreground: oklch(0.156 0.033 22.943);
--accent: oklch(0.873 0.128 109.624);
--accent-foreground: oklch(0.205 0.033 109.797);
--destructive: oklch(0.639 0.201 39.111);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.772 0.092 67.646);
--chart-1: oklch(0.772 0.092 67.646);
--chart-2: oklch(0.681 0.128 22.003);
--chart-3: oklch(0.873 0.128 109.624);
--chart-4: oklch(0.707 0.115 21.421);
--chart-5: oklch(0.775 0.096 67.488);
}