Historic Blue Racer for shadcn/ui

Historic Blue Racer is a shadcn/ui theme built around a cyan primary color (#4691a1) with indigo accents (#3a3aab). The light mode uses a neutral background (#fcf7fd). Dark mode switches to a teal primary (#4da2a7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf7fdghostwhite
#000000black
Foreground
#0a030cblack
#faf9fbghostwhite
Card
#fcf7fdghostwhite
#070707black
Card foreground
#0a030cblack
#faf9fbghostwhite
Popover
#fcf7fdghostwhite
#000000black
Popover foreground
#0a030cblack
#faf9fbghostwhite
Primary
#4691a1steelblue
#4da2a7cadetblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#594195rebeccapurple
#6533a1rebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0eef7whitesmoke
#0b0811black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#3a3aabdarkslateblue
#111823black
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b40a04firebrick
#fa1c14red
Destructive foreground
#ffeceblinen
#ffffffwhite
Border
#e6e5e6gainsboro
#222022black
Input
#e6e5e6gainsboro
#222022black
Ring
#68a2c8cornflowerblue
#44a9abcadetblue

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button3.59:1AA Large
Secondary button8.01:1AAA
Muted text7.33:1AAA
Accent8.89:1AAA
Destructive6.18:1AA
Dark mode
Text on background20.00:1AAA
Text on card19.20:1AAA
Primary button2.99:1Fail
Secondary button8.29:1AAA
Muted text9.47:1AAA
Accent17.81:1AAA
Destructive4.00:1AA Large

CSS variables

Paste this into your globals.css to use Historic Blue Racer in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.01 318.887);
  --foreground: oklch(0.12 0.031 320.615);
  --muted: oklch(0.952 0.013 299.072);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.981 0.01 318.887);
  --popover-foreground: oklch(0.12 0.031 320.615);
  --card: oklch(0.981 0.01 318.887);
  --card-foreground: oklch(0.12 0.031 320.615);
  --border: oklch(0.923 0.002 318.89);
  --input: oklch(0.923 0.002 318.89);
  --primary: oklch(0.616 0.078 212.854);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.445 0.132 293.383);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.423 0.176 275.863);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.486 0.195 29.429);
  --destructive-foreground: oklch(0.957 0.021 19.915);
  --ring: oklch(0.688 0.082 238.375);
  --chart-1: oklch(0.616 0.078 212.854);
  --chart-2: oklch(0.445 0.132 293.383);
  --chart-3: oklch(0.423 0.176 275.863);
  --chart-4: oklch(0.467 0.139 293.32);
  --chart-5: oklch(0.622 0.082 213.094);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 318.89);
  --muted: oklch(0.144 0.021 297.158);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 318.89);
  --card: oklch(0.128 0 169.695);
  --card-foreground: oklch(0.984 0.002 318.89);
  --border: oklch(0.247 0.003 318.886);
  --input: oklch(0.247 0.003 318.886);
  --primary: oklch(0.661 0.082 200.639);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.444 0.169 300.337);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.208 0.024 259.275);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.626 0.247 29.122);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.676 0.092 196.958);
  --chart-1: oklch(0.661 0.082 200.639);
  --chart-2: oklch(0.444 0.169 300.337);
  --chart-3: oklch(0.208 0.024 259.275);
  --chart-4: oklch(0.467 0.179 300.267);
  --chart-5: oklch(0.669 0.087 200.67);
}