HelloSpaceboy is a shadcn/ui theme built around a red primary color (#a93232) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the red primary (#a93232) on a neutral background (#fafafa).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #fafafasnow |
| Foreground | #000000black | #000000black |
| Card | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Card foreground | #000000black | #000000black |
| Popover | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Popover foreground | #000000black | #000000black |
| Primary | #a93232brown | #a93232brown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d2acactan | #d2acactan |
| Secondary foreground | #321b1bblack | #321b1bblack |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Accent foreground | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Destructive | #bc1806firebrick | #bc1806firebrick |
| Destructive foreground | #fff6f5lavenderblush | #fff6f5lavenderblush |
| Border | #edededwhitesmoke | #edededwhitesmoke |
| Input | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Ring | #a93232brown | #a93232brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 20.10:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.03:1 | AA |
Paste this into your globals.css to use HelloSpaceboy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.497 0.155 24.749);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.779 0.045 18.157);
--secondary-foreground: oklch(0.252 0.037 19.95);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.508 0.197 30.443);
--destructive-foreground: oklch(0.98 0.009 25.069);
--ring: oklch(0.497 0.155 24.749);
--chart-1: oklch(0.497 0.155 24.749);
--chart-2: oklch(0.779 0.045 18.157);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.806 0.039 17.989);
--chart-5: oklch(0.499 0.162 25.241);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.497 0.155 24.749);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.779 0.045 18.157);
--secondary-foreground: oklch(0.252 0.037 19.95);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.508 0.197 30.443);
--destructive-foreground: oklch(0.98 0.009 25.069);
--ring: oklch(0.497 0.155 24.749);
--chart-1: oklch(0.497 0.155 24.749);
--chart-2: oklch(0.779 0.045 18.157);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.806 0.039 17.989);
--chart-5: oklch(0.499 0.162 25.241);
}