L aby stone for shadcn/ui

L aby stone is a shadcn/ui theme built around a deep blue primary color (#1b4a6b) with light blue accents (#e2eff8). The light mode uses a neutral background (#ffffff). Dark mode switches to a near-white primary (#fafaf9) on an orange-tinted background (#0c0a09).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0a09black
Foreground
#0c0a09black
#fafaf9snow
Card
#ffffffwhite
#0c0a09black
Card foreground
#0c0a09black
#fafaf9snow
Popover
#ffffffwhite
#0c0a09black
Popover foreground
#0c0a09black
#fafaf9snow
Primary
#1b4a6bdarkslategray
#fafaf9snow
Primary foreground
#fafaf9snow
#1c1917black
Secondary
#e2eff8lavender
#292524darkslategray
Secondary foreground
#0b1f2dblack
#fafaf9snow
Muted
#f5f5f4whitesmoke
#292524darkslategray
Muted foreground
#78716cdimgray
#a8a29edarkgray
Accent
#e2eff8lavender
#292524darkslategray
Accent foreground
#0b1f2dblack
#fafaf9snow
Destructive
#ef4444tomato
#7f1d1dmaroon
Destructive foreground
#fafaf9snow
#fafaf9snow
Border
#e7e5e4gainsboro
#292524darkslategray
Input
#e7e5e4gainsboro
#292524darkslategray
Ring
#0c0a09black
#d6d3d1lightgrey

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button8.98:1AAA
Secondary button14.36:1AAA
Muted text4.39:1AA Large
Accent14.36: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 stone in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.004 49.314);
  --muted: oklch(0.97 0.001 106.424);
  --muted-foreground: oklch(0.553 0.012 58.069);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.004 49.314);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.004 49.314);
  --border: oklch(0.923 0.003 48.716);
  --input: oklch(0.923 0.003 48.716);
  --primary: oklch(0.394 0.075 242.808);
  --primary-foreground: oklch(0.985 0.001 106.424);
  --secondary: oklch(0.945 0.018 237.778);
  --secondary-foreground: oklch(0.23 0.038 241.486);
  --accent: oklch(0.945 0.018 237.778);
  --accent-foreground: oklch(0.23 0.038 241.486);
  --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.394 0.075 242.808);
  --chart-2: oklch(0.945 0.018 237.778);
  --chart-3: oklch(0.945 0.018 237.778);
  --chart-4: oklch(0.968 0.011 237.652);
  --chart-5: oklch(0.395 0.079 243.185);
}

.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);
}