Hopscotch is a shadcn/ui theme built around a vivid light yellow primary color (#fffde6) with muted purple accents (#5d4c5b). The light mode uses a purple-tinted background (#322931). Dark mode keeps the vivid light yellow primary (#fffde6) on a purple-tinted background (#322931).
| Token | Light | Dark |
|---|---|---|
| Background | #322931darkslategray | #322931darkslategray |
| Foreground | #bab5b9silver | #bab5b9silver |
| Card | #2d252cdarkslategray | #2d252cdarkslategray |
| Card foreground | #c6c3c5silver | #c6c3c5silver |
| Popover | #2a2229darkslategray | #2a2229darkslategray |
| Popover foreground | #d2d0d2lightgrey | #d2d0d2lightgrey |
| Primary | #fffde6lightyellow | #fffde6lightyellow |
| Primary foreground | #4d4600darkolivegreen | #4d4600darkolivegreen |
| Secondary | #53502ddarkolivegreen | #53502ddarkolivegreen |
| Secondary foreground | #e4e2cdgainsboro | #e4e2cdgainsboro |
| Muted | #3f313ddarkslategray | #3f313ddarkslategray |
| Muted foreground | #c0afbesilver | #c0afbesilver |
| Accent | #5d4c5bdimgray | #5d4c5bdimgray |
| Accent foreground | #efebefwhitesmoke | #efebefwhitesmoke |
| Destructive | #f7201dcrimson | #f7201dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Input | #424242darkslategray | #424242darkslategray |
| Ring | #fffde6lightyellow | #fffde6lightyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 6.91:1 | AA |
| Text on card | 8.52:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 6.31:1 | AA |
| Muted text | 5.86:1 | AA |
| Accent | 6.74:1 | AA |
| Destructive | 4.05:1 | AA Large |
| Text on background | 6.91:1 | AA |
| Text on card | 8.52:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 6.31:1 | AA |
| Muted text | 5.86:1 | AA |
| Accent | 6.74:1 | AA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Hopscotch in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.296 0.019 329.875);
--foreground: oklch(0.779 0.007 334.019);
--muted: oklch(0.334 0.028 330.059);
--muted-foreground: oklch(0.773 0.029 329.556);
--popover: oklch(0.265 0.017 329.843);
--popover-foreground: oklch(0.86 0.004 333.958);
--card: oklch(0.275 0.018 329.855);
--card-foreground: oklch(0.82 0.005 333.987);
--border: oklch(0.351 0 167.471);
--input: oklch(0.38 0 180);
--primary: oklch(0.989 0.031 102.701);
--primary-foreground: oklch(0.389 0.082 103.631);
--secondary: oklch(0.424 0.053 103.872);
--secondary-foreground: oklch(0.91 0.028 102.701);
--accent: oklch(0.438 0.032 329.962);
--accent-foreground: oklch(0.945 0.006 329.203);
--destructive: oklch(0.622 0.242 28.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.989 0.031 102.701);
--chart-1: oklch(0.989 0.031 102.701);
--chart-2: oklch(0.424 0.053 103.872);
--chart-3: oklch(0.438 0.032 329.962);
--chart-4: oklch(0.458 0.058 103.888);
--chart-5: oklch(0.99 0.031 102.715);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.296 0.019 329.875);
--foreground: oklch(0.779 0.007 334.019);
--muted: oklch(0.334 0.028 330.059);
--muted-foreground: oklch(0.773 0.029 329.556);
--popover: oklch(0.265 0.017 329.843);
--popover-foreground: oklch(0.86 0.004 333.958);
--card: oklch(0.275 0.018 329.855);
--card-foreground: oklch(0.82 0.005 333.987);
--border: oklch(0.351 0 167.471);
--input: oklch(0.38 0 180);
--primary: oklch(0.989 0.031 102.701);
--primary-foreground: oklch(0.389 0.082 103.631);
--secondary: oklch(0.424 0.053 103.872);
--secondary-foreground: oklch(0.91 0.028 102.701);
--accent: oklch(0.438 0.032 329.962);
--accent-foreground: oklch(0.945 0.006 329.203);
--destructive: oklch(0.622 0.242 28.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.989 0.031 102.701);
--chart-1: oklch(0.989 0.031 102.701);
--chart-2: oklch(0.424 0.053 103.872);
--chart-3: oklch(0.438 0.032 329.962);
--chart-4: oklch(0.458 0.058 103.888);
--chart-5: oklch(0.99 0.031 102.715);
}