Athletic is a shadcn/ui theme built around a deep violet primary color (#160f1f) with deep green accents (#0f1f16). The light mode uses a neutral background (#faf7fd). Dark mode keeps the deep violet primary (#160f1f) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #020104black |
| Foreground | #020104black | #fcfcfdwhite |
| Card | #f7f3fcghostwhite | #050208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #faf7fdghostwhite | #020104black |
| Popover foreground | #020104black | #fcfcfdwhite |
| Primary | #160f1fblack | #160f1fblack |
| Primary foreground | #ac95cbdarkgray | #ac95cbdarkgray |
| Secondary | #1f160fblack | #1f160fblack |
| Secondary foreground | #cbac95tan | #cbac95tan |
| Muted | #f0eae6linen | #1a140fblack |
| Muted foreground | #4f4640darkslategray | #bfb7b0silver |
| Accent | #0f1f16black | #0f1f16black |
| Accent foreground | #95cbacdarkseagreen | #95cbacdarkseagreen |
| Destructive | #872e08saddlebrown | #f4753etomato |
| Destructive foreground | #fcd6c5peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #160f1fblack | #160f1fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 9.31:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 9.24:1 | AAA |
| Accent | 9.31:1 | AAA |
| Destructive | 7.43:1 | AAA |
Paste this into your globals.css to use Athletic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 305.627);
--foreground: oklch(0.077 0.022 307.411);
--muted: oklch(0.94 0.009 60.157);
--muted-foreground: oklch(0.402 0.016 59.711);
--popover: oklch(0.98 0.008 305.627);
--popover-foreground: oklch(0.077 0.022 307.411);
--card: oklch(0.969 0.012 305.569);
--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.186 0.032 303.33);
--primary-foreground: oklch(0.71 0.081 304.206);
--secondary: oklch(0.209 0.019 58.861);
--secondary-foreground: oklch(0.766 0.048 59.381);
--accent: oklch(0.221 0.028 158.276);
--accent-foreground: oklch(0.796 0.071 159.44);
--destructive: oklch(0.428 0.13 39.539);
--destructive-foreground: oklch(0.903 0.048 44.521);
--ring: oklch(0.186 0.032 303.33);
--chart-1: oklch(0.186 0.032 303.33);
--chart-2: oklch(0.209 0.019 58.861);
--chart-3: oklch(0.221 0.028 158.276);
--chart-4: oklch(0.243 0.025 58.676);
--chart-5: oklch(0.185 0.035 303.078);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.016 306.919);
--foreground: oklch(0.991 0.002 305.715);
--muted: oklch(0.196 0.013 59.334);
--muted-foreground: oklch(0.783 0.014 60.039);
--popover: oklch(0.081 0.016 306.919);
--popover-foreground: oklch(0.991 0.002 305.715);
--card: oklch(0.102 0.021 306.919);
--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.186 0.032 303.33);
--primary-foreground: oklch(0.71 0.081 304.206);
--secondary: oklch(0.209 0.019 58.861);
--secondary-foreground: oklch(0.766 0.048 59.381);
--accent: oklch(0.221 0.028 158.276);
--accent-foreground: oklch(0.796 0.071 159.44);
--destructive: oklch(0.702 0.171 42.254);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.186 0.032 303.33);
--chart-1: oklch(0.186 0.032 303.33);
--chart-2: oklch(0.209 0.019 58.861);
--chart-3: oklch(0.221 0.028 158.276);
--chart-4: oklch(0.243 0.025 58.676);
--chart-5: oklch(0.185 0.035 303.078);
}