Your LeetCode profile cards, now for your readmes!
[](https://github.com/KnlnKS/leetcode-stats)[](https://github.com/KnlnKS/leetcode-stats)| Parameter | Values | Default | |
|---|---|---|---|
theme |
light, dark |
light |
LeetCode's own two palettes |
font |
default, system |
default |
default embeds Inter so the card looks the same everywhere; system drops it and cuts the response from ~32 KB to ~3 KB |
cn |
flag | off | read from leetcode.cn instead |
width |
300–2000 |
836 |
graph card only |
https://leetcode-stats-six.vercel.app/KnlnKS?theme=dark
https://leetcode-stats-six.vercel.app/KnlnKS/graph?theme=dark&width=500
https://leetcode-stats-six.vercel.app/KnlnKS?cnprefers-color-scheme inside an SVG isn't honoured by GitHub, so pick the theme
from the markup instead:
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://leetcode-stats-six.vercel.app/KnlnKS?theme=dark">
<img src="https://leetcode-stats-six.vercel.app/KnlnKS?theme=light">
</picture>Card design mirrors LeetCode. Typeface is
Inter by Rasmus Andersson, under the SIL Open Font
License 1.1 (src/fonts/OFL.txt).