Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asuraphel opened this issue Oct 29, 2022 · 2 comments
Open

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

asuraphel opened this issue Oct 29, 2022 · 2 comments

Comments

@asuraphel
Copy link

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
Copy link

r1zyn commented Dec 11, 2022

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

You could set the style attribute

@yisibell
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants