Stats card themes for your GitHub profile README
A gh-stats card takes one theme parameter. Pick one of five, or serve a dark
card to dark-mode visitors and a light one to everyone else.
The five themes
midnight
Dark slate. The default look.
?theme=midnight
onyx
High-contrast neon on pure black.
?theme=onyx
nord
Muted pastels on slate blue.
?theme=nord
clean
White, for light-mode profiles.
?theme=clean
paper
Warm off-white.
?theme=paper
Use a theme
Add ?theme= to the card URL in your README, replace the username, and commit:
[](https://gh-stats.com)
Leave the parameter out and the card uses midnight.
Switch with the viewer's GitHub theme
GitHub renders <picture> in READMEs and honours
prefers-color-scheme, so each visitor sees the card that matches their
GitHub appearance setting:
<a href="https://gh-stats.com">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://gh-stats.com/api/YOUR_USERNAME?theme=onyx"/>
<source media="(prefers-color-scheme: light)"
srcset="https://gh-stats.com/api/YOUR_USERNAME?theme=clean"/>
<img alt="GitHub stats" src="https://gh-stats.com/api/YOUR_USERNAME?theme=clean"/>
</picture>
</a>
Any dark theme works in the first line and any light one in the second.
Preview every theme with your usernameNew to profile READMEs? Start with how to create one. Coming from github-readme-stats? See the migration guide.
Common questions
Can I make a theme the default without the parameter? Yes. Sign in on
gh-stats.com with the GitHub account the card belongs
to, pick the theme, and save. /api/YOUR_USERNAME then uses it.
Does changing the theme reset my card? No. The theme changes colours only; the data is the same.