A starter project for making Bootstrap 5 themes with Sass
*** This is simple starter project to help you get started quickly when making a custom Bootstrap theme.
This works on Windows, macOS and Linux.
Node Package Manager are required. Make sure you can run node --v.
You can get Node at nodejs.org
, then install dart-sass using npm install sass --save-dev
- If you have bootstrap 5 already installed just copy theming-kit.html to your project and then link the stylesheet which has bootstrap 5 to the head section.
- Clone this repo
- Then cd into to the clone project which will be (Bootstrap-5-Theming-Kit)
- Run npm install
- Then on your terminal run
npm run compile:sass
to Compilestyle.scss
and then make sure you link thestyle.css
stylesheet to the head section of the theming-kit.html ( check insideassets/css
folder ) . - Look at theming-kit.html (ideally with a local development webserver if possible)
- Add any Bootstrap 5 Sass variables you want to override into
scss/_custom.scss
by copying them from bootstrap_variables.scss file
check insidenode_modules/bootstrap/scss/_variables.scss
- enjoy :-).