Bloggify / github-calendar

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

Rectangle Colors #91

Closed caleblallen closed 4 years ago

caleblallen commented 4 years ago

Hi All,

I'd like to add an option field for changing the rectangle colors.

GitHubCalendar(domObject, uName, { summary_text: 'blah', global_stats: true, responsive: true, base_color: '#FF5733' });

Base color would correspond to the current #239a3b slot (2nd to last). It would overwrite the last three values, leaving the base gray (#ebedf0) in place. Other colors would be calculated from the base color (darker, lighter).

The legend would also be changed to correspond.

IonicaBizau commented 4 years ago

This is already possible via CSS, like explained here.

Perhaps we should update the docs regarding this.

caleblallen commented 4 years ago

Hi @IonicaBizau, sorry, yes it had been in documentation I think I might not have bothered you with it :)