Hop is a shadcn/ui theme built around a vivid deep pink primary color (#320613) with muted pink accents (#ceb1b9). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the vivid deep pink primary (#320613) on a pink-tinted background (#0b0406).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0b0406black |
| Foreground | #0d0206black | #fbf8f9snow |
| Card | #fcf8f9snow | #0b0406black |
| Card foreground | #0d0206black | #fbf8f9snow |
| Popover | #fcf8f9snow | #0b0406black |
| Popover foreground | #0d0206black | #fbf8f9snow |
| Primary | #320613black | #320613black |
| Primary foreground | #ee7c9epalevioletred | #ee7c9epalevioletred |
| Secondary | #d6c7cblightgrey | #251e20black |
| Secondary foreground | #3e2d32darkslategray | #c2b3b7silver |
| Muted | #e7dfe1gainsboro | #20181ablack |
| Muted foreground | #504448darkslategray | #bbafb3darkgray |
| Accent | #ceb1b9silver | #442c33darkslategray |
| Accent foreground | #2f1d23black | #dbc7cdthistle |
| Destructive | #a22607firebrick | #f65128tomato |
| Destructive foreground | #fee3ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #320613black | #320613black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 8.19:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Hop in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 356.78);
--foreground: oklch(0.118 0.027 356.732);
--muted: oklch(0.91 0.01 356.966);
--muted-foreground: oklch(0.4 0.017 357.856);
--popover: oklch(0.982 0.004 356.78);
--popover-foreground: oklch(0.118 0.027 356.732);
--card: oklch(0.982 0.004 356.78);
--card-foreground: oklch(0.118 0.027 356.732);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.214 0.07 7.182);
--primary-foreground: oklch(0.724 0.144 2.243);
--secondary: oklch(0.843 0.018 357.28);
--secondary-foreground: oklch(0.319 0.026 358.952);
--accent: oklch(0.787 0.036 357.932);
--accent-foreground: oklch(0.257 0.029 359.74);
--destructive: oklch(0.467 0.164 33.718);
--destructive-foreground: oklch(0.936 0.03 34.304);
--ring: oklch(0.214 0.07 7.182);
--chart-1: oklch(0.214 0.07 7.182);
--chart-2: oklch(0.843 0.018 357.28);
--chart-3: oklch(0.787 0.036 357.932);
--chart-4: oklch(0.868 0.015 357.163);
--chart-5: oklch(0.214 0.072 7.565);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.016 356.525);
--foreground: oklch(0.983 0.003 356.753);
--muted: oklch(0.22 0.014 358.454);
--muted-foreground: oklch(0.765 0.014 357.194);
--popover: oklch(0.123 0.016 356.525);
--popover-foreground: oklch(0.983 0.003 356.753);
--card: oklch(0.123 0.016 356.525);
--card-foreground: oklch(0.983 0.003 356.753);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.214 0.07 7.182);
--primary-foreground: oklch(0.724 0.144 2.243);
--secondary: oklch(0.242 0.012 358.038);
--secondary-foreground: oklch(0.779 0.018 357.328);
--accent: oklch(0.325 0.036 359.734);
--accent-foreground: oklch(0.849 0.023 357.423);
--destructive: oklch(0.658 0.208 34.716);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.214 0.07 7.182);
--chart-1: oklch(0.214 0.07 7.182);
--chart-2: oklch(0.242 0.012 358.038);
--chart-3: oklch(0.325 0.036 359.734);
--chart-4: oklch(0.273 0.014 358.121);
--chart-5: oklch(0.214 0.072 7.565);
}