External Dodger Blue for shadcn/ui

External Dodger Blue is a shadcn/ui theme built around a vivid blue primary color (#2f84fd) with vivid blue accents (#2f84fd). The light mode uses a blue-tinted background (#eef0f2). Dark mode keeps the vivid blue primary (#007bff) on a blue-tinted background (#062147).

Color palette

TokenLightDark
Background
#eef0f2whitesmoke
#062147midnightblue
Foreground
#212d3edarkslategray
#ffffffwhite
Card
#fcfcfcsnow
#051936black
Card foreground
#020e20black
#ffffffwhite
Popover
#ffffffwhite
#031a34black
Popover foreground
#010204black
#ffffffwhite
Primary
#2f84fddodgerblue
#007bffdodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#9cc3f5lightskyblue
#5781adsteelblue
Secondary foreground
#2f84fddodgerblue
#ffffffwhite
Muted
#cedce9gainsboro
#083361midnightblue
Muted foreground
#6b7275dimgray
#9ea9b5darkgray
Accent
#2f84fddodgerblue
#114378midnightblue
Accent foreground
#ffffffwhite
#beccdalightsteelblue
Destructive
#9c341bbrown
#ff4133tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#d5dde5gainsboro
#123964midnightblue
Input
#d5dde5gainsboro
#123964midnightblue
Ring
#377ac3steelblue
#007bffdodgerblue

Contrast

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

Light mode
Text on background12.17:1AAA
Text on card18.91:1AAA
Primary button3.59:1AA Large
Secondary button1.97:1Fail
Muted text3.50:1AA Large
Accent3.59:1AA Large
Destructive7.19:1AAA
Dark mode
Text on background15.95:1AAA
Text on card17.47:1AAA
Primary button3.97:1AA Large
Secondary button4.08:1AA Large
Muted text5.30:1AA
Accent6.12:1AA
Destructive3.47:1AA Large

CSS variables

Paste this into your globals.css to use External Dodger Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.954 0.003 247.859);
  --foreground: oklch(0.294 0.035 257.11);
  --muted: oklch(0.888 0.024 248.097);
  --muted-foreground: oklch(0.547 0.009 228.825);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.088 0.012 239.56);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.164 0.043 253.197);
  --border: oklch(0.893 0.014 249.793);
  --input: oklch(0.894 0.014 247.984);
  --primary: oklch(0.629 0.198 258.218);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.807 0.083 254.872);
  --secondary-foreground: oklch(0.629 0.198 258.218);
  --accent: oklch(0.629 0.198 258.218);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.474 0.143 34.614);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.572 0.131 252.438);
  --chart-1: oklch(0.629 0.198 258.218);
  --chart-2: oklch(0.807 0.083 254.872);
  --chart-3: oklch(0.629 0.198 258.218);
  --chart-4: oklch(0.834 0.071 254.811);
  --chart-5: oklch(0.629 0.203 258.337);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.253 0.078 257.756);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.322 0.092 254.082);
  --muted-foreground: oklch(0.731 0.021 249.909);
  --popover: oklch(0.217 0.058 251.909);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.217 0.063 257.019);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.343 0.087 253.033);
  --input: oklch(0.342 0.087 253.556);
  --primary: oklch(0.605 0.216 257.16);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.59 0.083 250.946);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.381 0.105 253.679);
  --accent-foreground: oklch(0.838 0.025 249.914);
  --destructive: oklch(0.659 0.228 28.982);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.605 0.216 257.16);
  --chart-1: oklch(0.605 0.216 257.16);
  --chart-2: oklch(0.59 0.083 250.946);
  --chart-3: oklch(0.381 0.105 253.679);
  --chart-4: oklch(0.616 0.077 250.777);
  --chart-5: oklch(0.608 0.221 257.449);
}