Earthbound - Main (Darker) is a shadcn/ui theme built around a near-white primary color (#ffffff) with vivid deep violet accents (#450085). The light mode uses a violet-tinted background (#1d0038). Dark mode keeps the near-white primary (#ffffff) on a violet-tinted background (#1d0038).
| Token | Light | Dark |
|---|---|---|
| Background | #1d0038midnightblue | #1d0038midnightblue |
| Foreground | #ffffffwhite | #ffffffwhite |
| Card | #18002eblack | #18002eblack |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #150029black | #150029black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #26222bdarkslategray | #26222bdarkslategray |
| Muted foreground | #a69bb0darkgray | #a69bb0darkgray |
| Accent | #450085indigo | #450085indigo |
| Accent foreground | #dcb8ffthistle | #dcb8ffthistle |
| Destructive | #df2a16crimson | #df2a16crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2a044emidnightblue | #2a044emidnightblue |
| Input | #32055cmidnightblue | #32055cmidnightblue |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.92:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 4.69:1 | AA |
| Text on background | 18.92:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 4.69:1 | AA |
Paste this into your globals.css to use Earthbound - Main (Darker) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.19 0.101 301.285);
--foreground: oklch(1 0 180);
--muted: oklch(0.26 0.018 308.391);
--muted-foreground: oklch(0.706 0.033 308.634);
--popover: oklch(0.159 0.083 303.517);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.169 0.089 302.652);
--card-foreground: oklch(1 0 180);
--border: oklch(0.24 0.12 300.345);
--input: oklch(0.268 0.135 299.667);
--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.333 0.181 296.991);
--accent-foreground: oklch(0.838 0.105 307.796);
--destructive: oklch(0.584 0.217 30.52);
--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.333 0.181 296.991);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.19 0.101 301.285);
--foreground: oklch(1 0 180);
--muted: oklch(0.26 0.018 308.391);
--muted-foreground: oklch(0.706 0.033 308.634);
--popover: oklch(0.159 0.083 303.517);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.169 0.089 302.652);
--card-foreground: oklch(1 0 180);
--border: oklch(0.24 0.12 300.345);
--input: oklch(0.268 0.135 299.667);
--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.333 0.181 296.991);
--accent-foreground: oklch(0.838 0.105 307.796);
--destructive: oklch(0.584 0.217 30.52);
--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.333 0.181 296.991);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}