Fund is a shadcn/ui theme built around a vivid yellow primary color (#a8a315) with vivid purple accents (#a315a8). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the vivid yellow primary (#a8a315) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #070703black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fafaf5whitesmoke | #0b0b04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fafaf5whitesmoke | #0b0b04black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #a8a315darkgoldenrod | #a8a315darkgoldenrod |
| Primary foreground | #000000black | #000000black |
| Secondary | #15a8a3lightseagreen | #15a8a3lightseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #cee3e2gainsboro | #1c3130darkslategray |
| Muted foreground | #455959darkslategray | #a6babadarkgray |
| Accent | #a315a8darkmagenta | #a315a8darkmagenta |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #aa0f03darkred | #fa1f0fred |
| Destructive foreground | #fee3e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a8a315darkgoldenrod | #a8a315darkgoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 2.93:1 | Fail |
| Muted text | 5.56:1 | AA |
| Accent | 6.50:1 | AA |
| Destructive | 6.23:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 2.93:1 | Fail |
| Muted text | 6.79:1 | AA |
| Accent | 6.50:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Fund in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 104.893);
--foreground: oklch(0 0 0);
--muted: oklch(0.901 0.022 194.338);
--muted-foreground: oklch(0.448 0.025 193.759);
--popover: oklch(0.984 0.007 104.936);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.007 104.936);
--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.697 0.145 107.405);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.662 0.111 191.054);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.512 0.226 326.644);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.468 0.185 29.916);
--destructive-foreground: oklch(0.938 0.03 22.603);
--ring: oklch(0.697 0.145 107.405);
--chart-1: oklch(0.697 0.145 107.405);
--chart-2: oklch(0.662 0.111 191.054);
--chart-3: oklch(0.512 0.226 326.644);
--chart-4: oklch(0.701 0.118 191.034);
--chart-5: oklch(0.706 0.148 107.386);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.014 106.965);
--foreground: oklch(0.993 0.001 104.822);
--muted: oklch(0.294 0.027 193.12);
--muted-foreground: oklch(0.774 0.023 194.25);
--popover: oklch(0.147 0.017 106.893);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.147 0.017 106.893);
--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.697 0.145 107.405);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.662 0.111 191.054);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.512 0.226 326.644);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.627 0.246 29.756);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.697 0.145 107.405);
--chart-1: oklch(0.697 0.145 107.405);
--chart-2: oklch(0.662 0.111 191.054);
--chart-3: oklch(0.512 0.226 326.644);
--chart-4: oklch(0.701 0.118 191.034);
--chart-5: oklch(0.706 0.148 107.386);
}