You need to make your own style to override the default bootstrap variable in scss.
You can find all possible variables here ../node_modules/bootstrap/scss/_variables.scss
Bootstrap also provides a custom file for us, adding our style ../node_modules/bootstrap/scss/_custom.scss
for example: here I redefine two variables that affect my accordion (I changed some random colors)
$link-color:$brand-warning; $card-bg:$green;
and don't forget to delete !default in _custom.scss , and you did it with a special style.
Now you need to build css from scss
First install npm install -g grunt-cli globally
then go to \my-app\node_modules\bootstrap> npm install , this will install all the dependencies.
Finally, run \my-app\node_modules\bootstrap> grunt , this will create a css file.
This should work reliably.
In my case, "bootstrap.min.css" is not generated correctly, so now I use "../ node_modules / bootstrap / dist / css / bootstrap.css" in my .angular-cli.json file.
source share