How to override boot variables in sass?

I tried to configure Bootstrap 4. I want to copy the settings from the _variable.scss file to _custom.scss to override. But I did not find the _custom.scss file in the source code. How to add this _custom.scss file to my project?

+3
source share
1 answer

Bootstrap 4 is a big hit. They completely rewrote it. This way you can easily override variables. Just create the _custom-variables.scss file and import it before the _variables.scss file in bootstrap.scss , as shown below.enter image description here

, , _custom-variables.scss . ! Default. . !! . .

+3

Source: https://habr.com/ru/post/1675423/


All Articles