Skip to content

Latest commit

 

History

122 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Readme Stats

Your LeetCode profile cards, now for your readmes!

Stats card

[![LeetCode stats](https://leetcode-stats-six.vercel.app/KnlnKS)](https://github.com/KnlnKS/leetcode-stats)

LeetCode stats

Submission graph

[![LeetCode submissions](https://leetcode-stats-six.vercel.app/KnlnKS/graph)](https://github.com/KnlnKS/leetcode-stats)

LeetCode submissions

Options

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 3002000 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?cn

Matching GitHub's dark mode

prefers-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>

Credits

Card design mirrors LeetCode. Typeface is Inter by Rasmus Andersson, under the SIL Open Font License 1.1 (src/fonts/OFL.txt).

Used by

Contributors

Languages