Humidity for shadcn/ui

Humidity is a shadcn/ui theme built around a vivid deep red primary color (#570a0f) with muted red accents (#d0aeb0). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid deep red primary (#570a0f) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fefbfbsnow
#030202black
Foreground
#000000black
#fdfbfcsnow
Card
#fefbfbsnow
#030202black
Card foreground
#000000black
#fdfbfcsnow
Popover
#fefbfbsnow
#030202black
Popover foreground
#000000black
#fdfbfcsnow
Primary
#570a0fmaroon
#570a0fmaroon
Primary foreground
#f49fa4lightpink
#f49fa4lightpink
Secondary
#d7c6c7lightgrey
#231f1fblack
Secondary foreground
#3f2c2edarkslategray
#beb6b7silver
Muted
#f2e9e9linen
#160d0eblack
Muted foreground
#493637darkslategray
#c9b6b7silver
Accent
#d0aeb0silver
#3b2b2cdarkslategray
Accent foreground
#311c1dblack
#d4c4c5thistle
Destructive
#912d08saddlebrown
#f36b39tomato
Destructive foreground
#fcdbcfbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#570a0fmaroon
#570a0fmaroon

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.40:1AAA
Primary button7.10:1AAA
Secondary button7.95:1AAA
Muted text9.41:1AAA
Accent7.89:1AAA
Destructive6.28:1AA
Dark mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button7.10:1AAA
Secondary button8.19:1AAA
Muted text9.86:1AAA
Accent7.98:1AAA
Destructive6.99:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 12.492);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.01 12.642);
  --muted-foreground: oklch(0.355 0.028 14.084);
  --popover: oklch(0.99 0.003 12.492);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.003 12.492);
  --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.297 0.108 24.202);
  --primary-foreground: oklch(0.788 0.102 15.318);
  --secondary: oklch(0.841 0.019 12.889);
  --secondary-foreground: oklch(0.317 0.027 14.265);
  --accent: oklch(0.782 0.04 13.514);
  --accent-foreground: oklch(0.254 0.033 15.296);
  --destructive: oklch(0.444 0.141 37.372);
  --destructive-foreground: oklch(0.916 0.041 41.031);
  --ring: oklch(0.297 0.108 24.202);
  --chart-1: oklch(0.297 0.108 24.202);
  --chart-2: oklch(0.841 0.019 12.889);
  --chart-3: oklch(0.782 0.04 13.514);
  --chart-4: oklch(0.867 0.015 12.8);
  --chart-5: oklch(0.299 0.111 24.636);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.007 13.338);
  --foreground: oklch(0.991 0.002 12.472);
  --muted: oklch(0.173 0.015 14.347);
  --muted-foreground: oklch(0.792 0.022 13.009);
  --popover: oklch(0.087 0.007 13.338);
  --popover-foreground: oklch(0.991 0.002 12.472);
  --card: oklch(0.087 0.007 13.338);
  --card-foreground: oklch(0.991 0.002 12.472);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.297 0.108 24.202);
  --primary-foreground: oklch(0.788 0.102 15.318);
  --secondary: oklch(0.245 0.006 12.951);
  --secondary-foreground: oklch(0.783 0.009 12.678);
  --accent: oklch(0.308 0.024 14.123);
  --accent-foreground: oklch(0.834 0.018 12.89);
  --destructive: oklch(0.688 0.18 39.506);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.297 0.108 24.202);
  --chart-1: oklch(0.297 0.108 24.202);
  --chart-2: oklch(0.245 0.006 12.951);
  --chart-3: oklch(0.308 0.024 14.123);
  --chart-4: oklch(0.276 0.007 12.983);
  --chart-5: oklch(0.299 0.111 24.636);
}