Dry for shadcn/ui

Dry is a shadcn/ui theme built around a near-black primary color (#1b1d1c) with muted light green accents (#becac3). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#1b1d1c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010904black
#f6f8f7whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#010904black
#f6f8f7whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#010904black
#f6f8f7whitesmoke
Primary
#1b1d1cblack
#1b1d1cblack
Primary foreground
#b1b9b4silver
#b1b9b4silver
Secondary
#d5d7d6lightgrey
#1c211eblack
Secondary foreground
#3b3f3ddarkslategray
#b1beb6silver
Muted
#d6e1dagainsboro
#1e2923darkslategray
Muted foreground
#43564bdarkslategray
#a9bcb1darkgray
Accent
#becac3silver
#2a3c31darkslategray
Accent foreground
#27302adarkslategray
#c3d5calightgrey
Destructive
#c1230bfirebrick
#f23d21orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b1d1cblack
#1b1d1cblack

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button8.42:1AAA
Secondary button7.41:1AAA
Muted text5.84:1AA
Accent8.07:1AAA
Destructive5.97:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button8.42:1AAA
Secondary button8.46:1AAA
Muted text7.52:1AAA
Accent7.67:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.022 160.084);
  --muted: oklch(0.899 0.014 159.863);
  --muted-foreground: oklch(0.433 0.029 158.589);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.022 160.084);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.022 160.084);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.229 0.005 159.695);
  --primary-foreground: oklch(0.778 0.01 159.927);
  --secondary: oklch(0.878 0.003 160.147);
  --secondary-foreground: oklch(0.364 0.006 159.839);
  --accent: oklch(0.829 0.016 159.783);
  --accent-foreground: oklch(0.298 0.015 159.01);
  --destructive: oklch(0.524 0.195 31.378);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.005 159.695);
  --chart-1: oklch(0.229 0.005 159.695);
  --chart-2: oklch(0.878 0.003 160.147);
  --chart-3: oklch(0.829 0.016 159.783);
  --chart-4: oklch(0.901 0.003 160.165);
  --chart-5: oklch(0.231 0.008 159.371);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.003 160.172);
  --muted: oklch(0.269 0.019 158.487);
  --muted-foreground: oklch(0.777 0.025 159.462);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.003 160.172);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.978 0.003 160.172);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.229 0.005 159.695);
  --primary-foreground: oklch(0.778 0.01 159.927);
  --secondary: oklch(0.242 0.01 159.235);
  --secondary-foreground: oklch(0.789 0.018 159.708);
  --accent: oklch(0.336 0.029 158.07);
  --accent-foreground: oklch(0.856 0.023 159.59);
  --destructive: oklch(0.633 0.221 31.644);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.005 159.695);
  --chart-1: oklch(0.229 0.005 159.695);
  --chart-2: oklch(0.242 0.01 159.235);
  --chart-3: oklch(0.336 0.029 158.07);
  --chart-4: oklch(0.275 0.012 159.167);
  --chart-5: oklch(0.231 0.008 159.371);
}