Customizing Bootstrap
Basic customization
Don't forget to run npm start to get immediate feedback of your changes!
The simplest way to customize how your JHipster application looks like is by
overriding styles in the global Sass file: src/main/webapp/content/scss/global.scss for Angular and Vue, or src/main/webapp/app/app.scss for React.
Bootstrap is written in Sass; see Bootstrap's official documentation about theming.
If you want to use Bootstrap partials in your own scss files then import it like below at the beginning of your scss file.
For example to use the border-radius mixin:
@import "node_modules/bootstrap/scss/variables";
@import "node_modules/bootstrap/scss/mixins/border-radius";
Make sure you import only partials and not main Sass files, otherwise you will end up generating duplicate CSS which might cause issues.
To change the default Bootstrap settings like colors, border-radius, etc., add or change the value of the property in the partial file src/main/webapp/content/scss/_bootstrap-variables.scss (Angular and Vue) or src/main/webapp/app/_bootstrap-variables.scss (React)
All values defined in Bootstrap _variables.scss can be overwritten here.