Fluid is a shadcn/ui theme built around a vivid orange primary color (#e5913e) with vivid violet accents (#913ee5). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the vivid orange primary (#e5913e) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #030302black |
| Foreground | #100a04black | #faf7f5whitesmoke |
| Card | #fbf7f3floralwhite | #070503black |
| Card foreground | #0c0803black | #fcfaf8snow |
| Popover | #fbf7f3floralwhite | #070503black |
| Popover foreground | #0c0803black | #fcfaf8snow |
| Primary | #e5913eperu | #e5913eperu |
| Primary foreground | #000000black | #000000black |
| Secondary | #3ee591mediumaquamarine | #3ee591mediumaquamarine |
| Secondary foreground | #0a4c2bdarkgreen | #0a4c2bdarkgreen |
| Muted | #e5f0eblavender | #0f1a14black |
| Muted foreground | #4b5d54darkslategray | #a2b4abdarkgray |
| Accent | #913ee5blueviolet | #913ee5blueviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9f1b09firebrick | #f3422borangered |
| Destructive foreground | #fde1ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5913eperu | #e5913eperu |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.89:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 8.46:1 | AAA |
| Secondary button | 6.14:1 | AA |
| Muted text | 6.01:1 | AA |
| Accent | 5.21:1 | AA |
| Destructive | 6.45:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 8.46:1 | AAA |
| Secondary button | 6.14:1 | AA |
| Muted text | 8.20:1 | AAA |
| Accent | 5.21:1 | AA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Fluid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 67.77);
--foreground: oklch(0.152 0.018 72.062);
--muted: oklch(0.945 0.013 164.771);
--muted-foreground: oklch(0.461 0.027 163.493);
--popover: oklch(0.979 0.007 67.744);
--popover-foreground: oklch(0.137 0.016 75.624);
--card: oklch(0.979 0.007 67.744);
--card-foreground: oklch(0.137 0.016 75.624);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.729 0.139 62.152);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.818 0.179 156.221);
--secondary-foreground: oklch(0.369 0.085 155.429);
--accent: oklch(0.562 0.236 301.932);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.454 0.169 30.962);
--destructive-foreground: oklch(0.932 0.031 26.7);
--ring: oklch(0.729 0.139 62.152);
--chart-1: oklch(0.729 0.139 62.152);
--chart-2: oklch(0.818 0.179 156.221);
--chart-3: oklch(0.562 0.236 301.932);
--chart-4: oklch(0.827 0.17 157.157);
--chart-5: oklch(0.733 0.144 61.737);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.006 72.764);
--foreground: oklch(0.978 0.004 67.773);
--muted: oklch(0.204 0.019 162.444);
--muted-foreground: oklch(0.753 0.024 164.268);
--popover: oklch(0.118 0.008 72.764);
--popover-foreground: oklch(0.986 0.003 67.79);
--card: oklch(0.118 0.008 72.764);
--card-foreground: oklch(0.986 0.003 67.79);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.729 0.139 62.152);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.818 0.179 156.221);
--secondary-foreground: oklch(0.369 0.085 155.429);
--accent: oklch(0.562 0.236 301.932);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.639 0.216 30.97);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.729 0.139 62.152);
--chart-1: oklch(0.729 0.139 62.152);
--chart-2: oklch(0.818 0.179 156.221);
--chart-3: oklch(0.562 0.236 301.932);
--chart-4: oklch(0.827 0.17 157.157);
--chart-5: oklch(0.733 0.144 61.737);
}