BLUE for shadcn/ui

BLUE is a shadcn/ui theme built around a vivid light blue primary color (#82aaff) with neutral gray accents (#302e2c). The light mode uses a blue-tinted background (#e8f4fd). Dark mode keeps the vivid light blue primary (#82aaff) on a blue-tinted background (#090b10).

Color palette

TokenLightDark
Background
#e8f4fdaliceblue
#090b10black
Foreground
#191919black
#fefefewhite
Card
#d1e8fflavender
#0f111ablack
Card foreground
#191919black
#fefefewhite
Popover
#d1e8fflavender
#0e0a07black
Popover foreground
#fefefewhite
#fefefewhite
Primary
#82aafflightskyblue
#82aafflightskyblue
Primary foreground
#000000black
#000000black
Secondary
#302e2cdarkslategray
#302e2cdarkslategray
Secondary foreground
#cac6c4silver
#cac6c4silver
Muted
#201813black
#201813black
Muted foreground
#b1adaadarkgray
#b1adaadarkgray
Accent
#302e2cdarkslategray
#302e2cdarkslategray
Accent foreground
#cac6c4silver
#cac6c4silver
Destructive
#800000maroon
#800000maroon
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#221e1bblack
#221e1bblack
Input
#221e1bblack
#221e1bblack
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background15.71:1AAA
Text on card13.95:1AAA
Primary button9.14:1AAA
Secondary button8.01:1AAA
Muted text7.82:1AAA
Accent8.01:1AAA
Destructive10.94:1AAA
Dark mode
Text on background19.51:1AAA
Text on card18.66:1AAA
Primary button9.14:1AAA
Secondary button8.01:1AAA
Muted text7.82:1AAA
Accent8.01:1AAA
Destructive10.94:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.961 0.017 242.753);
  --foreground: oklch(0.213 0 168.69);
  --muted: oklch(0.218 0.015 57.374);
  --muted-foreground: oklch(0.749 0.006 58.254);
  --popover: oklch(0.921 0.04 248.259);
  --popover-foreground: oklch(0.997 0 180);
  --card: oklch(0.921 0.04 248.264);
  --card-foreground: oklch(0.213 0 168.69);
  --border: oklch(0.239 0.009 57.85);
  --input: oklch(0.239 0.009 57.85);
  --primary: oklch(0.744 0.131 264.279);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.301 0.005 58.124);
  --secondary-foreground: oklch(0.83 0.005 58.28);
  --accent: oklch(0.301 0.005 58.124);
  --accent-foreground: oklch(0.83 0.005 58.28);
  --destructive: oklch(0.377 0.155 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(0.744 0.131 264.279);
  --chart-2: oklch(0.301 0.005 58.124);
  --chart-3: oklch(0.301 0.005 58.124);
  --chart-4: oklch(0.332 0.006 58.116);
  --chart-5: oklch(0.743 0.135 264.222);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.15 0.011 267.691);
  --foreground: oklch(0.997 0 180);
  --muted: oklch(0.218 0.015 57.374);
  --muted-foreground: oklch(0.749 0.006 58.254);
  --popover: oklch(0.147 0.01 60.947);
  --popover-foreground: oklch(0.997 0 180);
  --card: oklch(0.18 0.019 274.648);
  --card-foreground: oklch(0.997 0 180);
  --border: oklch(0.239 0.009 57.85);
  --input: oklch(0.239 0.009 57.85);
  --primary: oklch(0.744 0.131 264.279);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.301 0.005 58.124);
  --secondary-foreground: oklch(0.83 0.005 58.28);
  --accent: oklch(0.301 0.005 58.124);
  --accent-foreground: oklch(0.83 0.005 58.28);
  --destructive: oklch(0.377 0.155 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(0.744 0.131 264.279);
  --chart-2: oklch(0.301 0.005 58.124);
  --chart-3: oklch(0.301 0.005 58.124);
  --chart-4: oklch(0.332 0.006 58.116);
  --chart-5: oklch(0.743 0.135 264.222);
}