azul y menos intenso el blanco for shadcn/ui

azul y menos intenso el blanco is a shadcn/ui theme built around an indigo primary color (#2e317e) with light blue accents (#f1f5f9). The light mode uses a neutral background (#f1f1f1). Dark mode keeps the indigo primary (#2e317e) on a blue-tinted background (#010510).

Color palette

TokenLightDark
Background
#f1f1f1whitesmoke
#010510black
Foreground
#020817black
#f8fafcghostwhite
Card
#fffff8snow
#020817black
Card foreground
#020817black
#f8fafcghostwhite
Popover
#ffffffwhite
#020817black
Popover foreground
#020817black
#f8fafcghostwhite
Primary
#2e317edarkslateblue
#2e317edarkslateblue
Primary foreground
#f8fafcghostwhite
#f7f9fdghostwhite
Secondary
#f9a12cgoldenrod
#7081aclightslategray
Secondary foreground
#0f172ablack
#fffff8snow
Muted
#f1f5f9whitesmoke
#1e293bdarkslategray
Muted foreground
#64748bslategray
#94a3b8darkgray
Accent
#f1f5f9whitesmoke
#1e293bdarkslategray
Accent foreground
#0f172ablack
#f8fafcghostwhite
Destructive
#ef4444tomato
#7f1d1dmaroon
Destructive foreground
#f8fafcghostwhite
#f8fafcghostwhite
Border
#e2e8f0lavender
#1e293bdarkslategray
Input
#e2e8f0lavender
#1e293bdarkslategray
Ring
#f9a12cgoldenrod
#f9a12cgoldenrod

Contrast

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

Light mode
Text on background17.75:1AAA
Text on card19.92:1AAA
Primary button10.80:1AAA
Secondary button8.63:1AAA
Muted text4.34:1AA Large
Accent16.30:1AAA
Destructive3.59:1AA Large
Dark mode
Text on background19.45:1AAA
Text on card19.10:1AAA
Primary button10.72:1AAA
Secondary button3.85:1AA Large
Muted text5.69:1AA
Accent13.95:1AAA
Destructive9.57:1AAA

CSS variables

Paste this into your globals.css to use azul y menos intenso el blanco in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.959 0 187.595);
  --foreground: oklch(0.137 0.036 258.526);
  --muted: oklch(0.968 0.007 247.895);
  --muted-foreground: oklch(0.555 0.041 257.44);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.036 258.526);
  --card: oklch(0.998 0.009 106.564);
  --card-foreground: oklch(0.137 0.036 258.526);
  --border: oklch(0.929 0.013 255.532);
  --input: oklch(0.929 0.013 255.532);
  --primary: oklch(0.36 0.128 276.182);
  --primary-foreground: oklch(0.984 0.003 247.859);
  --secondary: oklch(0.78 0.159 67.69);
  --secondary-foreground: oklch(0.208 0.04 265.727);
  --accent: oklch(0.968 0.007 247.895);
  --accent-foreground: oklch(0.208 0.04 265.727);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(0.984 0.003 247.859);
  --ring: oklch(0.78 0.159 67.69);
  --chart-1: oklch(0.36 0.128 276.182);
  --chart-2: oklch(0.78 0.159 67.69);
  --chart-3: oklch(0.968 0.007 247.895);
  --chart-4: oklch(0.793 0.152 69.295);
  --chart-5: oklch(0.355 0.135 275.386);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.029 254.733);
  --foreground: oklch(0.984 0.003 247.859);
  --muted: oklch(0.28 0.037 259.974);
  --muted-foreground: oklch(0.711 0.035 256.788);
  --popover: oklch(0.137 0.036 258.526);
  --popover-foreground: oklch(0.984 0.003 247.859);
  --card: oklch(0.137 0.036 258.526);
  --card-foreground: oklch(0.984 0.003 247.859);
  --border: oklch(0.28 0.037 259.974);
  --input: oklch(0.28 0.037 259.974);
  --primary: oklch(0.36 0.128 276.182);
  --primary-foreground: oklch(0.982 0.005 267.664);
  --secondary: oklch(0.606 0.069 267.656);
  --secondary-foreground: oklch(0.998 0.009 106.564);
  --accent: oklch(0.28 0.037 259.974);
  --accent-foreground: oklch(0.984 0.003 247.859);
  --destructive: oklch(0.396 0.133 25.721);
  --destructive-foreground: oklch(0.984 0.003 247.859);
  --ring: oklch(0.78 0.159 67.69);
  --chart-1: oklch(0.36 0.128 276.182);
  --chart-2: oklch(0.606 0.069 267.656);
  --chart-3: oklch(0.28 0.037 259.974);
  --chart-4: oklch(0.634 0.063 267.82);
  --chart-5: oklch(0.355 0.135 275.386);
}