Floodplain is a shadcn/ui theme built around a muted yellow primary color (#8d8b58) with muted indigo accents (#585b8d). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#8d8b58) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040401black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #040401black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #040401black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #8d8b58gray | #8d8b58gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #585b8ddarkslateblue | #585b8ddarkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7e7eelavender | #111118black |
| Muted foreground | #3e3e47darkslategray | #b8b9c1silver |
| Accent | #585b8ddarkslateblue | #585b8ddarkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6e1008maroon | #f03928orangered |
| Destructive foreground | #f9b4aelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8d8b58gray | #8d8b58gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 6.36:1 | AA |
| Muted text | 8.61:1 | AAA |
| Accent | 6.36:1 | AA |
| Destructive | 7.00:1 | AAA |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.56:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 6.36:1 | AA |
| Muted text | 9.61:1 | AAA |
| Accent | 6.36:1 | AA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Floodplain in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.931 0.009 283.796);
--muted-foreground: oklch(0.367 0.015 283.236);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.625 0.069 105.654);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.491 0.08 280.71);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.491 0.08 280.71);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.348 0.128 30.056);
--destructive-foreground: oklch(0.833 0.082 24.808);
--ring: oklch(0.625 0.069 105.654);
--chart-1: oklch(0.625 0.069 105.654);
--chart-2: oklch(0.491 0.08 280.71);
--chart-3: oklch(0.491 0.08 280.71);
--chart-4: oklch(0.514 0.084 280.681);
--chart-5: oklch(0.634 0.077 105.785);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.012 106.297);
--foreground: oklch(1 0 180);
--muted: oklch(0.181 0.014 282.505);
--muted-foreground: oklch(0.787 0.012 283.695);
--popover: oklch(0.102 0.012 106.297);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.102 0.012 106.297);
--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.625 0.069 105.654);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.491 0.08 280.71);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.491 0.08 280.71);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.626 0.221 29.79);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.069 105.654);
--chart-1: oklch(0.625 0.069 105.654);
--chart-2: oklch(0.491 0.08 280.71);
--chart-3: oklch(0.491 0.08 280.71);
--chart-4: oklch(0.514 0.084 280.681);
--chart-5: oklch(0.634 0.077 105.785);
}