Botany for shadcn/ui

Botany is a shadcn/ui theme built around a muted red primary color (#b57a78) with neutral gray accents (#d3cfcf). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#b57a78) on a red-tinted background (#100505).

Color palette

TokenLightDark
Background
#fefbfbsnow
#100505black
Foreground
#0d0303black
#fbf9f9snow
Card
#fefbfbsnow
#100505black
Card foreground
#0d0303black
#fbf9f9snow
Popover
#fefbfbsnow
#100505black
Popover foreground
#0d0303black
#fbf9f9snow
Primary
#b57a78rosybrown
#b57a78rosybrown
Primary foreground
#000000black
#000000black
Secondary
#d3cfcflightgrey
#292323darkslategray
Secondary foreground
#3b3535darkslategray
#c4babasilver
Muted
#e2d5d4gainsboro
#2b1d1dblack
Muted foreground
#5d4746darkolivegreen
#b9a3a2darkgray
Accent
#d3cfcflightgrey
#292323darkslategray
Accent foreground
#3b3535darkslategray
#c4babasilver
Destructive
#742e0bsaddlebrown
#ea6a2achocolate
Destructive foreground
#f8ceb9peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b57a78rosybrown
#b57a78rosybrown

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button6.02:1AA
Secondary button7.78:1AAA
Muted text5.97:1AA
Accent7.78:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button6.02:1AA
Secondary button8.11:1AAA
Muted text6.81:1AA
Accent8.11:1AAA
Destructive6.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 19.648);
  --foreground: oklch(0.118 0.023 24.517);
  --muted: oklch(0.883 0.015 19.852);
  --muted-foreground: oklch(0.421 0.03 20.727);
  --popover: oklch(0.99 0.003 19.648);
  --popover-foreground: oklch(0.118 0.023 24.517);
  --card: oklch(0.99 0.003 19.648);
  --card-foreground: oklch(0.118 0.023 24.517);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.64 0.074 21.516);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.858 0.005 19.686);
  --secondary-foreground: oklch(0.336 0.008 19.934);
  --accent: oklch(0.858 0.005 19.686);
  --accent-foreground: oklch(0.336 0.008 19.934);
  --destructive: oklch(0.396 0.108 43.087);
  --destructive-foreground: oklch(0.883 0.055 48.073);
  --ring: oklch(0.64 0.074 21.516);
  --chart-1: oklch(0.64 0.074 21.516);
  --chart-2: oklch(0.858 0.005 19.686);
  --chart-3: oklch(0.858 0.005 19.686);
  --chart-4: oklch(0.882 0.004 19.67);
  --chart-5: oklch(0.637 0.082 21.77);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.021 23.219);
  --foreground: oklch(0.983 0.003 19.646);
  --muted: oklch(0.248 0.022 21.006);
  --muted-foreground: oklch(0.734 0.026 20.124);
  --popover: oklch(0.134 0.021 23.219);
  --popover-foreground: oklch(0.983 0.003 19.646);
  --card: oklch(0.134 0.021 23.219);
  --card-foreground: oklch(0.983 0.003 19.646);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.64 0.074 21.516);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.264 0.009 20.102);
  --secondary-foreground: oklch(0.798 0.011 19.804);
  --accent: oklch(0.264 0.009 20.102);
  --accent-foreground: oklch(0.798 0.011 19.804);
  --destructive: oklch(0.671 0.175 43.72);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.64 0.074 21.516);
  --chart-1: oklch(0.64 0.074 21.516);
  --chart-2: oklch(0.264 0.009 20.102);
  --chart-3: oklch(0.264 0.009 20.102);
  --chart-4: oklch(0.295 0.01 20.127);
  --chart-5: oklch(0.637 0.082 21.77);
}