Athlete for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.74:1AAA
Text on card19.71:1AAA
Primary button10.39:1AAA
Secondary button10.97:1AAA
Muted text4.89:1AA
Accent9.94:1AAA
Destructive4.84:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button10.39:1AAA
Secondary button10.97:1AAA
Muted text5.00:1AA
Accent9.94:1AAA
Destructive3.81:1AA Large

CSS variables

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);
}