Hopscotch Classic is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted purple accents (#5d4c5b). The light mode uses a purple-tinted background (#322931). Dark mode keeps the near-white primary (#ffffff) 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 | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #3f313ddarkslategray | #3f313ddarkslategray |
| Muted foreground | #c0afbesilver | #c0afbesilver |
| Accent | #5d4c5bdimgray | #5d4c5bdimgray |
| Accent foreground | #efebefwhitesmoke | #efebefwhitesmoke |
| Destructive | #e02215crimson | #e02215crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Input | #424242darkslategray | #424242darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
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 | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.86:1 | AA |
| Accent | 6.74:1 | AA |
| Destructive | 4.75:1 | AA |
| Text on background | 6.91:1 | AA |
| Text on card | 8.52:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.86:1 | AA |
| Accent | 6.74:1 | AA |
| Destructive | 4.75:1 | AA |
Paste this into your globals.css to use Hopscotch Classic 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(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.438 0.032 329.962);
--accent-foreground: oklch(0.945 0.006 329.203);
--destructive: oklch(0.581 0.222 29.682);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.438 0.032 329.962);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.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(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.438 0.032 329.962);
--accent-foreground: oklch(0.945 0.006 329.203);
--destructive: oklch(0.581 0.222 29.682);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.438 0.032 329.962);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}