Dry for shadcn/ui

Dry is a shadcn/ui theme built around a vivid green primary color (#25ce12) with vivid red accents (#ce1225). The light mode uses a neutral background (#f7fdf6). Dark mode keeps the vivid green primary (#25ce12) on a green-tinted background (#040c04).

Color palette

TokenLightDark
Background
#f7fdf6mintcream
#040c04black
Foreground
#051603black
#f9fbf8mintcream
Card
#f7fdf6mintcream
#040c04black
Card foreground
#051603black
#f9fbf8mintcream
Popover
#f7fdf6mintcream
#040c04black
Popover foreground
#051603black
#f9fbf8mintcream
Primary
#25ce12limegreen
#25ce12limegreen
Primary foreground
#031302black
#031302black
Secondary
#1225cemediumblue
#1225cemediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0f1f4whitesmoke
#0b0b0fblack
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#ce1225crimson
#ce1225crimson
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#e32802orangered
#fd4521orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25ce12limegreen
#25ce12limegreen

Contrast

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

Light mode
Text on background18.16:1AAA
Text on card18.16:1AAA
Primary button9.07:1AAA
Secondary button9.61:1AAA
Muted text7.46:1AAA
Accent5.60:1AA
Destructive4.59:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button9.07:1AAA
Secondary button9.61:1AAA
Muted text9.37:1AAA
Accent5.60:1AA
Destructive3.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.011 142.582);
  --foreground: oklch(0.18 0.047 140.763);
  --muted: oklch(0.957 0.005 281.199);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.988 0.011 142.582);
  --popover-foreground: oklch(0.18 0.047 140.763);
  --card: oklch(0.988 0.011 142.582);
  --card-foreground: oklch(0.18 0.047 140.763);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.742 0.245 141.97);
  --primary-foreground: oklch(0.165 0.046 140.334);
  --secondary: oklch(0.414 0.248 265.939);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.213 25.152);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.59 0.223 31.849);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.742 0.245 141.97);
  --chart-1: oklch(0.742 0.245 141.97);
  --chart-2: oklch(0.414 0.248 265.939);
  --chart-3: oklch(0.542 0.213 25.152);
  --chart-4: oklch(0.434 0.261 265.854);
  --chart-5: oklch(0.751 0.249 142.014);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.024 141.051);
  --foreground: oklch(0.986 0.005 142.608);
  --muted: oklch(0.151 0.008 280.337);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.14 0.024 141.051);
  --popover-foreground: oklch(0.986 0.005 142.608);
  --card: oklch(0.14 0.024 141.051);
  --card-foreground: oklch(0.986 0.005 142.608);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.742 0.245 141.97);
  --primary-foreground: oklch(0.165 0.046 140.334);
  --secondary: oklch(0.414 0.248 265.939);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.213 25.152);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.224 32.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.742 0.245 141.97);
  --chart-1: oklch(0.742 0.245 141.97);
  --chart-2: oklch(0.414 0.248 265.939);
  --chart-3: oklch(0.542 0.213 25.152);
  --chart-4: oklch(0.434 0.261 265.854);
  --chart-5: oklch(0.751 0.249 142.014);
}