Fan is a shadcn/ui theme built around an indigo primary color (#4b3ebb) with green accents (#3ebb4b). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#4b3ebb) on a neutral background (#040407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040407black |
| Foreground | #010104black | #fcfcfdwhite |
| Card | #ffffffwhite | #040407black |
| Card foreground | #010104black | #fcfcfdwhite |
| Popover | #ffffffwhite | #040407black |
| Popover foreground | #010104black | #fcfcfdwhite |
| Primary | #4b3ebbrebeccapurple | #4b3ebbrebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bb4b3esienna | #bb4b3esienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eee3e2mistyrose | #1d1211black |
| Muted foreground | #433d3ddarkslategray | #c2bdbcsilver |
| Accent | #3ebb4blimegreen | #3ebb4blimegreen |
| Accent foreground | #0b220eblack | #0b220eblack |
| Destructive | #82110dmaroon | #ec423ctomato |
| Destructive foreground | #f9c9c7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4b3ebbrebeccapurple | #4b3ebbrebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.84:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 5.00:1 | AA |
| Muted text | 8.49:1 | AAA |
| Accent | 6.76:1 | AA |
| Destructive | 6.98:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 5.00:1 | AA |
| Muted text | 9.83:1 | AAA |
| Accent | 6.76:1 | AA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Fan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.073 0.02 287.46);
--muted: oklch(0.925 0.011 25.093);
--muted-foreground: oklch(0.366 0.008 25.182);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.073 0.02 287.46);
--card: oklch(1 0 180);
--card-foreground: oklch(0.073 0.02 287.46);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.459 0.188 280.506);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.56 0.148 28.963);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.701 0.188 144.775);
--accent-foreground: oklch(0.228 0.049 145.79);
--destructive: oklch(0.39 0.147 28.618);
--destructive-foreground: oklch(0.878 0.055 20.571);
--ring: oklch(0.459 0.188 280.506);
--chart-1: oklch(0.459 0.188 280.506);
--chart-2: oklch(0.56 0.148 28.963);
--chart-3: oklch(0.701 0.188 144.775);
--chart-4: oklch(0.583 0.144 28.633);
--chart-5: oklch(0.454 0.197 279.55);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.011 289.819);
--foreground: oklch(0.991 0.002 290.977);
--muted: oklch(0.197 0.017 25.959);
--muted-foreground: oklch(0.802 0.007 25.057);
--popover: oklch(0.106 0.011 289.819);
--popover-foreground: oklch(0.991 0.002 290.977);
--card: oklch(0.106 0.011 289.819);
--card-foreground: oklch(0.991 0.002 290.977);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.459 0.188 280.506);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.56 0.148 28.963);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.701 0.188 144.775);
--accent-foreground: oklch(0.228 0.049 145.79);
--destructive: oklch(0.628 0.207 27.043);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.459 0.188 280.506);
--chart-1: oklch(0.459 0.188 280.506);
--chart-2: oklch(0.56 0.148 28.963);
--chart-3: oklch(0.701 0.188 144.775);
--chart-4: oklch(0.583 0.144 28.633);
--chart-5: oklch(0.454 0.197 279.55);
}