cotes2020 / jekyll-theme-chirpy

A minimal, responsive, and feature-rich Jekyll theme for technical writing.
https://chirpy.cotes.page
MIT License
7.65k stars 5.99k forks source link

Add primary color to variables_hook.scss #1354

Closed nukdokplex closed 2 weeks ago

nukdokplex commented 1 year ago

Checklist

Is your feature request related to a problem? Please describe

I can't easily change primary color of my website without overwriting files in colors folder.

Describe the solution you'd like

I think people would like it if they could just specify the primary color (links, buttons, etc) in variables_hook.scss and it would apply to light and dark themes. I think that using formulas one can calculate the shade of this color that will best suit a light or dark theme. I saw this in Bootstrap and other sass frameworks.

Describe alternatives you've considered

No response

Additional context

No response

cotes2020 commented 1 year ago

Sounds interesting. I don't have a succinct implementation at the moment, so if you have a solution, please share it.

I think that using formulas one can calculate the shade of this color that will best suit a light or dark theme.

What is the technique of calculating color by formula, looking for an explanation.

nukdokplex commented 1 year ago

@cotes2020

What is the technique of calculating color by formula, looking for an explanation.

Here you can see examples how does it works.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

nukdokplex commented 10 months ago

I think that I can try add this feature to project in my free time.

github-actions[bot] commented 5 months ago

This conversation has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 weeks ago

This conversation has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.