L- aby slate for shadcn/ui

L- aby slate is a shadcn/ui theme built around a deep blue primary color (#163b56) with light blue accents (#cbdce7). The light mode uses a neutral background (#f5f5f4). Dark mode switches to a near-white primary (#fafaf9) on an orange-tinted background (#0c0a09).

Color palette

TokenLightDark
Background
#f5f5f4whitesmoke
#0c0a09black
Foreground
#0c0a09black
#fafaf9snow
Card
#f5f5f4whitesmoke
#0c0a09black
Card foreground
#0c0a09black
#fafaf9snow
Popover
#f5f5f4whitesmoke
#0c0a09black
Popover foreground
#0c0a09black
#fafaf9snow
Primary
#163b56darkslategray
#fafaf9snow
Primary foreground
#fafaf9snow
#1c1917black
Secondary
#cbdce7gainsboro
#292524darkslategray
Secondary foreground
#082031black
#fafaf9snow
Muted
#d4d4d4lightgrey
#292524darkslategray
Muted foreground
#35312edarkslategray
#a8a29edarkgray
Accent
#cbdce7gainsboro
#292524darkslategray
Accent foreground
#082031black
#fafaf9snow
Destructive
#ef4444tomato
#7f1d1dmaroon
Destructive foreground
#fafaf9snow
#fafaf9snow
Border
#d4d4d4lightgrey
#292524darkslategray
Input
#e7e5e4gainsboro
#292524darkslategray
Ring
#0c0a09black
#d6d3d1lightgrey

Contrast

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

Light mode
Text on background18.10:1AAA
Text on card18.10:1AAA
Primary button11.20:1AAA
Secondary button11.82:1AAA
Muted text8.67:1AAA
Accent11.83:1AAA
Destructive3.60:1AA Large
Dark mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button16.73:1AAA
Secondary button14.52:1AAA
Muted text6.01:1AA
Accent14.52:1AAA
Destructive9.58:1AAA

CSS variables

Paste this into your globals.css to use L- aby slate in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.97 0.001 106.424);
  --foreground: oklch(0.147 0.004 49.314);
  --muted: oklch(0.869 0 180);
  --muted-foreground: oklch(0.317 0.007 58.045);
  --popover: oklch(0.97 0.001 106.424);
  --popover-foreground: oklch(0.147 0.004 49.314);
  --card: oklch(0.97 0.001 106.424);
  --card-foreground: oklch(0.147 0.004 49.314);
  --border: oklch(0.87 0 180);
  --input: oklch(0.923 0.003 48.716);
  --primary: oklch(0.34 0.063 243.415);
  --primary-foreground: oklch(0.985 0.001 106.424);
  --secondary: oklch(0.885 0.024 237.896);
  --secondary-foreground: oklch(0.234 0.044 242.757);
  --accent: oklch(0.885 0.024 236.005);
  --accent-foreground: oklch(0.234 0.044 242.509);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(0.985 0.001 106.424);
  --ring: oklch(0.147 0.004 49.314);
  --chart-1: oklch(0.34 0.063 243.415);
  --chart-2: oklch(0.885 0.024 237.896);
  --chart-3: oklch(0.885 0.024 236.005);
  --chart-4: oklch(0.908 0.019 237.802);
  --chart-5: oklch(0.341 0.066 243.756);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.004 49.314);
  --foreground: oklch(0.985 0.001 106.424);
  --muted: oklch(0.269 0.006 34.297);
  --muted-foreground: oklch(0.716 0.009 56.26);
  --popover: oklch(0.147 0.004 49.314);
  --popover-foreground: oklch(0.985 0.001 106.424);
  --card: oklch(0.147 0.004 49.314);
  --card-foreground: oklch(0.985 0.001 106.424);
  --border: oklch(0.269 0.006 34.297);
  --input: oklch(0.269 0.006 34.297);
  --primary: oklch(0.985 0.001 106.424);
  --primary-foreground: oklch(0.216 0.006 56.043);
  --secondary: oklch(0.269 0.006 34.297);
  --secondary-foreground: oklch(0.985 0.001 106.424);
  --accent: oklch(0.269 0.006 34.297);
  --accent-foreground: oklch(0.985 0.001 106.424);
  --destructive: oklch(0.396 0.133 25.721);
  --destructive-foreground: oklch(0.985 0.001 106.424);
  --ring: oklch(0.868 0.004 56.366);
  --chart-1: oklch(0.985 0.001 106.424);
  --chart-2: oklch(0.269 0.006 34.297);
  --chart-3: oklch(0.269 0.006 34.297);
  --chart-4: oklch(0.299 0.007 34.298);
  --chart-5: oklch(0.985 0.002 106.432);
}