BrightBlue for shadcn/ui

BrightBlue is a shadcn/ui theme built around a vivid blue primary color (#0090f0) with neutral gray accents (#dee1e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#0090f0) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#ffffffwhite
#030607black
Foreground
#010609black
#f9fafbghostwhite
Card
#ffffffwhite
#030607black
Card foreground
#010609black
#f9fafbghostwhite
Popover
#ffffffwhite
#030607black
Popover foreground
#010609black
#f9fafbghostwhite
Primary
#0090f0dodgerblue
#0090f0dodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dee1e3gainsboro
#26292bdarkslategray
Secondary foreground
#42484cdarkslategray
#bec3c5silver
Muted
#e2e3e4gainsboro
#1b1c1dblack
Muted foreground
#384147darkslategray
#b8c1c7silver
Accent
#dee1e3gainsboro
#26292bdarkslategray
Accent foreground
#42484cdarkslategray
#bec3c5silver
Destructive
#b23a0afirebrick
#f25c21chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#ededeewhitesmoke
#1e1f1fblack
Input
#ededeewhitesmoke
#1e1f1fblack
Ring
#0090f0dodgerblue
#0090f0dodgerblue

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button3.36:1AA Large
Secondary button7.05:1AAA
Muted text8.11:1AAA
Accent7.05:1AAA
Destructive5.98:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button3.36:1AA Large
Secondary button8.19:1AAA
Muted text9.31:1AAA
Accent8.19:1AAA
Destructive6.34:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.115 0.015 227.734);
  --muted: oklch(0.916 0.002 236.473);
  --muted-foreground: oklch(0.37 0.016 237.101);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.115 0.015 227.734);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.115 0.015 227.734);
  --border: oklch(0.947 0.001 236.445);
  --input: oklch(0.947 0.001 236.445);
  --primary: oklch(0.639 0.175 248.687);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.908 0.004 236.493);
  --secondary-foreground: oklch(0.399 0.01 236.819);
  --accent: oklch(0.908 0.004 236.493);
  --accent-foreground: oklch(0.399 0.01 236.819);
  --destructive: oklch(0.519 0.164 37.979);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.639 0.175 248.687);
  --chart-1: oklch(0.639 0.175 248.687);
  --chart-2: oklch(0.908 0.004 236.493);
  --chart-3: oklch(0.908 0.004 236.493);
  --chart-4: oklch(0.931 0.003 236.477);
  --chart-5: oklch(0.643 0.179 249.117);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.009 230.846);
  --foreground: oklch(0.985 0.001 236.451);
  --muted: oklch(0.227 0.003 236.65);
  --muted-foreground: oklch(0.805 0.013 236.676);
  --popover: oklch(0.115 0.009 230.846);
  --popover-foreground: oklch(0.985 0.001 236.451);
  --card: oklch(0.115 0.009 230.846);
  --card-foreground: oklch(0.985 0.001 236.451);
  --border: oklch(0.238 0.001 236.523);
  --input: oklch(0.238 0.001 236.523);
  --primary: oklch(0.639 0.175 248.687);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.28 0.006 236.725);
  --secondary-foreground: oklch(0.813 0.006 236.548);
  --accent: oklch(0.28 0.006 236.725);
  --accent-foreground: oklch(0.813 0.006 236.548);
  --destructive: oklch(0.665 0.196 39.278);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.639 0.175 248.687);
  --chart-1: oklch(0.639 0.175 248.687);
  --chart-2: oklch(0.28 0.006 236.725);
  --chart-3: oklch(0.28 0.006 236.725);
  --chart-4: oklch(0.311 0.006 236.738);
  --chart-5: oklch(0.643 0.179 249.117);
}