Outrun Electric is a shadcn/ui theme built around a blue primary color (#7a84d1) with deep indigo accents (#211c59). The light mode uses an indigo-tinted background (#0c0a1f). Dark mode keeps the blue primary (#7a84d1) on an indigo-tinted background (#0c0a1f).
| Token | Light | Dark |
|---|---|---|
| Background | #0c0a1fblack | #0c0a1fblack |
| Foreground | #f2f3f7whitesmoke | #f2f3f7whitesmoke |
| Card | #090717black | #090717black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #070613black | #070613black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #7a84d1mediumpurple | #7a84d1mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #2d3153darkslategray | #2d3153darkslategray |
| Secondary foreground | #cdd0e4lightgrey | #cdd0e4lightgrey |
| Muted | #22222bdarkslategray | #22222bdarkslategray |
| Muted foreground | #9d9bb0darkgray | #9d9bb0darkgray |
| Accent | #211c59midnightblue | #211c59midnightblue |
| Accent foreground | #c1bdealightsteelblue | #c1bdealightsteelblue |
| Destructive | #fd4a2btomato | #fd4a2btomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #16132fblack | #16132fblack |
| Input | #1b183amidnightblue | #1b183amidnightblue |
| Ring | #7a84d1mediumpurple | #7a84d1mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.57:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 8.51:1 | AAA |
| Destructive | 3.38:1 | AA Large |
| Text on background | 17.57:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 8.51:1 | AAA |
| Destructive | 3.38:1 | AA Large |
Paste this into your globals.css to use Outrun Electric in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.16 0.044 284.119);
--foreground: oklch(0.966 0.005 274.967);
--muted: oklch(0.255 0.017 288.941);
--muted-foreground: oklch(0.698 0.031 289.393);
--popover: oklch(0.134 0.03 286.24);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.034 285.468);
--card-foreground: oklch(1 0 180);
--border: oklch(0.208 0.054 284.477);
--input: oklch(0.232 0.064 283.997);
--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.276 0.105 280.674);
--accent-foreground: oklch(0.817 0.063 288.738);
--destructive: oklch(0.663 0.219 32.367);
--destructive-foreground: oklch(1 0 180);
--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.276 0.105 280.674);
--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.16 0.044 284.119);
--foreground: oklch(0.966 0.005 274.967);
--muted: oklch(0.255 0.017 288.941);
--muted-foreground: oklch(0.698 0.031 289.393);
--popover: oklch(0.134 0.03 286.24);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.034 285.468);
--card-foreground: oklch(1 0 180);
--border: oklch(0.208 0.054 284.477);
--input: oklch(0.232 0.064 283.997);
--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.276 0.105 280.674);
--accent-foreground: oklch(0.817 0.063 288.738);
--destructive: oklch(0.663 0.219 32.367);
--destructive-foreground: oklch(1 0 180);
--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.276 0.105 280.674);
--chart-4: oklch(0.351 0.066 276.719);
--chart-5: oklch(0.634 0.123 276.577);
}