Landmine for shadcn/ui

Landmine is a shadcn/ui theme built around a muted yellow primary color (#cac5a0) with muted light yellow accents (#dcdbd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#cac5a0) on a yellow-tinted background (#0e0d06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0d06black
Foreground
#0c0b04black
#ffffffwhite
Card
#ffffffwhite
#0e0d06black
Card foreground
#0c0b04black
#ffffffwhite
Popover
#ffffffwhite
#0e0d06black
Popover foreground
#0c0b04black
#ffffffwhite
Primary
#cac5a0tan
#cac5a0tan
Primary foreground
#242214black
#242214black
Secondary
#dcdbd6gainsboro
#2a2a28darkslategray
Secondary foreground
#45443bdarkslategray
#c4c3c0silver
Muted
#efeee6linen
#191810black
Muted foreground
#47463edarkslategray
#c1c0b8silver
Accent
#dcdbd6gainsboro
#2a2a28darkslategray
Accent foreground
#45443bdarkslategray
#c4c3c0silver
Destructive
#7e2102maroon
#fc6836tomato
Destructive foreground
#fec6b4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cac5a0tan
#cac5a0tan

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button9.17:1AAA
Secondary button7.06:1AAA
Muted text8.17:1AAA
Accent7.06:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button9.17:1AAA
Secondary button8.18:1AAA
Muted text9.73:1AAA
Accent8.18:1AAA
Destructive7.15:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.017 103.121);
  --muted: oklch(0.949 0.012 100.515);
  --muted-foreground: oklch(0.392 0.014 100.836);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.017 103.121);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.146 0.017 103.121);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.819 0.051 101.197);
  --primary-foreground: oklch(0.251 0.025 101.6);
  --secondary: oklch(0.891 0.007 100.456);
  --secondary-foreground: oklch(0.384 0.015 100.895);
  --accent: oklch(0.891 0.007 100.456);
  --accent-foreground: oklch(0.384 0.015 100.895);
  --destructive: oklch(0.395 0.132 36.334);
  --destructive-foreground: oklch(0.872 0.069 39.234);
  --ring: oklch(0.819 0.051 101.197);
  --chart-1: oklch(0.819 0.051 101.197);
  --chart-2: oklch(0.891 0.007 100.456);
  --chart-3: oklch(0.891 0.007 100.456);
  --chart-4: oklch(0.913 0.006 100.428);
  --chart-5: oklch(0.824 0.056 101.264);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.014 101.922);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.208 0.016 101.378);
  --muted-foreground: oklch(0.807 0.011 100.544);
  --popover: oklch(0.158 0.014 101.922);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.014 101.922);
  --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.819 0.051 101.197);
  --primary-foreground: oklch(0.251 0.025 101.6);
  --secondary: oklch(0.283 0.004 100.539);
  --secondary-foreground: oklch(0.817 0.005 100.415);
  --accent: oklch(0.283 0.004 100.539);
  --accent-foreground: oklch(0.817 0.005 100.415);
  --destructive: oklch(0.696 0.192 38.131);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.819 0.051 101.197);
  --chart-1: oklch(0.819 0.051 101.197);
  --chart-2: oklch(0.283 0.004 100.539);
  --chart-3: oklch(0.283 0.004 100.539);
  --chart-4: oklch(0.315 0.005 100.547);
  --chart-5: oklch(0.824 0.056 101.264);
}