Epic Games Store for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button3.55:1AA Large
Secondary button7.68:1AAA
Muted text6.22:1AA
Accent8.18:1AAA
Destructive6.35:1AA
Dark mode
Text on background18.98:1AAA
Text on card17.70:1AAA
Primary button8.70:1AAA
Secondary button13.14:1AAA
Muted text14.68:1AAA
Accent10.32:1AAA
Destructive3.44:1AA Large

CSS variables

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);
}