ankitskvmdam / clean-jsdoc-theme

A beautifully crafted theme / template for JSDoc 3. https://ankdev.me/clean-jsdoc-theme/v4
https://www.npmjs.com/package/clean-jsdoc-theme
MIT License
166 stars 41 forks source link

💡 CSS custom props #138

Open erikyo opened 2 years ago

erikyo commented 2 years ago

Is your feature request related to a problem? Please describe.

My feature request is as per the title to ask for the css custom props :) Would be really useful for customizing colors and although it would be handy to use them for margins/spacings as well. If any assistance is needed tell me, but i guess it is not very complicated for you! (ps. kudos for this repo is very nicely done)

Describe the solution you'd like

For each stylesheet at the beginning of the file add some variables in order to let the users customize easily the template

Describe alternatives you've considered

Currently there is no alternative, unless you want to use scss... however, we can say css custom props are more than widely supported so you can switch to those without any regret.

github-actions[bot] commented 2 years ago

Wonderful, you have created your first issue for clean-jsdoc-theme. Someone will talk to you soon!

ankitskvmdam commented 2 years ago

Hi @erikyo, Thanks for the feature request. I guess it won't be difficult to implement, and I also believe it would be a great addition. But it will take some time to implement.

For the time being, if you want to change the colour or margin of any element you can do this by creating a new CSS file and including it using Add style path. Of course, finding the class name to override would be a very tedious process.

I will try to work on this feature over the weekends.

erikyo commented 2 years ago

no rush (I've already fixed it), thanks again!