ok-blue for shadcn/ui

ok-blue is a shadcn/ui theme built around a light blue primary color (#c5daf7) with neutral gray accents (#dcdde0). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the light blue primary (#c5daf7) on a blue-tinted background (#04070b).

Color palette

TokenLightDark
Background
#fbfcfewhite
#04070bblack
Foreground
#020912black
#ffffffwhite
Card
#fbfcfewhite
#04070bblack
Card foreground
#020912black
#ffffffwhite
Popover
#fbfcfewhite
#04070bblack
Popover foreground
#020912black
#ffffffwhite
Primary
#c5daf7powderblue
#c5daf7powderblue
Primary foreground
#113c78midnightblue
#113c78midnightblue
Secondary
#dcdde0gainsboro
#232a34darkslategray
Secondary foreground
#40444adarkslategray
#b9c2d0lightsteelblue
Muted
#e3e5e8gainsboro
#17191cblack
Muted foreground
#485261darkslategray
#9ea9b7darkgray
Accent
#dcdde0gainsboro
#232a34darkslategray
Accent foreground
#40444adarkslategray
#b9c2d0lightsteelblue
Destructive
#97130cdarkred
#ef3d34tomato
Destructive foreground
#fcdbd9mistyrose
#ffffffwhite
Border
#e2e3e4gainsboro
#19191ablack
Input
#e2e3e4gainsboro
#19191ablack
Ring
#c5daf7powderblue
#c5daf7powderblue

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.57:1AAA
Secondary button7.22:1AAA
Muted text6.26:1AA
Accent7.22:1AAA
Destructive6.73:1AA
Dark mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button7.57:1AAA
Secondary button8.06:1AAA
Muted text7.39:1AAA
Accent8.06:1AAA
Destructive3.90:1AA Large

CSS variables

Paste this into your globals.css to use ok-blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 256.663);
  --foreground: oklch(0.135 0.026 248.537);
  --muted: oklch(0.921 0.005 256.674);
  --muted-foreground: oklch(0.435 0.028 256.808);
  --popover: oklch(0.991 0.003 256.663);
  --popover-foreground: oklch(0.135 0.026 248.537);
  --card: oklch(0.991 0.003 256.663);
  --card-foreground: oklch(0.135 0.026 248.537);
  --border: oklch(0.915 0.001 256.656);
  --input: oklch(0.915 0.001 256.656);
  --primary: oklch(0.881 0.046 256.792);
  --primary-foreground: oklch(0.365 0.113 257.958);
  --secondary: oklch(0.898 0.004 256.671);
  --secondary-foreground: oklch(0.385 0.011 256.746);
  --accent: oklch(0.898 0.004 256.671);
  --accent-foreground: oklch(0.385 0.011 256.746);
  --destructive: oklch(0.433 0.166 29.242);
  --destructive-foreground: oklch(0.918 0.037 21.431);
  --ring: oklch(0.881 0.046 256.792);
  --chart-1: oklch(0.881 0.046 256.792);
  --chart-2: oklch(0.898 0.004 256.671);
  --chart-3: oklch(0.898 0.004 256.671);
  --chart-4: oklch(0.922 0.003 256.666);
  --chart-5: oklch(0.881 0.048 256.795);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.011 250.635);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.212 0.007 256.761);
  --muted-foreground: oklch(0.73 0.024 256.758);
  --popover: oklch(0.127 0.011 250.635);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.011 250.635);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.215 0.001 256.677);
  --input: oklch(0.215 0.001 256.677);
  --primary: oklch(0.881 0.046 256.792);
  --primary-foreground: oklch(0.365 0.113 257.958);
  --secondary: oklch(0.282 0.021 256.821);
  --secondary-foreground: oklch(0.812 0.022 256.743);
  --accent: oklch(0.282 0.021 256.821);
  --accent-foreground: oklch(0.812 0.022 256.743);
  --destructive: oklch(0.628 0.215 28.161);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.881 0.046 256.792);
  --chart-1: oklch(0.881 0.046 256.792);
  --chart-2: oklch(0.282 0.021 256.821);
  --chart-3: oklch(0.282 0.021 256.821);
  --chart-4: oklch(0.312 0.024 256.824);
  --chart-5: oklch(0.881 0.048 256.795);
}