cotes2020 / jekyll-theme-chirpy

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

Add primary color to variables_hook.scss #1354

Open nukdokplex opened 10 months ago

nukdokplex commented 10 months 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 10 months 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 10 months 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 9 months 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 7 months ago

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

github-actions[bot] commented 2 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.