Hiking is a shadcn/ui theme built around a deep green primary color (#06230f) with muted light green accents (#c9ded0). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#06230f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #000000black |
| Foreground | #030d06black | #ffffffwhite |
| Card | #f7fcf9mintcream | #030303black |
| Card foreground | #020804black | #ffffffwhite |
| Popover | #f7fcf9mintcream | #030303black |
| Popover foreground | #020804black | #ffffffwhite |
| Primary | #06230fblack | #06230fblack |
| Primary foreground | #22d35alimegreen | #22d35alimegreen |
| Secondary | #e4ece7lavender | #121614black |
| Secondary foreground | #425c4adarkslategray | #a5b6aadarkgray |
| Muted | #dbe6degainsboro | #19241cblack |
| Muted foreground | #4e6555dimgray | #9ab1a1darkgray |
| Accent | #c9ded0lightgrey | #26362bdarkslategray |
| Accent foreground | #2c4935darkslategray | #bdd0c3silver |
| Destructive | #8a190fdarkred | #d42616firebrick |
| Destructive foreground | #fad4d1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #06230fblack | #06230fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.40:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 6.09:1 | AA |
| Muted text | 4.94:1 | AA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 8.55:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 5.12:1 | AA |
Paste this into your globals.css to use Hiking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 156.491);
--foreground: oklch(0.143 0.025 155.785);
--muted: oklch(0.915 0.016 156.204);
--muted-foreground: oklch(0.482 0.038 154.913);
--popover: oklch(0.988 0.007 156.422);
--popover-foreground: oklch(0.124 0.021 156.084);
--card: oklch(0.988 0.007 156.422);
--card-foreground: oklch(0.124 0.021 156.084);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.228 0.052 150.818);
--primary-foreground: oklch(0.758 0.211 147.885);
--secondary: oklch(0.935 0.01 156.342);
--secondary-foreground: oklch(0.448 0.042 154.568);
--accent: oklch(0.882 0.031 155.858);
--accent-foreground: oklch(0.377 0.049 153.605);
--destructive: oklch(0.413 0.15 29.948);
--destructive-foreground: oklch(0.902 0.043 24.107);
--ring: oklch(0.228 0.052 150.818);
--chart-1: oklch(0.228 0.052 150.818);
--chart-2: oklch(0.935 0.01 156.342);
--chart-3: oklch(0.882 0.031 155.858);
--chart-4: oklch(0.957 0.007 156.419);
--chart-5: oklch(0.23 0.054 150.671);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.248 0.022 154.65);
--muted-foreground: oklch(0.739 0.034 155.616);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.228 0.052 150.818);
--primary-foreground: oklch(0.758 0.211 147.885);
--secondary: oklch(0.197 0.008 155.693);
--secondary-foreground: oklch(0.759 0.024 155.924);
--accent: oklch(0.314 0.028 154.651);
--accent-foreground: oklch(0.841 0.027 155.905);
--destructive: oklch(0.562 0.21 30.05);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.228 0.052 150.818);
--chart-1: oklch(0.228 0.052 150.818);
--chart-2: oklch(0.197 0.008 155.693);
--chart-3: oklch(0.314 0.028 154.651);
--chart-4: oklch(0.231 0.011 155.585);
--chart-5: oklch(0.23 0.054 150.671);
}