Larch for shadcn/ui

Larch is a shadcn/ui theme built around a muted red primary color (#746363) with muted orange accents (#746b63). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#746363) on a neutral background (#080202).

Color palette

TokenLightDark
Background
#ffffffwhite
#080202black
Foreground
#140505black
#f8f6f6whitesmoke
Card
#fcfcfcsnow
#0c0303black
Card foreground
#100404black
#fbf9f9snow
Popover
#ffffffwhite
#080202black
Popover foreground
#140505black
#f8f6f6whitesmoke
Primary
#746363dimgray
#746363dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#74636bdimgray
#74636bdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8d4degainsboro
#2b1721black
Muted foreground
#715b66dimgray
#a48e99rosybrown
Accent
#746b63dimgray
#746b63dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6f150bmaroon
#ec5241tomato
Destructive foreground
#f8bbb5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#746363dimgray
#746363dimgray

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.73:1AAA
Primary button5.69:1AA
Secondary button5.64:1AA
Muted text4.39:1AA Large
Accent5.23:1AA
Destructive7.11:1AAA
Dark mode
Text on background19.10:1AAA
Text on card19.41:1AAA
Primary button5.69:1AA
Secondary button5.64:1AA
Muted text5.52:1AA
Accent5.23:1AA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.03 20.122);
  --muted: oklch(0.889 0.026 345.015);
  --muted-foreground: oklch(0.497 0.034 345.955);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.03 20.122);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.131 0.026 19.731);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.515 0.022 16.753);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.026 345.507);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.533 0.017 65.572);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.356 0.126 30.432);
  --destructive-foreground: oklch(0.846 0.071 25.889);
  --ring: oklch(0.515 0.022 16.753);
  --chart-1: oklch(0.515 0.022 16.753);
  --chart-2: oklch(0.517 0.026 345.507);
  --chart-3: oklch(0.533 0.017 65.572);
  --chart-4: oklch(0.543 0.027 345.517);
  --chart-5: oklch(0.51 0.031 17.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.019 19.192);
  --foreground: oklch(0.976 0.002 16.009);
  --muted: oklch(0.237 0.036 347.92);
  --muted-foreground: oklch(0.67 0.031 345.446);
  --popover: oklch(0.103 0.019 19.192);
  --popover-foreground: oklch(0.976 0.002 16.009);
  --card: oklch(0.119 0.022 19.244);
  --card-foreground: oklch(0.984 0.001 15.997);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.515 0.022 16.753);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.026 345.507);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.533 0.017 65.572);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.646 0.193 29.62);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.515 0.022 16.753);
  --chart-1: oklch(0.515 0.022 16.753);
  --chart-2: oklch(0.517 0.026 345.507);
  --chart-3: oklch(0.533 0.017 65.572);
  --chart-4: oklch(0.543 0.027 345.517);
  --chart-5: oklch(0.51 0.031 17.083);
}