Hit is a shadcn/ui theme built around a vivid cyan primary color (#12b6f8) with vivid blue accents (#1243f8). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid cyan primary (#12b6f8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #000000black |
| Foreground | #041116black | #ffffffwhite |
| Card | #f6fbfdghostwhite | #030303black |
| Card foreground | #030d12black | #ffffffwhite |
| Popover | #fbfdfewhite | #000000black |
| Popover foreground | #041116black | #ffffffwhite |
| Primary | #12b6f8deepskyblue | #12b6f8deepskyblue |
| Primary foreground | #022b3bmidnightblue | #022b3bmidnightblue |
| Secondary | #12f8c6darkturquoise | #12f8c6darkturquoise |
| Secondary foreground | #023b2fdarkslategray | #023b2fdarkslategray |
| Muted | #e1eae8gainsboro | #151e1cblack |
| Muted foreground | #3c4442darkslategray | #bbc3c1silver |
| Accent | #1243f8royalblue | #1243f8royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #881c0cdarkred | #d32c12firebrick |
| Destructive foreground | #fbd2cbpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #12b6f8deepskyblue | #12b6f8deepskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.78:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 9.11:1 | AAA |
| Muted text | 8.18:1 | AAA |
| Accent | 6.58:1 | AA |
| Destructive | 6.82:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 9.11:1 | AAA |
| Muted text | 9.44:1 | AAA |
| Accent | 6.58:1 | AA |
| Destructive | 5.06:1 | AA |
Paste this into your globals.css to use Hit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 223.161);
--foreground: oklch(0.166 0.023 223.503);
--muted: oklch(0.93 0.011 181.745);
--muted-foreground: oklch(0.377 0.01 181.28);
--popover: oklch(0.993 0.003 223.161);
--popover-foreground: oklch(0.166 0.023 223.503);
--card: oklch(0.986 0.006 223.192);
--card-foreground: oklch(0.151 0.02 221.411);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.733 0.15 233.728);
--primary-foreground: oklch(0.271 0.052 230.128);
--secondary: oklch(0.871 0.169 171.021);
--secondary-foreground: oklch(0.316 0.059 173.089);
--accent: oklch(0.5 0.267 264.626);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.411 0.145 31.618);
--destructive-foreground: oklch(0.896 0.047 28.291);
--ring: oklch(0.733 0.15 233.728);
--chart-1: oklch(0.733 0.15 233.728);
--chart-2: oklch(0.871 0.169 171.021);
--chart-3: oklch(0.5 0.267 264.626);
--chart-4: oklch(0.874 0.165 172.095);
--chart-5: oklch(0.738 0.153 234.228);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.015 180.146);
--muted-foreground: oklch(0.811 0.009 181.766);
--popover: oklch(0 0 0);
--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.733 0.15 233.728);
--primary-foreground: oklch(0.271 0.052 230.128);
--secondary: oklch(0.871 0.169 171.021);
--secondary-foreground: oklch(0.316 0.059 173.089);
--accent: oklch(0.5 0.267 264.626);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.564 0.205 31.508);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.733 0.15 233.728);
--chart-1: oklch(0.733 0.15 233.728);
--chart-2: oklch(0.871 0.169 171.021);
--chart-3: oklch(0.5 0.267 264.626);
--chart-4: oklch(0.874 0.165 172.095);
--chart-5: oklch(0.738 0.153 234.228);
}