Bloggify/github-calendar

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

ushby opened this issue · 0 comments

ushby commented

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