Hake is a shadcn/ui theme built around a near-black primary color (#1f2023) with near-black accents (#23231f). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#1f2023) on a blue-tinted background (#06070e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06070eblack |
| Foreground | #010104black | #f5f6fawhitesmoke |
| Card | #ffffffwhite | #06070eblack |
| Card foreground | #010104black | #f5f6fawhitesmoke |
| Popover | #ffffffwhite | #06070eblack |
| Popover foreground | #010104black | #f5f6fawhitesmoke |
| Primary | #1f2023black | #1f2023black |
| Primary foreground | #b5b7bfsilver | #b5b7bfsilver |
| Secondary | #23231fblack | #23231fblack |
| Secondary foreground | #bfbdb5silver | #bfbdb5silver |
| Muted | #e9e9e7linen | #181816black |
| Muted foreground | #565343darkolivegreen | #bcb9a9silver |
| Accent | #23231fblack | #23231fblack |
| Accent foreground | #bfbdb5silver | #bfbdb5silver |
| Destructive | #a7160cfirebrick | #f13f32tomato |
| Destructive foreground | #fde9e7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f2023black | #1f2023black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.84:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 18.58:1 | AAA |
| Text on card | 18.58:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 9.02:1 | AAA |
| Accent | 8.39:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Hake in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.078 0.016 269.154);
--muted: oklch(0.934 0.003 97.304);
--muted-foreground: oklch(0.441 0.026 97.954);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.078 0.016 269.154);
--card: oklch(1 0 180);
--card-foreground: oklch(0.078 0.016 269.154);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.243 0.007 276.82);
--primary-foreground: oklch(0.78 0.011 277.054);
--secondary: oklch(0.254 0.007 97.619);
--secondary-foreground: oklch(0.799 0.011 97.445);
--accent: oklch(0.254 0.007 97.619);
--accent-foreground: oklch(0.799 0.011 97.445);
--destructive: oklch(0.466 0.179 29.698);
--destructive-foreground: oklch(0.949 0.023 22.496);
--ring: oklch(0.243 0.007 276.82);
--chart-1: oklch(0.243 0.007 276.82);
--chart-2: oklch(0.254 0.007 97.619);
--chart-3: oklch(0.254 0.007 97.619);
--chart-4: oklch(0.287 0.009 97.637);
--chart-5: oklch(0.24 0.011 276.607);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.017 273.267);
--foreground: oklch(0.973 0.006 277.177);
--muted: oklch(0.208 0.004 97.539);
--muted-foreground: oklch(0.784 0.023 97.635);
--popover: oklch(0.133 0.017 273.267);
--popover-foreground: oklch(0.973 0.006 277.177);
--card: oklch(0.133 0.017 273.267);
--card-foreground: oklch(0.973 0.006 277.177);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.243 0.007 276.82);
--primary-foreground: oklch(0.78 0.011 277.054);
--secondary: oklch(0.254 0.007 97.619);
--secondary-foreground: oklch(0.799 0.011 97.445);
--accent: oklch(0.254 0.007 97.619);
--accent-foreground: oklch(0.799 0.011 97.445);
--destructive: oklch(0.633 0.216 28.881);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.243 0.007 276.82);
--chart-1: oklch(0.243 0.007 276.82);
--chart-2: oklch(0.254 0.007 97.619);
--chart-3: oklch(0.254 0.007 97.619);
--chart-4: oklch(0.287 0.009 97.637);
--chart-5: oklch(0.24 0.011 276.607);
}