Been using Bootstrap's default files via its CSS/JS CDN links, primarily for its responsive grid layouts. Now I would like to customize its colours to my own.
I think that I should
- download the compiled files
- use a custom.scss, and import the default master scss by @import "../node_modules/bootstrap/scss/bootstrap" ;
- change the sass color variables either directly or advisedly in its $theme-colors variable
- watch the custom.scss for a custom.css (sass --watch custom.scss custom.css)
- include and link to the custom.css and default compiled JS files in my webpages
Is it correct? Because I am reading a Bootstrap book that says I need to download the source files, install (npm install bootstrap), and compile them to use. I see Bootstrap as some off-the-shelf CSS and accompanying JS (compiled) files, readily to be linked to, so I don't quite understand what's there to be installed and compiled? Please explain.
I think that I should
- download the compiled files
- use a custom.scss, and import the default master scss by @import "../node_modules/bootstrap/scss/bootstrap" ;
- change the sass color variables either directly or advisedly in its $theme-colors variable
- watch the custom.scss for a custom.css (sass --watch custom.scss custom.css)
- include and link to the custom.css and default compiled JS files in my webpages
Is it correct? Because I am reading a Bootstrap book that says I need to download the source files, install (npm install bootstrap), and compile them to use. I see Bootstrap as some off-the-shelf CSS and accompanying JS (compiled) files, readily to be linked to, so I don't quite understand what's there to be installed and compiled? Please explain.