Flood for shadcn/ui

Flood is a shadcn/ui theme built around a muted light red primary color (#ecdfe1) with muted red accents (#cab4b7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light red primary (#ecdfe1) on a neutral background (#080203).

Color palette

TokenLightDark
Background
#ffffffwhite
#080203black
Foreground
#170305black
#fdfcfcsnow
Card
#fcfcfcsnow
#0c0405black
Card foreground
#120204black
#ffffffwhite
Popover
#ffffffwhite
#080203black
Popover foreground
#170305black
#fdfcfcsnow
Primary
#ecdfe1gainsboro
#ecdfe1gainsboro
Primary foreground
#5f3a3fdarkolivegreen
#5f3a3fdarkolivegreen
Secondary
#d8d0d1lightgrey
#151414black
Secondary foreground
#403537darkslategray
#afacacdarkgray
Muted
#e8dedfgainsboro
#211719black
Muted foreground
#564e4fdarkslategray
#b1a9aadarkgray
Accent
#cab4b7silver
#2e2829darkslategray
Accent foreground
#2d2021black
#c8c0c1silver
Destructive
#911103darkred
#e11b05red
Destructive foreground
#fecdc8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecdfe1gainsboro
#ecdfe1gainsboro

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.83:1AAA
Primary button7.50:1AAA
Secondary button7.75:1AAA
Muted text6.14:1AA
Accent8.03:1AAA
Destructive6.46:1AA
Dark mode
Text on background20.06:1AAA
Text on card20.32:1AAA
Primary button7.50:1AAA
Secondary button8.16:1AAA
Muted text7.58:1AAA
Accent8.07:1AAA
Destructive4.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.041 12.201);
  --muted: oklch(0.909 0.011 8.033);
  --muted-foreground: oklch(0.431 0.011 8.37);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.041 12.201);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.128 0.036 10.952);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.915 0.014 8.11);
  --primary-foreground: oklch(0.394 0.052 11.059);
  --secondary: oklch(0.863 0.009 7.996);
  --secondary-foreground: oklch(0.342 0.015 8.828);
  --accent: oklch(0.79 0.025 8.522);
  --accent-foreground: oklch(0.259 0.02 9.665);
  --destructive: oklch(0.42 0.162 30.693);
  --destructive-foreground: oklch(0.89 0.056 25.623);
  --ring: oklch(0.915 0.014 8.11);
  --chart-1: oklch(0.915 0.014 8.11);
  --chart-2: oklch(0.863 0.009 7.996);
  --chart-3: oklch(0.79 0.025 8.522);
  --chart-4: oklch(0.888 0.007 7.946);
  --chart-5: oklch(0.914 0.015 8.156);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.016 8.603);
  --foreground: oklch(0.991 0.002 7.788);
  --muted: oklch(0.218 0.016 9.481);
  --muted-foreground: oklch(0.743 0.01 8.061);
  --popover: oklch(0.106 0.016 8.603);
  --popover-foreground: oklch(0.991 0.002 7.788);
  --card: oklch(0.121 0.019 8.699);
  --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.915 0.014 8.11);
  --primary-foreground: oklch(0.394 0.052 11.059);
  --secondary: oklch(0.192 0.001 7.918);
  --secondary-foreground: oklch(0.746 0.004 7.873);
  --accent: oklch(0.285 0.009 8.524);
  --accent-foreground: oklch(0.816 0.009 8.029);
  --destructive: oklch(0.579 0.227 30.337);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.915 0.014 8.11);
  --chart-1: oklch(0.915 0.014 8.11);
  --chart-2: oklch(0.192 0.001 7.918);
  --chart-3: oklch(0.285 0.009 8.524);
  --chart-4: oklch(0.226 0.002 7.939);
  --chart-5: oklch(0.914 0.015 8.156);
}