Light blue for shadcn/ui

Light blue is a shadcn/ui theme built around a vivid light blue primary color (#dbe0ff) with vivid light yellow accents (#fffadb). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the vivid light blue primary (#dbe0ff) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#010204black
Foreground
#030517black
#ffffffwhite
Card
#f7f8fdghostwhite
#010204black
Card foreground
#030517black
#ffffffwhite
Popover
#f7f8fdghostwhite
#010204black
Popover foreground
#030517black
#ffffffwhite
Primary
#dbe0fflavender
#dbe0fflavender
Primary foreground
#0016a8darkblue
#0016a8darkblue
Secondary
#fffadbcornsilk
#fffadbcornsilk
Secondary foreground
#423900darkolivegreen
#423900darkolivegreen
Muted
#f6f4ealinen
#151409black
Muted foreground
#5d5a46darkolivegreen
#b9b6a2darkgray
Accent
#fffadbcornsilk
#fffadbcornsilk
Accent foreground
#423900darkolivegreen
#423900darkolivegreen
Destructive
#83180cmaroon
#ed5140tomato
Destructive foreground
#faccc7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbe0fflavender
#dbe0fflavender

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button9.60:1AAA
Secondary button10.99:1AAA
Muted text6.30:1AA
Accent10.99:1AAA
Destructive6.93:1AA
Dark mode
Text on background20.78:1AAA
Text on card20.78:1AAA
Primary button9.60:1AAA
Secondary button10.99:1AAA
Muted text9.06:1AAA
Accent10.99:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 279.237);
  --foreground: oklch(0.127 0.042 268.804);
  --muted: oklch(0.965 0.013 99.543);
  --muted-foreground: oklch(0.465 0.031 100.204);
  --popover: oklch(0.979 0.007 279.237);
  --popover-foreground: oklch(0.127 0.042 268.804);
  --card: oklch(0.979 0.007 279.237);
  --card-foreground: oklch(0.127 0.042 268.804);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.913 0.042 278.597);
  --primary-foreground: oklch(0.347 0.219 264.204);
  --secondary: oklch(0.982 0.041 99.911);
  --secondary-foreground: oklch(0.345 0.072 99.626);
  --accent: oklch(0.982 0.041 99.911);
  --accent-foreground: oklch(0.345 0.072 99.626);
  --destructive: oklch(0.397 0.143 30.488);
  --destructive-foreground: oklch(0.884 0.053 25.585);
  --ring: oklch(0.913 0.042 278.597);
  --chart-1: oklch(0.913 0.042 278.597);
  --chart-2: oklch(0.982 0.041 99.911);
  --chart-3: oklch(0.982 0.041 99.911);
  --chart-4: oklch(0.989 0.023 99.678);
  --chart-5: oklch(0.912 0.044 278.572);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.012 273.953);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.019 100.534);
  --muted-foreground: oklch(0.773 0.028 99.84);
  --popover: oklch(0.081 0.012 273.953);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.081 0.012 273.953);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.913 0.042 278.597);
  --primary-foreground: oklch(0.347 0.219 264.204);
  --secondary: oklch(0.982 0.041 99.911);
  --secondary-foreground: oklch(0.345 0.072 99.626);
  --accent: oklch(0.982 0.041 99.911);
  --accent-foreground: oklch(0.345 0.072 99.626);
  --destructive: oklch(0.647 0.195 29.672);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.913 0.042 278.597);
  --chart-1: oklch(0.913 0.042 278.597);
  --chart-2: oklch(0.982 0.041 99.911);
  --chart-3: oklch(0.982 0.041 99.911);
  --chart-4: oklch(0.989 0.023 99.678);
  --chart-5: oklch(0.912 0.044 278.572);
}