Epic Games Store is a shadcn/ui theme built around a yellow primary color (#8c8c17) with muted red accents (#c0b5b5). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid cyan primary (#26bbff) on an indigo-tinted background (#101014).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #101014black |
| Foreground | #0d0d03black | #ffffffwhite |
| Card | #ffffffwhite | #18181cblack |
| Card foreground | #0d0d03black | #ffffffwhite |
| Popover | #ffffffwhite | #18181cblack |
| Popover foreground | #0d0d03black | #ffffffwhite |
| Primary | #8c8c17olive | #26bbffdeepskyblue |
| Primary foreground | #ffffffwhite | #101014black |
| Secondary | #d1d1d1lightgrey | #303034darkslategray |
| Secondary foreground | #383838darkslategray | #ffffffwhite |
| Muted | #e9d8d8gainsboro | #28282cdarkslategray |
| Muted foreground | #4d4c4cdarkslategray | #ffffffwhite |
| Accent | #c0b5b5silver | #404044darkslategray |
| Accent foreground | #241e1eblack | #ffffffwhite |
| Destructive | #8d2b07saddlebrown | #ff3f56tomato |
| Destructive foreground | #fcd7cabisque | #ffffffwhite |
| Border | #efefeblinen | #303034darkslategray |
| Input | #efefeblinen | #404044darkslategray |
| Ring | #8c8c17olive | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 3.55:1 | AA Large |
| Secondary button | 7.68:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 17.70:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 13.14:1 | AAA |
| Muted text | 14.68:1 | AAA |
| Accent | 10.32:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Epic Games Store in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.024 108.932);
--muted: oklch(0.896 0.018 17.499);
--muted-foreground: oklch(0.417 0.002 17.238);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.024 108.932);
--card: oklch(1 0 180);
--card-foreground: oklch(0.154 0.024 108.932);
--border: oklch(0.951 0.005 106.498);
--input: oklch(0.951 0.005 106.498);
--primary: oklch(0.621 0.129 109.627);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.861 0 180);
--secondary-foreground: oklch(0.341 0 158.199);
--accent: oklch(0.781 0.013 17.426);
--accent-foreground: oklch(0.243 0.008 17.729);
--destructive: oklch(0.434 0.138 37.335);
--destructive-foreground: oklch(0.907 0.045 41.006);
--ring: oklch(0.621 0.129 109.627);
--chart-1: oklch(0.621 0.129 109.627);
--chart-2: oklch(0.861 0 180);
--chart-3: oklch(0.781 0.013 17.426);
--chart-4: oklch(0.885 0 180);
--chart-5: oklch(0.629 0.132 109.653);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.175 0.008 285.521);
--foreground: oklch(1 0 180);
--muted: oklch(0.278 0.007 285.918);
--muted-foreground: oklch(1 0 180);
--popover: oklch(0.211 0.008 285.71);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.211 0.008 285.71);
--card-foreground: oklch(1 0 180);
--border: oklch(0.311 0.007 285.98);
--input: oklch(0.373 0.007 286.068);
--primary: oklch(0.749 0.151 235.243);
--primary-foreground: oklch(0.175 0.008 285.521);
--secondary: oklch(0.311 0.007 285.98);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.373 0.007 286.068);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.662 0.226 19.884);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(0.749 0.151 235.243);
--chart-2: oklch(0.736 0.182 147.418);
--chart-3: oklch(0.847 0.165 84.127);
--chart-4: oklch(0.706 0.227 347.523);
--chart-5: oklch(0.634 0.272 311.106);
}