I want to change $spacer variable to make all margins bigger, but it just don't work. I'm trying to change it through SASS:
@import url(../node_modules/bootstrap/scss/_functions.scss);
@import url(../node_modules/bootstrap/scss/_variables.scss);
@import url(../node_modules/bootstrap/scss/_utilities);
$spacer: 15rem;
@import url(../node_modules/bootstrap/scss/bootstrap.scss);
:root {
--bs-body-font-family: 'Inter', Arial;
}
h1 {
font-size: 5.93rem;
line-height: 121%;
}
h2 {
font-size: 2.5rem;
line-height: 212%;
}
h3 {
font-size: 1.5rem;
line-height: 120%;
}
I tried to place this $spacer: 15rem
where it should be. After import function.scss
and before bootstrap.scss
.
Here is output css file:
@import url(../node_modules/bootstrap/scss/_functions.scss);
@import url(../node_modules/bootstrap/scss/_variables.scss);
@import url(../node_modules/bootstrap/scss/_utilities);
@import url(../node_modules/bootstrap/scss/bootstrap.scss);
:root {
--bs-body-font-family: 'Inter', Arial;
}
h1 {
font-size: 5.93rem;
line-height: 121%;
}
h2 {
font-size: 2.5rem;
line-height: 212%;
}
h3 {
font-size: 1.5rem;
line-height: 120%;
}
I found the first problem, I used @import url(./././././.)
, but now I use @import "././././"
and css output now normal. But it's still don't change margins.