Ligand for shadcn/ui

Ligand is a shadcn/ui theme built around a light orange primary color (#f2d2c5) with light cyan accents (#c5e5f2). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the light orange primary (#f2d2c5) on an orange-tinted background (#0c0604).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0c0604black
Foreground
#150905black
#ffffffwhite
Card
#fdfcfcsnow
#0c0604black
Card foreground
#150905black
#ffffffwhite
Popover
#fdfcfcsnow
#0c0604black
Popover foreground
#150905black
#ffffffwhite
Primary
#f2d2c5peachpuff
#f2d2c5peachpuff
Primary foreground
#6c3019saddlebrown
#6c3019saddlebrown
Secondary
#c5e5f2paleturquoise
#c5e5f2paleturquoise
Secondary foreground
#19546cdarkslategray
#19546cdarkslategray
Muted
#d8e8eelavender
#112127black
Muted foreground
#4a5154darkslategray
#abb2b5darkgray
Accent
#c5e5f2paleturquoise
#c5e5f2paleturquoise
Accent foreground
#19546cdarkslategray
#19546cdarkslategray
Destructive
#c51411firebrick
#d31612firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2d2c5peachpuff
#f2d2c5peachpuff

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button7.10:1AAA
Secondary button6.27:1AA
Muted text6.42:1AA
Accent6.27:1AA
Destructive6.02:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button7.10:1AAA
Secondary button6.27:1AA
Muted text7.69:1AAA
Accent6.27:1AA
Destructive5.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 43.117);
  --foreground: oklch(0.157 0.023 46.715);
  --muted: oklch(0.92 0.019 223.357);
  --muted-foreground: oklch(0.43 0.01 223.381);
  --popover: oklch(0.992 0.001 43.117);
  --popover-foreground: oklch(0.157 0.023 46.715);
  --card: oklch(0.992 0.001 43.117);
  --card-foreground: oklch(0.157 0.023 46.715);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.886 0.04 42.787);
  --primary-foreground: oklch(0.387 0.093 41.148);
  --secondary: oklch(0.903 0.038 223.654);
  --secondary-foreground: oklch(0.421 0.071 228.743);
  --accent: oklch(0.903 0.038 223.654);
  --accent-foreground: oklch(0.421 0.071 228.743);
  --destructive: oklch(0.524 0.206 28.703);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.886 0.04 42.787);
  --chart-1: oklch(0.886 0.04 42.787);
  --chart-2: oklch(0.903 0.038 223.654);
  --chart-3: oklch(0.903 0.038 223.654);
  --chart-4: oklch(0.923 0.03 223.509);
  --chart-5: oklch(0.886 0.042 42.774);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.014 50.125);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.025 225.145);
  --muted-foreground: oklch(0.759 0.009 223.247);
  --popover: oklch(0.13 0.014 50.125);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.13 0.014 50.125);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.886 0.04 42.787);
  --primary-foreground: oklch(0.387 0.093 41.148);
  --secondary: oklch(0.903 0.038 223.654);
  --secondary-foreground: oklch(0.421 0.071 228.743);
  --accent: oklch(0.903 0.038 223.654);
  --accent-foreground: oklch(0.421 0.071 228.743);
  --destructive: oklch(0.551 0.217 28.74);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.886 0.04 42.787);
  --chart-1: oklch(0.886 0.04 42.787);
  --chart-2: oklch(0.903 0.038 223.654);
  --chart-3: oklch(0.903 0.038 223.654);
  --chart-4: oklch(0.923 0.03 223.509);
  --chart-5: oklch(0.886 0.042 42.774);
}