Dry for shadcn/ui

Dry is a shadcn/ui theme built around a near-white primary color (#f8fcf8) with near-white accents (#fcf8fc). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the near-white primary (#f8fcf8) on a green-tinted background (#050b04).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#050b04black
Foreground
#000000black
#f9faf9snow
Card
#f8fbf8mintcream
#060e06black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f8fbf8mintcream
#060e06black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#f8fcf8mintcream
#f8fcf8mintcream
Primary foreground
#1b421adarkgreen
#1b421adarkgreen
Secondary
#fcf8fcsnow
#fcf8fcsnow
Secondary foreground
#88378brebeccapurple
#88378brebeccapurple
Muted
#ebdaeclavender
#241325black
Muted foreground
#5f4e5fdimgray
#b0a0b1darkgray
Accent
#fcf8fcsnow
#fcf8fcsnow
Accent foreground
#88378brebeccapurple
#88378brebeccapurple
Destructive
#d00401red
#fe0f0bred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8fcf8mintcream
#f8fcf8mintcream

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.22:1AAA
Primary button11.01:1AAA
Secondary button6.72:1AA
Muted text5.76:1AA
Accent6.72:1AA
Destructive5.67:1AA
Dark mode
Text on background19.02:1AAA
Text on card19.13:1AAA
Primary button11.01:1AAA
Secondary button6.72:1AA
Muted text7.10:1AAA
Accent6.72:1AA
Destructive3.97: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.993 0.003 144.602);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.908 0.03 324.823);
  --muted-foreground: oklch(0.447 0.035 325.101);
  --popover: oklch(0.986 0.005 144.585);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.005 144.585);
  --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.987 0.007 144.571);
  --primary-foreground: oklch(0.339 0.079 142.996);
  --secondary: oklch(0.983 0.007 324.666);
  --secondary-foreground: oklch(0.481 0.153 326.31);
  --accent: oklch(0.983 0.007 324.666);
  --accent-foreground: oklch(0.481 0.153 326.31);
  --destructive: oklch(0.54 0.22 29.359);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.987 0.007 144.571);
  --chart-1: oklch(0.987 0.007 144.571);
  --chart-2: oklch(0.983 0.007 324.666);
  --chart-3: oklch(0.983 0.007 324.666);
  --chart-4: oklch(1.009 0.004 144.595);
  --chart-5: oklch(0.987 0.008 144.568);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.02 143.37);
  --foreground: oklch(0.985 0.002 144.607);
  --muted: oklch(0.22 0.041 325.706);
  --muted-foreground: oklch(0.724 0.031 324.888);
  --popover: oklch(0.154 0.023 143.384);
  --popover-foreground: oklch(0.993 0.001 144.613);
  --card: oklch(0.154 0.023 143.384);
  --card-foreground: oklch(0.993 0.001 144.613);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.987 0.007 144.571);
  --primary-foreground: oklch(0.339 0.079 142.996);
  --secondary: oklch(0.983 0.007 324.666);
  --secondary-foreground: oklch(0.481 0.153 326.31);
  --accent: oklch(0.983 0.007 324.666);
  --accent-foreground: oklch(0.481 0.153 326.31);
  --destructive: oklch(0.629 0.254 29.1);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.987 0.007 144.571);
  --chart-1: oklch(0.987 0.007 144.571);
  --chart-2: oklch(0.983 0.007 324.666);
  --chart-3: oklch(0.983 0.007 324.666);
  --chart-4: oklch(1.009 0.004 144.595);
  --chart-5: oklch(0.987 0.008 144.568);
}