github-readme-activity-graph
github-readme-activity-graph copied to clipboard
Color scheme support in Github READMEs
All Submissions
- [x] Have you followed the guidelines in our Contributing document?
- [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
New Feature Submissions
I added support to prefers color scheme to activity graph. Now the graph can change their color to match with browser preferences 🚀
I use this trick to make it work in Github. You can look a proof of this feature in that repo.
I need help with the test, can you help me?
- [ ] Does your submission pass tests?
- [x] Have you lint your code locally prior to submission?
Changes to Core Features
- [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
- [ ] Have you written new tests for your core changes, as applicable?
- [ ] Have you successfully ran tests with your changes locally?
Hi @RodrigoTomeES, thanks for the pull request. Although this would be a great addition but it will not work with GitHub theme (it's working fine with browser theme).
After changing GitHub theme keeping browser theme dark

I think we are looking for something like this approach.
Hi @Ashutosh00710,
If you configure GitHub to follow browsers theme it works. Maybe use the media query is not the best approach for GitHub but it is very useful if you want to use the graph stats in a website.
https://user-images.githubusercontent.com/13077343/154837884-027b34be-8bdd-4a2c-b8e7-6b6c257aace5.mp4