Botany for shadcn/ui

Botany is a shadcn/ui theme built around a muted deep orange primary color (#100d0a) with muted deep violet accents (#0d0a10). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the muted deep orange primary (#100d0a) on an orange-tinted background (#0a0805).

Color palette

TokenLightDark
Background
#fdfaf7snow
#0a0805black
Foreground
#080602black
#fcfaf8snow
Card
#fdfaf7snow
#0a0805black
Card foreground
#080602black
#fcfaf8snow
Popover
#fdfaf7snow
#0a0805black
Popover foreground
#080602black
#fcfaf8snow
Primary
#100d0ablack
#100d0ablack
Primary foreground
#baa891rosybrown
#baa891rosybrown
Secondary
#0a100dblack
#0a100dblack
Secondary foreground
#91baa8darkseagreen
#91baa8darkseagreen
Muted
#d8eee4gainsboro
#11271eblack
Muted foreground
#435b51darkslategray
#a4bcb2darkgray
Accent
#0d0a10black
#0d0a10black
Accent foreground
#a891badarkgray
#a891badarkgray
Destructive
#840501maroon
#fe140bred
Destructive foreground
#ffbab8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#100d0ablack
#100d0ablack

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button8.39:1AAA
Secondary button8.97:1AAA
Muted text6.05:1AA
Accent6.95:1AA
Destructive6.47:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button8.39:1AAA
Secondary button8.97:1AAA
Muted text7.79:1AAA
Accent6.95:1AA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 74.918);
  --foreground: oklch(0.121 0.014 82.725);
  --muted: oklch(0.93 0.027 167.898);
  --muted-foreground: oklch(0.448 0.033 166.451);
  --popover: oklch(0.987 0.006 74.918);
  --popover-foreground: oklch(0.121 0.014 82.725);
  --card: oklch(0.987 0.006 74.918);
  --card-foreground: oklch(0.121 0.014 82.725);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.162 0.008 74.538);
  --primary-foreground: oklch(0.742 0.038 74.525);
  --secondary: oklch(0.164 0.011 166.766);
  --secondary-foreground: oklch(0.755 0.051 166.687);
  --accent: oklch(0.151 0.013 310.307);
  --accent-foreground: oklch(0.692 0.064 310.275);
  --destructive: oklch(0.387 0.156 29.742);
  --destructive-foreground: oklch(0.852 0.08 21.101);
  --ring: oklch(0.162 0.008 74.538);
  --chart-1: oklch(0.162 0.008 74.538);
  --chart-2: oklch(0.164 0.011 166.766);
  --chart-3: oklch(0.151 0.013 310.307);
  --chart-4: oklch(0.203 0.016 166.292);
  --chart-5: oklch(0.162 0.009 74.529);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.009 79.185);
  --foreground: oklch(0.986 0.003 74.934);
  --muted: oklch(0.252 0.034 163.971);
  --muted-foreground: oklch(0.774 0.03 167.614);
  --popover: oklch(0.136 0.009 79.185);
  --popover-foreground: oklch(0.986 0.003 74.934);
  --card: oklch(0.136 0.009 79.185);
  --card-foreground: oklch(0.986 0.003 74.934);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.162 0.008 74.538);
  --primary-foreground: oklch(0.742 0.038 74.525);
  --secondary: oklch(0.164 0.011 166.766);
  --secondary-foreground: oklch(0.755 0.051 166.687);
  --accent: oklch(0.151 0.013 310.307);
  --accent-foreground: oklch(0.692 0.064 310.275);
  --destructive: oklch(0.63 0.253 29.283);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.162 0.008 74.538);
  --chart-1: oklch(0.162 0.008 74.538);
  --chart-2: oklch(0.164 0.011 166.766);
  --chart-3: oklch(0.151 0.013 310.307);
  --chart-4: oklch(0.203 0.016 166.292);
  --chart-5: oklch(0.162 0.009 74.529);
}