Outrun Night is a shadcn/ui theme built around a blue primary color (#7a84d1) with deep indigo accents (#31256a). The light mode uses an indigo-tinted background (#171131). Dark mode keeps the blue primary (#7a84d1) on an indigo-tinted background (#171131).
| Token | Light | Dark |
|---|---|---|
| Background | #171131black | #171131black |
| Foreground | #ecedf8lavender | #ecedf8lavender |
| Card | #130f2ablack | #130f2ablack |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #110d26black | #110d26black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #7a84d1mediumpurple | #7a84d1mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #2d3153darkslategray | #2d3153darkslategray |
| Secondary foreground | #cdd0e4lightgrey | #cdd0e4lightgrey |
| Muted | #282631darkslategray | #282631darkslategray |
| Muted foreground | #a4a1b5darkgray | #a4a1b5darkgray |
| Accent | #31256amidnightblue | #31256amidnightblue |
| Accent foreground | #d7d2efgainsboro | #d7d2efgainsboro |
| Destructive | #f95534tomato | #f95534tomato |
| Destructive foreground | #000000black | #000000black |
| Border | #221c3fmidnightblue | #221c3fmidnightblue |
| Input | #28214amidnightblue | #28214amidnightblue |
| Ring | #7a84d1mediumpurple | #7a84d1mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.52:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 8.96:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 15.52:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 8.96:1 | AAA |
| Destructive | 6.36:1 | AA |
Paste this into your globals.css to use Outrun Night in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.206 0.061 287.481);
--foreground: oklch(0.949 0.015 281.945);
--muted: oklch(0.276 0.019 292.74);
--muted-foreground: oklch(0.718 0.029 293.298);
--popover: oklch(0.181 0.049 288.215);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.189 0.053 287.945);
--card-foreground: oklch(1 0 180);
--border: oklch(0.255 0.064 288.688);
--input: oklch(0.279 0.073 288.434);
--primary: oklch(0.639 0.116 276.862);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.326 0.06 276.812);
--secondary-foreground: oklch(0.862 0.028 279.801);
--accent: oklch(0.322 0.114 285.627);
--accent-foreground: oklch(0.876 0.04 293.193);
--destructive: oklch(0.668 0.205 33.205);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.639 0.116 276.862);
--chart-1: oklch(0.639 0.116 276.862);
--chart-2: oklch(0.326 0.06 276.812);
--chart-3: oklch(0.322 0.114 285.627);
--chart-4: oklch(0.351 0.066 276.719);
--chart-5: oklch(0.634 0.123 276.577);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.206 0.061 287.481);
--foreground: oklch(0.949 0.015 281.945);
--muted: oklch(0.276 0.019 292.74);
--muted-foreground: oklch(0.718 0.029 293.298);
--popover: oklch(0.181 0.049 288.215);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.189 0.053 287.945);
--card-foreground: oklch(1 0 180);
--border: oklch(0.255 0.064 288.688);
--input: oklch(0.279 0.073 288.434);
--primary: oklch(0.639 0.116 276.862);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.326 0.06 276.812);
--secondary-foreground: oklch(0.862 0.028 279.801);
--accent: oklch(0.322 0.114 285.627);
--accent-foreground: oklch(0.876 0.04 293.193);
--destructive: oklch(0.668 0.205 33.205);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.639 0.116 276.862);
--chart-1: oklch(0.639 0.116 276.862);
--chart-2: oklch(0.326 0.06 276.812);
--chart-3: oklch(0.322 0.114 285.627);
--chart-4: oklch(0.351 0.066 276.719);
--chart-5: oklch(0.634 0.123 276.577);
}