rstacruz / nprogress

For slim progress bars like on YouTube, Medium, etc
http://ricostacruz.com/nprogress
MIT License
25.98k stars 1.81k forks source link

How do I modify the CSS if I used NPM install? #243

Open asuraphel opened 1 year ago

asuraphel commented 1 year ago

Thanks for this useful library.

I'm importing the CSS as 'import 'nprogress/nprogress.css'in a SvelteKit project. I could copy paste and edit the file but I thought it might break with future versions. I'm interested in modifying the color. Can the color be provided as an option just likeshowSpinner`? Or is there a better way?

r1zyn commented 1 year ago

https://www.npmjs.com/package/nprogress#template

You could set the style attribute

yisibell commented 1 year ago

This library is rarely maintained anymore. You can try this library, and it is easy to modify the style of Progress bar programmatically.

https://github.com/yisibell/trickling