Flu is a shadcn/ui theme built around a muted light purple primary color (#e8e3e8) with neutral gray accents (#e6e6e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#e8e3e8) on a purple-tinted background (#0f060f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f060fblack |
| Foreground | #040104black | #fbf9fbsnow |
| Card | #ffffffwhite | #0f060fblack |
| Card foreground | #040104black | #fbf9fbsnow |
| Popover | #ffffffwhite | #0f060fblack |
| Popover foreground | #040104black | #fbf9fbsnow |
| Primary | #e8e3e8gainsboro | #e8e3e8gainsboro |
| Primary foreground | #534653darkslategray | #534653darkslategray |
| Secondary | #e6e6e6gainsboro | #181118black |
| Secondary foreground | #4d4d4ddarkslategray | #baa0badarkgray |
| Muted | #eddedegainsboro | #211221black |
| Muted foreground | #644a4adimgray | #b59bb5darkgray |
| Accent | #e6e6e6gainsboro | #181118black |
| Accent foreground | #4d4d4ddarkslategray | #baa0badarkgray |
| Destructive | #840e06maroon | #f63123orangered |
| Destructive foreground | #fcc3bfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8e3e8gainsboro | #e8e3e8gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 6.74:1 | AA |
| Muted text | 6.14:1 | AA |
| Accent | 6.74:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Flu in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.021 326.81);
--muted: oklch(0.913 0.016 17.455);
--muted-foreground: oklch(0.436 0.036 18.615);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.086 0.021 326.81);
--card: oklch(1 0 180);
--card-foreground: oklch(0.086 0.021 326.81);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.921 0.008 325.159);
--primary-foreground: oklch(0.412 0.029 325.569);
--secondary: oklch(0.923 0 153.435);
--secondary-foreground: oklch(0.418 0 173.29);
--accent: oklch(0.923 0 153.435);
--accent-foreground: oklch(0.418 0 173.29);
--destructive: oklch(0.392 0.152 29.854);
--destructive-foreground: oklch(0.868 0.066 23.215);
--ring: oklch(0.921 0.008 325.159);
--chart-1: oklch(0.921 0.008 325.159);
--chart-2: oklch(0.923 0 153.435);
--chart-3: oklch(0.923 0 153.435);
--chart-4: oklch(0.947 0 180);
--chart-5: oklch(0.921 0.01 325.179);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.026 326.317);
--foreground: oklch(0.984 0.004 325.129);
--muted: oklch(0.209 0.036 326.194);
--muted-foreground: oklch(0.721 0.047 325.54);
--popover: oklch(0.14 0.026 326.317);
--popover-foreground: oklch(0.984 0.004 325.129);
--card: oklch(0.14 0.026 326.317);
--card-foreground: oklch(0.984 0.004 325.129);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.921 0.008 325.159);
--primary-foreground: oklch(0.412 0.029 325.569);
--secondary: oklch(0.189 0.016 325.681);
--secondary-foreground: oklch(0.738 0.047 325.53);
--accent: oklch(0.189 0.016 325.681);
--accent-foreground: oklch(0.738 0.047 325.53);
--destructive: oklch(0.63 0.232 29.463);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.921 0.008 325.159);
--chart-1: oklch(0.921 0.008 325.159);
--chart-2: oklch(0.189 0.016 325.681);
--chart-3: oklch(0.189 0.016 325.681);
--chart-4: oklch(0.222 0.022 325.75);
--chart-5: oklch(0.921 0.01 325.179);
}