Hopscotch [proofreader] 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 | #cdc1cbsilver | #cdc1cbsilver |
| Card | #2d252cdarkslategray | #2d252cdarkslategray |
| Card foreground | #d8cfd7lightgrey | #d8cfd7lightgrey |
| Popover | #2a2229darkslategray | #2a2229darkslategray |
| Popover foreground | #e3dde3gainsboro | #e3dde3gainsboro |
| 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 | #d72d0ffirebrick | #d72d0ffirebrick |
| 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 | 8.03:1 | AAA |
| Text on card | 9.81: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.93:1 | AA |
| Text on background | 8.03:1 | AAA |
| Text on card | 9.81: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.93:1 | AA |
Paste this into your globals.css to use Hopscotch [proofreader] in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.296 0.019 329.875);
--foreground: oklch(0.824 0.018 329.391);
--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.905 0.01 329.259);
--card: oklch(0.275 0.018 329.855);
--card-foreground: oklch(0.865 0.014 329.321);
--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.57 0.208 31.935);
--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.824 0.018 329.391);
--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.905 0.01 329.259);
--card: oklch(0.275 0.018 329.855);
--card-foreground: oklch(0.865 0.014 329.321);
--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.57 0.208 31.935);
--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);
}