Damp for shadcn/ui

Damp is a shadcn/ui theme built around a purple primary color (#a11b8b) with pink accents (#a11b48). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the purple primary (#a11b8b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#000000black
Foreground
#0d020bblack
#fdfcfdwhite
Card
#fbf3falavenderblush
#030303black
Card foreground
#090108black
#ffffffwhite
Popover
#fdf7fcsnow
#000000black
Popover foreground
#0d020bblack
#fdfcfdwhite
Primary
#a11b8bdarkmagenta
#a11b8bdarkmagenta
Primary foreground
#fdf2fblavenderblush
#fdf2fblavenderblush
Secondary
#751ba1rebeccapurple
#751ba1rebeccapurple
Secondary foreground
#f9f2fdghostwhite
#f9f2fdghostwhite
Muted
#ece7eelavender
#161118black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#a11b48brown
#a11b48brown
Accent foreground
#fdf2f6lavenderblush
#fdf2f6lavenderblush
Destructive
#a10f0cdarkred
#f03b38crimson
Destructive foreground
#fde3e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a11b8bdarkmagenta
#a11b8bdarkmagenta

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card18.98:1AAA
Primary button6.30:1AA
Secondary button7.88:1AAA
Muted text5.07:1AA
Accent6.91:1AA
Destructive6.66:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button6.30:1AA
Secondary button7.88:1AAA
Muted text6.97:1AA
Accent6.91:1AA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 330.932);
  --foreground: oklch(0.121 0.035 332.663);
  --muted: oklch(0.933 0.012 314.766);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.982 0.008 330.932);
  --popover-foreground: oklch(0.121 0.035 332.663);
  --card: oklch(0.973 0.012 330.989);
  --card-foreground: oklch(0.106 0.031 332.143);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.495 0.2 336.39);
  --primary-foreground: oklch(0.972 0.017 331.051);
  --secondary: oklch(0.441 0.199 310.609);
  --secondary-foreground: oklch(0.97 0.016 314.745);
  --accent: oklch(0.468 0.169 7.959);
  --accent-foreground: oklch(0.97 0.013 354.959);
  --destructive: oklch(0.452 0.177 28.686);
  --destructive-foreground: oklch(0.937 0.029 18.841);
  --ring: oklch(0.495 0.2 336.39);
  --chart-1: oklch(0.495 0.2 336.39);
  --chart-2: oklch(0.441 0.199 310.609);
  --chart-3: oklch(0.468 0.169 7.959);
  --chart-4: oklch(0.466 0.212 310.54);
  --chart-5: oklch(0.499 0.205 336.57);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 330.841);
  --muted: oklch(0.186 0.017 314.369);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 330.841);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.495 0.2 336.39);
  --primary-foreground: oklch(0.972 0.017 331.051);
  --secondary: oklch(0.441 0.199 310.609);
  --secondary-foreground: oklch(0.97 0.016 314.745);
  --accent: oklch(0.468 0.169 7.959);
  --accent-foreground: oklch(0.97 0.013 354.959);
  --destructive: oklch(0.629 0.218 26.848);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.495 0.2 336.39);
  --chart-1: oklch(0.495 0.2 336.39);
  --chart-2: oklch(0.441 0.199 310.609);
  --chart-3: oklch(0.468 0.169 7.959);
  --chart-4: oklch(0.466 0.212 310.54);
  --chart-5: oklch(0.499 0.205 336.57);
}