Blue Mode for shadcn/ui

Blue Mode is a shadcn/ui theme built around a deep indigo primary color (#1d1d5e) with muted light indigo accents (#babacf). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the deep indigo primary (#1d1d5e) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#010104black
Foreground
#030316black
#f5f5f9whitesmoke
Card
#f8f8fcghostwhite
#010104black
Card foreground
#030316black
#f5f5f9whitesmoke
Popover
#f8f8fcghostwhite
#010104black
Popover foreground
#030316black
#f5f5f9whitesmoke
Primary
#1d1d5emidnightblue
#1d1d5emidnightblue
Primary foreground
#c1c1eclightsteelblue
#c1c1eclightsteelblue
Secondary
#cdcdd5lightgrey
#181820black
Secondary foreground
#33333ddarkslategray
#aaaac0darkgray
Muted
#dfdfecgainsboro
#131320black
Muted foreground
#484861darkslategray
#9e9eb7darkgray
Accent
#babacfsilver
#28283edarkslategray
Accent foreground
#242433darkslategray
#c1c1d7lightsteelblue
Destructive
#960d03darkred
#e11305red
Destructive foreground
#fed0cdpink
#ffffffwhite
Border
#ebebf0lavender
#21212cdarkslategray
Input
#ebebf0lavender
#21212cdarkslategray
Ring
#1d1d5emidnightblue
#1d1d5emidnightblue

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button8.73:1AAA
Secondary button7.90:1AAA
Muted text6.67:1AA
Accent7.99:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.16:1AAA
Primary button8.73:1AAA
Secondary button7.75:1AAA
Muted text7.05:1AAA
Accent8.09:1AAA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.005 286.312);
  --foreground: oklch(0.118 0.046 276.668);
  --muted: oklch(0.907 0.019 286.022);
  --muted-foreground: oklch(0.41 0.042 284.397);
  --popover: oklch(0.98 0.005 286.312);
  --popover-foreground: oklch(0.118 0.046 276.668);
  --card: oklch(0.98 0.005 286.312);
  --card-foreground: oklch(0.118 0.046 276.668);
  --border: oklch(0.94 0.007 286.27);
  --input: oklch(0.94 0.007 286.27);
  --primary: oklch(0.277 0.112 276.204);
  --primary-foreground: oklch(0.824 0.06 284.998);
  --secondary: oklch(0.851 0.011 286.156);
  --secondary-foreground: oklch(0.325 0.018 285.371);
  --accent: oklch(0.795 0.03 285.706);
  --accent-foreground: oklch(0.266 0.029 284.257);
  --destructive: oklch(0.428 0.168 29.998);
  --destructive-foreground: oklch(0.897 0.052 22.95);
  --ring: oklch(0.277 0.112 276.204);
  --chart-1: oklch(0.277 0.112 276.204);
  --chart-2: oklch(0.851 0.011 286.156);
  --chart-3: oklch(0.795 0.03 285.706);
  --chart-4: oklch(0.876 0.009 286.204);
  --chart-5: oklch(0.275 0.118 275.344);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.074 0.018 281.233);
  --foreground: oklch(0.972 0.006 286.293);
  --muted: oklch(0.192 0.028 283.492);
  --muted-foreground: oklch(0.708 0.037 285.43);
  --popover: oklch(0.074 0.018 281.233);
  --popover-foreground: oklch(0.972 0.006 286.293);
  --card: oklch(0.074 0.018 281.233);
  --card-foreground: oklch(0.972 0.006 286.293);
  --border: oklch(0.252 0.02 284.866);
  --input: oklch(0.252 0.02 284.866);
  --primary: oklch(0.277 0.112 276.204);
  --primary-foreground: oklch(0.824 0.06 284.998);
  --secondary: oklch(0.212 0.016 284.908);
  --secondary-foreground: oklch(0.745 0.032 285.606);
  --accent: oklch(0.288 0.039 283.69);
  --accent-foreground: oklch(0.819 0.03 285.722);
  --destructive: oklch(0.576 0.23 29.787);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.277 0.112 276.204);
  --chart-1: oklch(0.277 0.112 276.204);
  --chart-2: oklch(0.212 0.016 284.908);
  --chart-3: oklch(0.288 0.039 283.69);
  --chart-4: oklch(0.241 0.02 284.775);
  --chart-5: oklch(0.275 0.118 275.344);
}