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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.46:1 | AA |
| Text on background | 20.06:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 4.82:1 | AA |
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);
}