Hook is a shadcn/ui theme built around a green primary color (#b9e798) with violet accents (#c698e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#b9e798) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0b1603black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0b1603black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0b1603black | #ffffffwhite |
| Primary | #b9e798palegreen | #b9e798palegreen |
| Primary foreground | #223e0fdarkgreen | #223e0fdarkgreen |
| Secondary | #c698e7plum | #c698e7plum |
| Secondary foreground | #2a0f3emidnightblue | #2a0f3emidnightblue |
| Muted | #e9e0f0lavender | #180f1fblack |
| Muted foreground | #625d65dimgray | #9f9aa2darkgray |
| Accent | #c698e7plum | #c698e7plum |
| Accent foreground | #2a0f3emidnightblue | #2a0f3emidnightblue |
| Destructive | #602406maroon | #f37130tomato |
| Destructive foreground | #f9bd9flightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b9e798palegreen | #b9e798palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.57:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 5.00:1 | AA |
| Accent | 7.29:1 | AAA |
| Destructive | 7.29:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.29:1 | AAA |
| Destructive | 7.20:1 | AAA |
Paste this into your globals.css to use Hook in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.185 0.042 132.547);
--muted: oklch(0.919 0.024 311.51);
--muted-foreground: oklch(0.485 0.013 311.501);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.185 0.042 132.547);
--card: oklch(1 0 180);
--card-foreground: oklch(0.185 0.042 132.547);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.876 0.115 132.93);
--primary-foreground: oklch(0.33 0.08 134.736);
--secondary: oklch(0.75 0.121 310.393);
--secondary-foreground: oklch(0.238 0.088 307.795);
--accent: oklch(0.75 0.121 310.393);
--accent-foreground: oklch(0.238 0.088 307.795);
--destructive: oklch(0.345 0.096 42.867);
--destructive-foreground: oklch(0.846 0.081 47.737);
--ring: oklch(0.876 0.115 132.93);
--chart-1: oklch(0.876 0.115 132.93);
--chart-2: oklch(0.75 0.121 310.393);
--chart-3: oklch(0.75 0.121 310.393);
--chart-4: oklch(0.78 0.106 310.616);
--chart-5: oklch(0.88 0.12 132.989);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.189 0.035 310.145);
--muted-foreground: oklch(0.693 0.012 311.581);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.876 0.115 132.93);
--primary-foreground: oklch(0.33 0.08 134.736);
--secondary: oklch(0.75 0.121 310.393);
--secondary-foreground: oklch(0.238 0.088 307.795);
--accent: oklch(0.75 0.121 310.393);
--accent-foreground: oklch(0.238 0.088 307.795);
--destructive: oklch(0.694 0.177 44.059);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.876 0.115 132.93);
--chart-1: oklch(0.876 0.115 132.93);
--chart-2: oklch(0.75 0.121 310.393);
--chart-3: oklch(0.75 0.121 310.393);
--chart-4: oklch(0.78 0.106 310.616);
--chart-5: oklch(0.88 0.12 132.989);
}