Damp for shadcn/ui

Damp is a shadcn/ui theme built around a muted light purple primary color (#d9c2db) with muted light pink accents (#dbc2d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#d9c2db) on a purple-tinted background (#0a050b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050bblack
Foreground
#040104black
#fcf8fcsnow
Card
#ffffffwhite
#0a050bblack
Card foreground
#040104black
#fcf8fcsnow
Popover
#ffffffwhite
#0a050bblack
Popover foreground
#040104black
#fcf8fcsnow
Primary
#d9c2dbthistle
#d9c2dbthistle
Primary foreground
#422843darkslategray
#422843darkslategray
Secondary
#cdc2dbthistle
#cdc2dbthistle
Secondary foreground
#342843darkslategray
#342843darkslategray
Muted
#edecefwhitesmoke
#121013black
Muted foreground
#564d60dimgray
#a79fb2darkgray
Accent
#dbc2d0thistle
#dbc2d0thistle
Accent foreground
#432837darkslategray
#432837darkslategray
Destructive
#943510saddlebrown
#e75318chocolate
Destructive foreground
#fbe3damistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9c2dbthistle
#d9c2dbthistle

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button7.88:1AAA
Secondary button8.08:1AAA
Muted text6.78:1AA
Accent7.92:1AAA
Destructive6.17:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button7.88:1AAA
Secondary button8.08:1AAA
Muted text7.41:1AAA
Accent7.92:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.085 0.023 326.031);
  --muted: oklch(0.944 0.004 306.374);
  --muted-foreground: oklch(0.436 0.033 305.471);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.085 0.023 326.031);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.085 0.023 326.031);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.842 0.042 324.411);
  --primary-foreground: oklch(0.32 0.057 325.076);
  --secondary: oklch(0.832 0.035 305.886);
  --secondary-foreground: oklch(0.304 0.05 304.278);
  --accent: oklch(0.84 0.033 343.543);
  --accent-foreground: oklch(0.316 0.046 345.932);
  --destructive: oklch(0.46 0.136 39.235);
  --destructive-foreground: oklch(0.934 0.029 42.879);
  --ring: oklch(0.842 0.042 324.411);
  --chart-1: oklch(0.842 0.042 324.411);
  --chart-2: oklch(0.832 0.035 305.886);
  --chart-3: oklch(0.84 0.033 343.543);
  --chart-4: oklch(0.859 0.03 305.989);
  --chart-5: oklch(0.841 0.047 324.444);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.02 325.274);
  --foreground: oklch(0.983 0.006 324.168);
  --muted: oklch(0.178 0.006 305.988);
  --muted-foreground: oklch(0.715 0.029 305.912);
  --popover: oklch(0.126 0.02 325.274);
  --popover-foreground: oklch(0.983 0.006 324.168);
  --card: oklch(0.126 0.02 325.274);
  --card-foreground: oklch(0.983 0.006 324.168);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.842 0.042 324.411);
  --primary-foreground: oklch(0.32 0.057 325.076);
  --secondary: oklch(0.832 0.035 305.886);
  --secondary-foreground: oklch(0.304 0.05 304.278);
  --accent: oklch(0.84 0.033 343.543);
  --accent-foreground: oklch(0.316 0.046 345.932);
  --destructive: oklch(0.635 0.194 38.677);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.842 0.042 324.411);
  --chart-1: oklch(0.842 0.042 324.411);
  --chart-2: oklch(0.832 0.035 305.886);
  --chart-3: oklch(0.84 0.033 343.543);
  --chart-4: oklch(0.859 0.03 305.989);
  --chart-5: oklch(0.841 0.047 324.444);
}