Fluid is a shadcn/ui theme built around a muted deep pink primary color (#3a222e) with muted light pink accents (#e6e0e3). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the muted deep pink primary (#3a222e) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #070305black |
| Foreground | #0d0208black | #fdfbfcsnow |
| Card | #fdf7fasnow | #070305black |
| Card foreground | #0d0208black | #fdfbfcsnow |
| Popover | #fdf7fasnow | #070305black |
| Popover foreground | #0d0208black | #fdfbfcsnow |
| Primary | #3a222edarkslategray | #3a222edarkslategray |
| Primary foreground | #d6b8c7thistle | #d6b8c7thistle |
| Secondary | #e6e0e3gainsboro | #191517black |
| Secondary foreground | #53414adarkslategray | #b6aab0darkgray |
| Muted | #e6d0dcgainsboro | #2f1924black |
| Muted foreground | #584b52darkslategray | #b4a7aedarkgray |
| Accent | #e6e0e3gainsboro | #191517black |
| Accent foreground | #53414adarkslategray | #b6aab0darkgray |
| Destructive | #9f0c04darkred | #fa3429orangered |
| Destructive foreground | #fed9d7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3a222edarkslategray | #3a222edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Fluid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 344.493);
--foreground: oklch(0.119 0.03 344.668);
--muted: oklch(0.88 0.029 345.106);
--muted-foreground: oklch(0.429 0.02 345.465);
--popover: oklch(0.981 0.008 344.493);
--popover-foreground: oklch(0.119 0.03 344.668);
--card: oklch(0.981 0.008 344.493);
--card-foreground: oklch(0.119 0.03 344.668);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.287 0.043 347.851);
--primary-foreground: oklch(0.812 0.04 345.514);
--secondary: oklch(0.912 0.009 344.528);
--secondary-foreground: oklch(0.398 0.028 346.026);
--accent: oklch(0.912 0.009 344.528);
--accent-foreground: oklch(0.398 0.028 346.026);
--destructive: oklch(0.446 0.177 29.64);
--destructive-foreground: oklch(0.916 0.041 21.504);
--ring: oklch(0.287 0.043 347.851);
--chart-1: oklch(0.287 0.043 347.851);
--chart-2: oklch(0.912 0.009 344.528);
--chart-3: oklch(0.912 0.009 344.528);
--chart-4: oklch(0.936 0.006 344.457);
--chart-5: oklch(0.286 0.048 348.249);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.015 344.185);
--foreground: oklch(0.991 0.003 344.352);
--muted: oklch(0.247 0.04 348.124);
--muted-foreground: oklch(0.741 0.018 344.888);
--popover: oklch(0.109 0.015 344.185);
--popover-foreground: oklch(0.991 0.003 344.352);
--card: oklch(0.109 0.015 344.185);
--card-foreground: oklch(0.991 0.003 344.352);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.287 0.043 347.851);
--primary-foreground: oklch(0.812 0.04 345.514);
--secondary: oklch(0.201 0.007 345.144);
--secondary-foreground: oklch(0.749 0.017 344.862);
--accent: oklch(0.201 0.007 345.144);
--accent-foreground: oklch(0.749 0.017 344.862);
--destructive: oklch(0.639 0.233 28.8);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.287 0.043 347.851);
--chart-1: oklch(0.287 0.043 347.851);
--chart-2: oklch(0.201 0.007 345.144);
--chart-3: oklch(0.201 0.007 345.144);
--chart-4: oklch(0.234 0.009 345.234);
--chart-5: oklch(0.286 0.048 348.249);
}