Hectare is a shadcn/ui theme built around a neutral gray primary color (#504f49) with muted light yellow accents (#d9d8d3). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the neutral gray primary (#504f49) on a neutral background (#080703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #080703black |
| Foreground | #000000black | #f9f9f5whitesmoke |
| Card | #fbfaf3floralwhite | #0b0a04black |
| Card foreground | #000000black | #fbfbf9snow |
| Popover | #fbfaf3floralwhite | #0b0a04black |
| Popover foreground | #000000black | #fbfbf9snow |
| Primary | #504f49darkslategray | #504f49darkslategray |
| Primary foreground | #e7e6e4gainsboro | #e7e6e4gainsboro |
| Secondary | #ebebealinen | #1c1a12black |
| Secondary foreground | #525251darkslategray | #c0baa0tan |
| Muted | #e5e4e1gainsboro | #1e1d1ablack |
| Muted foreground | #5b5849darkolivegreen | #b6b3a4darkgray |
| Accent | #d9d8d3lightgrey | #34301edarkslategray |
| Accent foreground | #424038darkslategray | #d2cdb1silver |
| Destructive | #7a0b0bmaroon | #ed3131crimson |
| Destructive foreground | #f9bdbdlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #504f49darkslategray | #504f49darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.63:1 | AA |
| Accent | 7.30:1 | AAA |
| Destructive | 6.94:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 8.94:1 | AAA |
| Muted text | 7.98:1 | AAA |
| Accent | 8.25:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Hectare in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 97.339);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.004 97.324);
--muted-foreground: oklch(0.457 0.024 97.877);
--popover: oklch(0.984 0.009 97.379);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.009 97.379);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.427 0.01 97.573);
--primary-foreground: oklch(0.926 0.003 97.301);
--secondary: oklch(0.939 0 97.266);
--secondary-foreground: oklch(0.439 0.002 97.327);
--accent: oklch(0.883 0.007 97.372);
--accent-foreground: oklch(0.372 0.014 97.718);
--destructive: oklch(0.37 0.143 27.997);
--destructive-foreground: oklch(0.854 0.069 18.608);
--ring: oklch(0.427 0.01 97.573);
--chart-1: oklch(0.427 0.01 97.573);
--chart-2: oklch(0.939 0 97.266);
--chart-3: oklch(0.883 0.007 97.372);
--chart-4: oklch(0.962 0 97.263);
--chart-5: oklch(0.432 0.017 97.733);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.014 100.677);
--foreground: oklch(0.981 0.004 97.318);
--muted: oklch(0.232 0.006 97.602);
--muted-foreground: oklch(0.766 0.021 97.61);
--popover: oklch(0.144 0.016 100.395);
--popover-foreground: oklch(0.987 0.003 97.298);
--card: oklch(0.144 0.016 100.395);
--card-foreground: oklch(0.987 0.003 97.298);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.427 0.01 97.573);
--primary-foreground: oklch(0.926 0.003 97.301);
--secondary: oklch(0.217 0.014 98.015);
--secondary-foreground: oklch(0.788 0.037 97.821);
--accent: oklch(0.308 0.031 98.24);
--accent-foreground: oklch(0.845 0.038 97.801);
--destructive: oklch(0.615 0.223 26.831);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.01 97.573);
--chart-1: oklch(0.427 0.01 97.573);
--chart-2: oklch(0.217 0.014 98.015);
--chart-3: oklch(0.308 0.031 98.24);
--chart-4: oklch(0.254 0.018 98.066);
--chart-5: oklch(0.432 0.017 97.733);
}