Bloggify / github-calendar

:bar_chart: Embed your GitHub calendar everywhere.
https://bloggify.github.io/github-calendar/example/
MIT License
1.24k stars 213 forks source link

Integrating the months & days colors with the site's default + Bold Text #151

Open ushby opened 2 years ago

ushby commented 2 years ago

The text of the days and months is a crucial element, we had to change ourselves, any contributing organization, specially those that start new would need people to realize their progress quickly, they won't appreciate the timeline dimmed in grey like that.

This JavaScript can change the color to the site's default scheme, although I am not sure which element would that be in general..

Here it is :

document.onload = function colorize(){
const colorPicker = body.getElementsByClassName("  <some specific common class or element  ") .style.color;
 if (colorPicker.includes("#")){
    var calanderLabel = document.getElementsByClassName("ContributionCalendar-label");
    calanderLabel.style.fill = ({colorPicker});
    } else {
        calanderLabel.style.fill = (#000);
    }
}

In support of our claim, the font-weight of the text should be bold.

Check out our site and see how it looks

Screenshot_2022-08-09_21-17-37