Foolhardy is a shadcn/ui theme built around a muted green primary color (#a2b983) with muted violet accents (#9a83b9). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#a2b983) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #080c03black | #f8faf5whitesmoke |
| Card | #fafcf8snow | #030303black |
| Card foreground | #050802black | #fafbf8snow |
| Popover | #fafcf8snow | #030303black |
| Popover foreground | #050802black | #fafbf8snow |
| Primary | #a2b983darkseagreen | #a2b983darkseagreen |
| Primary foreground | #050704black | #050704black |
| Secondary | #9a83b9mediumpurple | #9a83b9mediumpurple |
| Secondary foreground | #050407black | #050407black |
| Muted | #e2dee8gainsboro | #1b1721black |
| Muted foreground | #56505edimgray | #a7a1afdarkgray |
| Accent | #9a83b9mediumpurple | #9a83b9mediumpurple |
| Accent foreground | #050407black | #050407black |
| Destructive | #940705darkred | #f9332fcrimson |
| Destructive foreground | #fdcecepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a2b983darkseagreen | #a2b983darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.43:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 9.45:1 | AAA |
| Secondary button | 6.16:1 | AA |
| Muted text | 5.84:1 | AA |
| Accent | 6.16:1 | AA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.98:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 9.45:1 | AAA |
| Secondary button | 6.16:1 | AA |
| Muted text | 7.02:1 | AAA |
| Accent | 6.16:1 | AA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Foolhardy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 125.781);
--foreground: oklch(0.147 0.023 125.137);
--muted: oklch(0.906 0.015 305.517);
--muted-foreground: oklch(0.441 0.024 305.027);
--popover: oklch(0.989 0.006 125.824);
--popover-foreground: oklch(0.128 0.02 124.857);
--card: oklch(0.989 0.006 125.824);
--card-foreground: oklch(0.128 0.02 124.857);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.755 0.079 127.221);
--primary-foreground: oklch(0.122 0.01 125.279);
--secondary: oklch(0.651 0.083 304.011);
--secondary-foreground: oklch(0.109 0.01 306.297);
--accent: oklch(0.651 0.083 304.011);
--accent-foreground: oklch(0.109 0.01 306.297);
--destructive: oklch(0.422 0.169 29.106);
--destructive-foreground: oklch(0.893 0.053 19.341);
--ring: oklch(0.755 0.079 127.221);
--chart-1: oklch(0.755 0.079 127.221);
--chart-2: oklch(0.651 0.083 304.011);
--chart-3: oklch(0.651 0.083 304.011);
--chart-4: oklch(0.68 0.076 304.235);
--chart-5: oklch(0.761 0.087 127.373);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.006 125.827);
--muted: oklch(0.214 0.022 304.38);
--muted-foreground: oklch(0.72 0.021 305.353);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.988 0.004 125.797);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.988 0.004 125.797);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.755 0.079 127.221);
--primary-foreground: oklch(0.122 0.01 125.279);
--secondary: oklch(0.651 0.083 304.011);
--secondary-foreground: oklch(0.109 0.01 306.297);
--accent: oklch(0.651 0.083 304.011);
--accent-foreground: oklch(0.109 0.01 306.297);
--destructive: oklch(0.637 0.232 27.56);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.755 0.079 127.221);
--chart-1: oklch(0.755 0.079 127.221);
--chart-2: oklch(0.651 0.083 304.011);
--chart-3: oklch(0.651 0.083 304.011);
--chart-4: oklch(0.68 0.076 304.235);
--chart-5: oklch(0.761 0.087 127.373);
}