Parched for shadcn/ui

Parched is a shadcn/ui theme built around a green primary color (#519938) with green accents (#389951). The light mode uses a neutral background (#f8fdf6). Dark mode keeps the green primary (#519938) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fdf6mintcream
#000000black
Foreground
#040802black
#fafbf9snow
Card
#f5fdf2honeydew
#030303black
Card foreground
#020401black
#fcfdfcwhite
Popover
#f8fdf6mintcream
#000000black
Popover foreground
#040802black
#fafbf9snow
Primary
#519938olivedrab
#519938olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#819938olivedrab
#819938olivedrab
Secondary foreground
#030401black
#030401black
Muted
#e3e6dbgainsboro
#212419black
Muted foreground
#666c56dimgray
#a3a993darkgray
Accent
#389951seagreen
#389951seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#76130amaroon
#ec2a18orangered
Destructive foreground
#f9beb8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#519938olivedrab
#519938olivedrab

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.74:1AAA
Primary button3.53:1AA Large
Secondary button6.37:1AA
Muted text4.30:1AA Large
Accent3.60:1AA Large
Destructive7.01:1AAA
Dark mode
Text on background20.23:1AAA
Text on card20.28:1AAA
Primary button3.53:1AA Large
Secondary button6.37:1AA
Muted text6.50:1AA
Accent3.60:1AA Large
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.011 137.781);
  --foreground: oklch(0.125 0.024 135.898);
  --muted: oklch(0.919 0.014 118.098);
  --muted-foreground: oklch(0.519 0.033 118.963);
  --popover: oklch(0.989 0.011 137.781);
  --popover-foreground: oklch(0.125 0.024 135.898);
  --card: oklch(0.984 0.016 137.791);
  --card-foreground: oklch(0.099 0.019 135.898);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.613 0.15 138.715);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.643 0.125 121.91);
  --secondary-foreground: oklch(0.101 0.012 117.991);
  --accent: oklch(0.607 0.14 148.716);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.367 0.135 29.988);
  --destructive-foreground: oklch(0.853 0.07 24.565);
  --ring: oklch(0.613 0.15 138.715);
  --chart-1: oklch(0.613 0.15 138.715);
  --chart-2: oklch(0.643 0.125 121.91);
  --chart-3: oklch(0.607 0.14 148.716);
  --chart-4: oklch(0.677 0.133 121.938);
  --chart-5: oklch(0.621 0.158 138.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 137.767);
  --muted: oklch(0.253 0.019 119.187);
  --muted-foreground: oklch(0.724 0.031 118.577);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 137.767);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 137.765);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.613 0.15 138.715);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.643 0.125 121.91);
  --secondary-foreground: oklch(0.101 0.012 117.991);
  --accent: oklch(0.607 0.14 148.716);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.608 0.229 30.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.613 0.15 138.715);
  --chart-1: oklch(0.613 0.15 138.715);
  --chart-2: oklch(0.643 0.125 121.91);
  --chart-3: oklch(0.607 0.14 148.716);
  --chart-4: oklch(0.677 0.133 121.938);
  --chart-5: oklch(0.621 0.158 138.818);
}