Farmland for shadcn/ui

Farmland is a shadcn/ui theme built around a muted deep orange primary color (#433628) with muted deep yellow accents (#434328). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#433628) on an orange-tinted background (#0e0a06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0a06black
Foreground
#110a03black
#fdfcfcsnow
Card
#ffffffwhite
#0e0a06black
Card foreground
#110a03black
#fdfcfcsnow
Popover
#ffffffwhite
#0e0a06black
Popover foreground
#110a03black
#fdfcfcsnow
Primary
#433628darkslategray
#433628darkslategray
Primary foreground
#dbcfc2lightgrey
#dbcfc2lightgrey
Secondary
#432828darkslategray
#432828darkslategray
Secondary foreground
#dbc2c2thistle
#dbc2c2thistle
Muted
#e8d9d9gainsboro
#261717black
Muted foreground
#624b4bdimgray
#b49d9ddarkgray
Accent
#434328darkolivegreen
#434328darkolivegreen
Accent foreground
#dbdbc2lightgrey
#dbdbc2lightgrey
Destructive
#883007saddlebrown
#f5773dcoral
Destructive foreground
#fcd6c5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#433628darkslategray
#433628darkslategray

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button7.66:1AAA
Secondary button7.94:1AAA
Muted text5.84:1AA
Accent7.20:1AAA
Destructive6.31:1AA
Dark mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button7.66:1AAA
Secondary button7.94:1AAA
Muted text6.76:1AA
Accent7.20:1AAA
Destructive7.59:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.152 0.021 72.702);
  --muted: oklch(0.897 0.016 17.459);
  --muted-foreground: oklch(0.438 0.031 18.391);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.152 0.021 72.702);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.152 0.021 72.702);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.342 0.029 66.582);
  --primary-foreground: oklch(0.86 0.021 67.538);
  --secondary: oklch(0.311 0.04 19.611);
  --secondary-foreground: oklch(0.836 0.027 17.715);
  --accent: oklch(0.375 0.042 108.272);
  --accent-foreground: oklch(0.884 0.032 107.045);
  --destructive: oklch(0.432 0.129 40.519);
  --destructive-foreground: oklch(0.904 0.048 46.329);
  --ring: oklch(0.342 0.029 66.582);
  --chart-1: oklch(0.342 0.029 66.582);
  --chart-2: oklch(0.311 0.04 19.611);
  --chart-3: oklch(0.375 0.042 108.272);
  --chart-4: oklch(0.339 0.045 19.694);
  --chart-5: oklch(0.343 0.033 66.379);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.011 70.123);
  --foreground: oklch(0.993 0.001 67.806);
  --muted: oklch(0.225 0.024 19.108);
  --muted-foreground: oklch(0.716 0.027 17.791);
  --popover: oklch(0.149 0.011 70.123);
  --popover-foreground: oklch(0.993 0.001 67.806);
  --card: oklch(0.149 0.011 70.123);
  --card-foreground: oklch(0.993 0.001 67.806);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.342 0.029 66.582);
  --primary-foreground: oklch(0.86 0.021 67.538);
  --secondary: oklch(0.311 0.04 19.611);
  --secondary-foreground: oklch(0.836 0.027 17.715);
  --accent: oklch(0.375 0.042 108.272);
  --accent-foreground: oklch(0.884 0.032 107.045);
  --destructive: oklch(0.708 0.17 43.545);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.342 0.029 66.582);
  --chart-1: oklch(0.342 0.029 66.582);
  --chart-2: oklch(0.311 0.04 19.611);
  --chart-3: oklch(0.375 0.042 108.272);
  --chart-4: oklch(0.339 0.045 19.694);
  --chart-5: oklch(0.343 0.033 66.379);
}