Sorry Galactic Highway is a shadcn/ui theme built around a vivid indigo primary color (#2a1abc) with vivid violet accents (#7b1abc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#2a1abc) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040307black |
| Foreground | #070514black | #ffffffwhite |
| Card | #fcfcfcsnow | #05050bblack |
| Card foreground | #060410black | #ffffffwhite |
| Popover | #fcfcfcsnow | #05050bblack |
| Popover foreground | #060410black | #ffffffwhite |
| Primary | #2a1abcmediumblue | #2a1abcmediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1a5bbcroyalblue | #1a5bbcroyalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d8e1eegainsboro | #111a27black |
| Muted foreground | #5e5e5edimgray | #a1a1a1darkgray |
| Accent | #7b1abcdarkorchid | #7b1abcdarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #95320fsaddlebrown | #eb6433tomato |
| Destructive foreground | #fbe3damistyrose | #000000black |
| Border | #ebeaf0lavender | #16161dblack |
| Input | #ebeaf0lavender | #16161dblack |
| Ring | #2a1abcmediumblue | #2a1abcmediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 10.63:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 4.90:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 10.63:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 6.77:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.39:1 | AA |
Paste this into your globals.css to use Sorry Galactic Highway in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.033 286.656);
--muted: oklch(0.906 0.021 258.358);
--muted-foreground: oklch(0.483 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.121 0.029 287.497);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.029 287.497);
--border: oklch(0.94 0.007 290.87);
--input: oklch(0.94 0.007 290.87);
--primary: oklch(0.391 0.23 272.317);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.489 0.167 259.158);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.472 0.226 305.705);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.458 0.139 38.069);
--destructive-foreground: oklch(0.933 0.03 41.092);
--ring: oklch(0.391 0.23 272.317);
--chart-1: oklch(0.391 0.23 272.317);
--chart-2: oklch(0.489 0.167 259.158);
--chart-3: oklch(0.472 0.226 305.705);
--chart-4: oklch(0.514 0.177 259.189);
--chart-5: oklch(0.391 0.236 271.401);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.014 289.411);
--foreground: oklch(1 0 180);
--muted: oklch(0.215 0.03 258.295);
--muted-foreground: oklch(0.708 0 158.199);
--popover: oklch(0.118 0.016 289.401);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.118 0.016 289.401);
--card-foreground: oklch(1 0 180);
--border: oklch(0.203 0.015 289.56);
--input: oklch(0.203 0.015 289.56);
--primary: oklch(0.391 0.23 272.317);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.489 0.167 259.158);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.472 0.226 305.705);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.665 0.179 39.321);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.391 0.23 272.317);
--chart-1: oklch(0.391 0.23 272.317);
--chart-2: oklch(0.489 0.167 259.158);
--chart-3: oklch(0.472 0.226 305.705);
--chart-4: oklch(0.514 0.177 259.189);
--chart-5: oklch(0.391 0.236 271.401);
}