Lad for shadcn/ui

Lad is a shadcn/ui theme built around a muted blue primary color (#565c71) with muted yellow accents (#716a56). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#565c71) on a blue-tinted background (#040710).

Color palette

TokenLightDark
Background
#ffffffwhite
#040710black
Foreground
#010204black
#f8f9fcghostwhite
Card
#fcfcfcsnow
#050914black
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#040710black
Popover foreground
#010204black
#f8f9fcghostwhite
Primary
#565c71dimgray
#565c71dimgray
Primary foreground
#fcfcfdwhite
#fcfcfdwhite
Secondary
#716a56dimgray
#716a56dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1efe9linen
#16140eblack
Muted foreground
#5b5649darkolivegreen
#b6b2a4darkgray
Accent
#716a56dimgray
#716a56dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d04111chocolate
#ee5b2btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#565c71dimgray
#565c71dimgray

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.54:1AAA
Primary button6.44:1AA
Secondary button5.35:1AA
Muted text6.37:1AA
Accent5.35:1AA
Destructive4.74:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.38:1AAA
Primary button6.44:1AA
Secondary button5.35:1AA
Muted text8.68:1AAA
Accent5.35:1AA
Destructive6.17:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.081 0.013 262.91);
  --muted: oklch(0.953 0.008 91.486);
  --muted-foreground: oklch(0.454 0.022 91.744);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.081 0.013 262.91);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.478 0.035 270.589);
  --primary-foreground: oklch(0.992 0.001 271.402);
  --secondary: oklch(0.526 0.033 91.792);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.526 0.033 91.792);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.576 0.187 36.395);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.478 0.035 270.589);
  --chart-1: oklch(0.478 0.035 270.589);
  --chart-2: oklch(0.526 0.033 91.792);
  --chart-3: oklch(0.526 0.033 91.792);
  --chart-4: oklch(0.555 0.035 91.794);
  --chart-5: oklch(0.474 0.042 270.363);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.022 265.026);
  --foreground: oklch(0.982 0.004 271.373);
  --muted: oklch(0.191 0.012 91.799);
  --muted-foreground: oklch(0.763 0.019 91.613);
  --popover: oklch(0.131 0.022 265.026);
  --popover-foreground: oklch(0.982 0.004 271.373);
  --card: oklch(0.142 0.026 266.371);
  --card-foreground: oklch(0.991 0.002 271.391);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.478 0.035 270.589);
  --primary-foreground: oklch(0.992 0.001 271.402);
  --secondary: oklch(0.526 0.033 91.792);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.526 0.033 91.792);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.191 37.786);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.478 0.035 270.589);
  --chart-1: oklch(0.478 0.035 270.589);
  --chart-2: oklch(0.526 0.033 91.792);
  --chart-3: oklch(0.526 0.033 91.792);
  --chart-4: oklch(0.555 0.035 91.794);
  --chart-5: oklch(0.474 0.042 270.363);
}