Athlete is a shadcn/ui theme built around a green primary color (#afe67f) with green accents (#7fe683). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#afe67f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #070c04black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #050802black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #070c04black | #ffffffwhite |
| Primary | #afe67flightgreen | #afe67flightgreen |
| Primary foreground | #182b08black | #182b08black |
| Secondary | #e2e67fkhaki | #e2e67fkhaki |
| Secondary foreground | #292b08black | #292b08black |
| Muted | #e7e8caantiquewhite | #343517darkslategray |
| Muted foreground | #62625bdimgray | #a4a49ddarkgray |
| Accent | #7fe683lightgreen | #7fe683lightgreen |
| Accent foreground | #082b0ablack | #082b0ablack |
| Destructive | #d92e08orangered | #f6380eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #afe67flightgreen | #afe67flightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 10.39:1 | AAA |
| Secondary button | 10.97:1 | AAA |
| Muted text | 4.89:1 | AA |
| Accent | 9.94:1 | AAA |
| Destructive | 4.84:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 10.39:1 | AAA |
| Secondary button | 10.97:1 | AAA |
| Muted text | 5.00:1 | AA |
| Accent | 9.94:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Athlete in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.021 128.774);
--muted: oklch(0.921 0.039 108.71);
--muted-foreground: oklch(0.494 0.012 108.372);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.021 128.774);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.018 128.636);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.863 0.144 131.763);
--primary-foreground: oklch(0.263 0.061 133.035);
--secondary: oklch(0.9 0.126 110.362);
--secondary-foreground: oklch(0.278 0.052 111.157);
--accent: oklch(0.838 0.166 144.596);
--accent-foreground: oklch(0.254 0.069 143.714);
--destructive: oklch(0.575 0.21 32.689);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.863 0.144 131.763);
--chart-1: oklch(0.863 0.144 131.763);
--chart-2: oklch(0.9 0.126 110.362);
--chart-3: oklch(0.838 0.166 144.596);
--chart-4: oklch(0.909 0.115 110.135);
--chart-5: oklch(0.868 0.15 131.853);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.321 0.047 110.474);
--muted-foreground: oklch(0.718 0.011 108.213);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.863 0.144 131.763);
--primary-foreground: oklch(0.263 0.061 133.035);
--secondary: oklch(0.9 0.126 110.362);
--secondary-foreground: oklch(0.278 0.052 111.157);
--accent: oklch(0.838 0.166 144.596);
--accent-foreground: oklch(0.254 0.069 143.714);
--destructive: oklch(0.635 0.229 32.862);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.863 0.144 131.763);
--chart-1: oklch(0.863 0.144 131.763);
--chart-2: oklch(0.9 0.126 110.362);
--chart-3: oklch(0.838 0.166 144.596);
--chart-4: oklch(0.909 0.115 110.135);
--chart-5: oklch(0.868 0.15 131.853);
}