Wilted for shadcn/ui

Wilted is a shadcn/ui theme built around a vivid green primary color (#71ec41) with muted light green accents (#c2d3bb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#71ec41) on a green-tinted background (#081004).

Color palette

TokenLightDark
Background
#ffffffwhite
#081004black
Foreground
#000000black
#fcfdfcwhite
Card
#ffffffwhite
#081004black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#081004black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#71ec41yellowgreen
#71ec41yellowgreen
Primary foreground
#000000black
#000000black
Secondary
#d7ded4gainsboro
#252923darkslategray
Secondary foreground
#3c4837darkslategray
#bdc4basilver
Muted
#eaece9linen
#141613black
Muted foreground
#596156dimgray
#a1a99edarkgray
Accent
#c2d3bbsilver
#354030darkslategray
Accent foreground
#2a3824darkslategray
#ced8cblightgrey
Destructive
#ac1302firebrick
#fd321corangered
Destructive foreground
#ffe4e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#71ec41yellowgreen
#71ec41yellowgreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button13.80:1AAA
Secondary button7.01:1AAA
Muted text5.41:1AA
Accent7.89:1AAA
Destructive6.14:1AA
Dark mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button13.80:1AAA
Secondary button8.26:1AAA
Muted text7.52:1AAA
Accent7.43:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.941 0.006 136.627);
  --muted-foreground: oklch(0.483 0.02 136.735);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.841 0.232 138.509);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.891 0.015 136.661);
  --secondary-foreground: oklch(0.386 0.031 136.875);
  --accent: oklch(0.847 0.039 136.75);
  --accent-foreground: oklch(0.321 0.04 137.048);
  --destructive: oklch(0.473 0.185 30.572);
  --destructive-foreground: oklch(0.939 0.03 25.281);
  --ring: oklch(0.841 0.232 138.509);
  --chart-1: oklch(0.841 0.232 138.509);
  --chart-2: oklch(0.891 0.015 136.661);
  --chart-3: oklch(0.847 0.039 136.75);
  --chart-4: oklch(0.913 0.012 136.649);
  --chart-5: oklch(0.848 0.238 138.609);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.029 135.669);
  --foreground: oklch(0.993 0.002 136.615);
  --muted: oklch(0.197 0.008 136.739);
  --muted-foreground: oklch(0.724 0.018 136.684);
  --popover: oklch(0.16 0.029 135.669);
  --popover-foreground: oklch(0.993 0.002 136.615);
  --card: oklch(0.16 0.029 135.669);
  --card-foreground: oklch(0.993 0.002 136.615);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.841 0.232 138.509);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.276 0.013 136.752);
  --secondary-foreground: oklch(0.813 0.016 136.669);
  --accent: oklch(0.356 0.03 136.889);
  --accent-foreground: oklch(0.87 0.02 136.678);
  --destructive: oklch(0.643 0.238 30.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.841 0.232 138.509);
  --chart-1: oklch(0.841 0.232 138.509);
  --chart-2: oklch(0.276 0.013 136.752);
  --chart-3: oklch(0.356 0.03 136.889);
  --chart-4: oklch(0.308 0.015 136.758);
  --chart-5: oklch(0.848 0.238 138.609);
}