Dry for shadcn/ui

Dry is a shadcn/ui theme built around a purple primary color (#8b278b) with muted light purple accents (#d8cfd8). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the purple primary (#8b278b) on a purple-tinted background (#0f060f).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#0f060fblack
Foreground
#000000black
#faf5faghostwhite
Card
#fcf2fcghostwhite
#120712black
Card foreground
#000000black
#fbf8fbsnow
Popover
#fcf2fcghostwhite
#120712black
Popover foreground
#000000black
#fbf8fbsnow
Primary
#8b278bdarkmagenta
#8b278bdarkmagenta
Primary foreground
#f9ebf9lavenderblush
#f9ebf9lavenderblush
Secondary
#d8cfd8lightgrey
#342834darkslategray
Secondary foreground
#413441darkslategray
#cec0cethistle
Muted
#e6d0e6gainsboro
#2f192fdarkslategray
Muted foreground
#4e4b4edarkslategray
#b4b1b4darkgray
Accent
#d8cfd8lightgrey
#342834darkslategray
Accent foreground
#413441darkslategray
#cec0cethistle
Destructive
#9a1a04darkred
#f94424orangered
Destructive foreground
#fed9d2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8b278bdarkmagenta
#8b278bdarkmagenta

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.30:1AAA
Primary button6.59:1AA
Secondary button7.72:1AAA
Muted text5.96:1AA
Accent7.72:1AAA
Destructive6.35:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.68:1AAA
Primary button6.59:1AA
Secondary button8.05:1AAA
Muted text7.62:1AAA
Accent8.05:1AAA
Destructive3.55: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.982 0.011 325.662);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.883 0.038 325.896);
  --muted-foreground: oklch(0.417 0.006 325.691);
  --popover: oklch(0.973 0.017 325.705);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.017 325.705);
  --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.469 0.177 327.951);
  --primary-foreground: oklch(0.956 0.024 325.765);
  --secondary: oklch(0.865 0.017 325.72);
  --secondary-foreground: oklch(0.345 0.028 326.168);
  --accent: oklch(0.865 0.017 325.72);
  --accent-foreground: oklch(0.345 0.028 326.168);
  --destructive: oklch(0.444 0.165 31.92);
  --destructive-foreground: oklch(0.914 0.043 29.703);
  --ring: oklch(0.469 0.177 327.951);
  --chart-1: oklch(0.469 0.177 327.951);
  --chart-2: oklch(0.865 0.017 325.72);
  --chart-3: oklch(0.865 0.017 325.72);
  --chart-4: oklch(0.889 0.014 325.69);
  --chart-5: oklch(0.472 0.184 328.01);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.027 326.882);
  --foreground: oklch(0.975 0.007 325.634);
  --muted: oklch(0.252 0.051 326.959);
  --muted-foreground: oklch(0.764 0.005 325.63);
  --popover: oklch(0.153 0.031 326.953);
  --popover-foreground: oklch(0.983 0.005 325.614);
  --card: oklch(0.153 0.031 326.953);
  --card-foreground: oklch(0.983 0.005 325.614);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.469 0.177 327.951);
  --primary-foreground: oklch(0.956 0.024 325.765);
  --secondary: oklch(0.295 0.027 326.237);
  --secondary-foreground: oklch(0.823 0.026 325.808);
  --accent: oklch(0.295 0.027 326.237);
  --accent-foreground: oklch(0.823 0.026 325.808);
  --destructive: oklch(0.651 0.222 32.314);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.469 0.177 327.951);
  --chart-1: oklch(0.469 0.177 327.951);
  --chart-2: oklch(0.295 0.027 326.237);
  --chart-3: oklch(0.295 0.027 326.237);
  --chart-4: oklch(0.325 0.031 326.259);
  --chart-5: oklch(0.472 0.184 328.01);
}