Hop is a shadcn/ui theme built around a light indigo primary color (#efeef6) with light violet accents (#f3eef6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#efeef6) on an indigo-tinted background (#05050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05050bblack |
| Foreground | #010105black | #f5f5fawhitesmoke |
| Card | #fcfcfcsnow | #07060eblack |
| Card foreground | #000000black | #f9f8fbghostwhite |
| Popover | #fcfcfcsnow | #07060eblack |
| Popover foreground | #000000black | #f9f8fbghostwhite |
| Primary | #efeef6whitesmoke | #efeef6whitesmoke |
| Primary foreground | #403d76darkslateblue | #403d76darkslateblue |
| Secondary | #eef2f6whitesmoke | #eef2f6whitesmoke |
| Secondary foreground | #3d5576darkslateblue | #3d5576darkslateblue |
| Muted | #eaedf0lavender | #0f1115black |
| Muted foreground | #4f5a69dimgray | #96a1b0darkgray |
| Accent | #f3eef6whitesmoke | #f3eef6whitesmoke |
| Accent foreground | #5d3d76darkslateblue | #5d3d76darkslateblue |
| Destructive | #c22400firebrick | #ff4419orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #efeef6whitesmoke | #efeef6whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.83:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.49:1 | AAA |
| Secondary button | 6.75:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 5.94:1 | AA |
| Text on background | 18.74:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 8.49:1 | AAA |
| Secondary button | 6.75:1 | AA |
| Muted text | 7.20:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Hop in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.066 0.026 282.818);
--muted: oklch(0.944 0.005 254.983);
--muted-foreground: oklch(0.464 0.028 255.197);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.952 0.011 289.263);
--primary-foreground: oklch(0.392 0.094 284.171);
--secondary: oklch(0.959 0.007 254.995);
--secondary-foreground: oklch(0.445 0.062 255.436);
--accent: oklch(0.956 0.012 310.976);
--accent-foreground: oklch(0.422 0.098 308.898);
--destructive: oklch(0.525 0.196 32.505);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.952 0.011 289.263);
--chart-1: oklch(0.952 0.011 289.263);
--chart-2: oklch(0.959 0.007 254.995);
--chart-3: oklch(0.956 0.012 310.976);
--chart-4: oklch(0.984 0.003 254.97);
--chart-5: oklch(0.952 0.012 289.243);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.017 287.416);
--foreground: oklch(0.972 0.006 289.361);
--muted: oklch(0.179 0.008 255.146);
--muted-foreground: oklch(0.706 0.025 255.115);
--popover: oklch(0.129 0.019 287.074);
--popover-foreground: oklch(0.981 0.004 289.401);
--card: oklch(0.129 0.019 287.074);
--card-foreground: oklch(0.981 0.004 289.401);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.952 0.011 289.263);
--primary-foreground: oklch(0.392 0.094 284.171);
--secondary: oklch(0.959 0.007 254.995);
--secondary-foreground: oklch(0.445 0.062 255.436);
--accent: oklch(0.956 0.012 310.976);
--accent-foreground: oklch(0.422 0.098 308.898);
--destructive: oklch(0.66 0.229 33.373);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.952 0.011 289.263);
--chart-1: oklch(0.952 0.011 289.263);
--chart-2: oklch(0.959 0.007 254.995);
--chart-3: oklch(0.956 0.012 310.976);
--chart-4: oklch(0.984 0.003 254.97);
--chart-5: oklch(0.952 0.012 289.243);
}