New Car Hummingbird for shadcn/ui

New Car Hummingbird is a shadcn/ui theme built around a vivid blue primary color (#1d4ed8) with near-white accents (#f4f4f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#1d4ed8) on a neutral background (#0c0c0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0c0dblack
Foreground
#09090bblack
#fafafasnow
Card
#f7f7f7whitesmoke
#0f0f10black
Card foreground
#09090bblack
#fafafasnow
Popover
#f7f7f7whitesmoke
#09090bblack
Popover foreground
#09090bblack
#fafafasnow
Primary
#1d4ed8royalblue
#1d4ed8royalblue
Primary foreground
#fafafasnow
#ffffffwhite
Secondary
#e3e3e3gainsboro
#27272adarkslategray
Secondary foreground
#18181bblack
#fafafasnow
Muted
#e2e2e4gainsboro
#222225black
Muted foreground
#71717adimgray
#a1a1aadarkgray
Accent
#f4f4f5whitesmoke
#27272adarkslategray
Accent foreground
#18181bblack
#fafafasnow
Destructive
#ef4444tomato
#7f1d1dmaroon
Destructive foreground
#fafafasnow
#fafafasnow
Border
#e4e4e7gainsboro
#27272adarkslategray
Input
#e4e4e7gainsboro
#27272adarkslategray
Ring
#1d4ed8royalblue
#1d4ed8royalblue

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card18.62:1AAA
Primary button6.42:1AA
Secondary button13.79:1AAA
Muted text3.74:1AA Large
Accent16.12:1AAA
Destructive3.60:1AA Large
Dark mode
Text on background18.70:1AAA
Text on card18.37:1AAA
Primary button6.70:1AA
Secondary button14.26:1AAA
Muted text6.17:1AA
Accent14.26:1AAA
Destructive9.59:1AAA

CSS variables

Paste this into your globals.css to use New Car Hummingbird in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.004 285.824);
  --muted: oklch(0.914 0.002 286.37);
  --muted-foreground: oklch(0.552 0.014 285.942);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.141 0.004 285.824);
  --card: oklch(0.977 0 180);
  --card-foreground: oklch(0.141 0.004 285.824);
  --border: oklch(0.92 0.004 286.32);
  --input: oklch(0.92 0.004 286.32);
  --primary: oklch(0.488 0.217 264.377);
  --primary-foreground: oklch(0.985 0 180);
  --secondary: oklch(0.916 0 180);
  --secondary-foreground: oklch(0.21 0.006 285.883);
  --accent: oklch(0.968 0.001 286.375);
  --accent-foreground: oklch(0.21 0.006 285.883);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.488 0.217 264.377);
  --chart-1: oklch(0.529 0.193 262.129);
  --chart-2: oklch(0.698 0.134 165.463);
  --chart-3: oklch(0.723 0.15 60.631);
  --chart-4: oklch(0.619 0.204 312.728);
  --chart-5: oklch(0.612 0.209 6.386);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.002 286.149);
  --foreground: oklch(0.985 0 180);
  --muted: oklch(0.254 0.005 286.016);
  --muted-foreground: oklch(0.712 0.013 286.068);
  --popover: oklch(0.141 0.004 285.824);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.168 0.002 286.195);
  --card-foreground: oklch(0.985 0 180);
  --border: oklch(0.274 0.005 286.033);
  --input: oklch(0.274 0.005 286.033);
  --primary: oklch(0.488 0.217 264.377);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.274 0.005 286.033);
  --secondary-foreground: oklch(0.985 0 180);
  --accent: oklch(0.274 0.005 286.033);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.396 0.133 25.721);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.488 0.217 264.377);
  --chart-1: oklch(0.529 0.193 262.129);
  --chart-2: oklch(0.698 0.134 165.463);
  --chart-3: oklch(0.723 0.15 60.631);
  --chart-4: oklch(0.619 0.204 312.728);
  --chart-5: oklch(0.612 0.209 6.386);
}