diff --git a/Readme.md b/Readme.md index 2ddda6e..6c73f96 100644 --- a/Readme.md +++ b/Readme.md @@ -177,11 +177,25 @@ specify this to change the parent container. (default: `body`) NProgress.configure({ parent: '#container' }); ~~~ +#### `barColor` +Specify this to change the bar color. (default: `#29d`) + +~~~ js +NProgress.configure({ barColor: '#343A40' }); +~~~ + +#### `spinnerColor` +Specify this to change the spinner color. (default: `#29d`) + +~~~ js +NProgress.configure({ spinnerColor: '#343A40' }); +~~~ + + Customization ------------- -Just edit `nprogress.css` to your liking. Tip: you probably only want to find -and replace occurrences of `#29d`. +Just edit `nprogress.css` to your liking. The included CSS file is pretty minimal... in fact, feel free to scrap it and make your own! diff --git a/nprogress.js b/nprogress.js index cdb5f4b..f3b46e0 100644 --- a/nprogress.js +++ b/nprogress.js @@ -23,9 +23,11 @@ speed: 200, trickle: true, trickleSpeed: 200, + barColor: '#29d', showSpinner: true, barSelector: '[role="bar"]', spinnerSelector: '[role="spinner"]', + spinnerColor: '#29d', parent: 'body', template: '