Fearless is a shadcn/ui theme built around a green primary color (#3b7a24) with green accents (#247a38). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#3b7a24) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #020401black |
| Foreground | #091504black | #f7f8f7whitesmoke |
| Card | #fcfdfcwhite | #020401black |
| Card foreground | #091504black | #f7f8f7whitesmoke |
| Popover | #fcfdfcwhite | #020401black |
| Popover foreground | #091504black | #f7f8f7whitesmoke |
| Primary | #3b7a24forestgreen | #3b7a24forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #667a24olivedrab | #667a24olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dddfd8gainsboro | #262720darkslategray |
| Muted foreground | #595b52dimgray | #abada4darkgray |
| Accent | #247a38forestgreen | #247a38forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #89200bdarkred | #ec3713orangered |
| Destructive foreground | #fbd3cbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3b7a24forestgreen | #3b7a24forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.40:1 | AAA |
| Text on card | 18.40:1 | AAA |
| Primary button | 5.27:1 | AA |
| Secondary button | 4.81:1 | AA |
| Muted text | 5.12:1 | AA |
| Accent | 5.37:1 | AA |
| Destructive | 6.72:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 5.27:1 | AA |
| Secondary button | 4.81:1 | AA |
| Muted text | 6.62:1 | AA |
| Accent | 5.37:1 | AA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Fearless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 137.195);
--foreground: oklch(0.179 0.038 136.743);
--muted: oklch(0.9 0.01 117.274);
--muted-foreground: oklch(0.467 0.014 117.615);
--popover: oklch(0.993 0.002 137.195);
--popover-foreground: oklch(0.179 0.038 136.743);
--card: oklch(0.993 0.002 137.195);
--card-foreground: oklch(0.179 0.038 136.743);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.518 0.135 138.564);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.545 0.112 121.585);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.512 0.128 147.679);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.416 0.143 32.869);
--destructive-foreground: oklch(0.899 0.046 31.231);
--ring: oklch(0.518 0.135 138.564);
--chart-1: oklch(0.518 0.135 138.564);
--chart-2: oklch(0.545 0.112 121.585);
--chart-3: oklch(0.512 0.128 147.679);
--chart-4: oklch(0.582 0.121 121.636);
--chart-5: oklch(0.524 0.141 138.681);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.014 135.773);
--foreground: oklch(0.978 0.003 137.195);
--muted: oklch(0.27 0.013 117.953);
--muted-foreground: oklch(0.742 0.012 117.38);
--popover: oklch(0.098 0.014 135.773);
--popover-foreground: oklch(0.978 0.003 137.195);
--card: oklch(0.098 0.014 135.773);
--card-foreground: oklch(0.978 0.003 137.195);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.518 0.135 138.564);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.545 0.112 121.585);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.512 0.128 147.679);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.616 0.22 32.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.518 0.135 138.564);
--chart-1: oklch(0.518 0.135 138.564);
--chart-2: oklch(0.545 0.112 121.585);
--chart-3: oklch(0.512 0.128 147.679);
--chart-4: oklch(0.582 0.121 121.636);
--chart-5: oklch(0.524 0.141 138.681);
}