Arcade for shadcn/ui

Arcade is a shadcn/ui theme built around a cyan primary color (#4585a1) with blue accents (#4557a1). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the cyan primary (#4585a1) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#010304black
Foreground
#000000black
#fcfdfdwhite
Card
#f4f9fbghostwhite
#030608black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fbfcghostwhite
#010304black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#4585a1steelblue
#4585a1steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#45a18ecadetblue
#45a18ecadetblue
Secondary foreground
#081210black
#081210black
Muted
#dadddcgainsboro
#222525darkslategray
Muted foreground
#4d5150darkslategray
#aeb2b1darkgray
Accent
#4557a1darkslateblue
#4557a1darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#5f1107maroon
#ea2a10orangered
Destructive foreground
#f8aaa0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4585a1steelblue
#4585a1steelblue

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card19.74:1AAA
Primary button4.09:1AA Large
Secondary button6.08:1AA
Muted text5.88:1AA
Accent6.70:1AA
Destructive7.14:1AAA
Dark mode
Text on background20.27:1AAA
Text on card20.32:1AAA
Primary button4.09:1AA Large
Secondary button6.08:1AA
Muted text7.18:1AAA
Accent6.70:1AA
Destructive4.35:1AA Large

CSS variables

Paste this into your globals.css to use Arcade in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 225.024);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.895 0.004 183.063);
  --muted-foreground: oklch(0.43 0.004 182.916);
  --popover: oklch(0.985 0.004 225.024);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.978 0.006 225.046);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.586 0.078 228.21);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.647 0.092 178.037);
  --secondary-foreground: oklch(0.171 0.016 180.537);
  --accent: oklch(0.48 0.12 270.756);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.319 0.113 31.183);
  --destructive-foreground: oklch(0.811 0.094 27.641);
  --ring: oklch(0.586 0.078 228.21);
  --chart-1: oklch(0.586 0.078 228.21);
  --chart-2: oklch(0.647 0.092 178.037);
  --chart-3: oklch(0.48 0.12 270.756);
  --chart-4: oklch(0.679 0.097 178.004);
  --chart-5: oklch(0.589 0.083 228.583);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.008 219.92);
  --foreground: oklch(0.993 0.001 224.999);
  --muted: oklch(0.263 0.005 182.621);
  --muted-foreground: oklch(0.759 0.004 183.052);
  --popover: oklch(0.093 0.008 219.92);
  --popover-foreground: oklch(0.993 0.001 224.999);
  --card: oklch(0.118 0.011 219.92);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.586 0.078 228.21);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.647 0.092 178.037);
  --secondary-foreground: oklch(0.171 0.016 180.537);
  --accent: oklch(0.48 0.12 270.756);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.603 0.227 30.907);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.586 0.078 228.21);
  --chart-1: oklch(0.586 0.078 228.21);
  --chart-2: oklch(0.647 0.092 178.037);
  --chart-3: oklch(0.48 0.12 270.756);
  --chart-4: oklch(0.679 0.097 178.004);
  --chart-5: oklch(0.589 0.083 228.583);
}