I'm currently in the process of learning Bootstrap 4 (alpha 6) through a tutorial. One of the tasks I need to complete is customizing the original css configuration from Bootstrap.
To do this, I made some changes to the _custom.scss file:
// Bootstrap overrides
//
// Copy variables from `_variables.scss` to this file to override
default values
// without modifying source files.
$green:red;
After modifying the _custom.scss file, I recompiled the bootstrap.scss file using prepros. However, upon reloading the page, I noticed that nothing had changed. The color remained the default green color from the Bootstrap main theme in the generated bootstrap.css file.
Interestingly, when I directly modified the _variables.scss file, it worked perfectly.
In my bootstrap.scss file, the _custom.scss file is imported after _variables.scss:
// Core variables and mixins
@import "variables";
@import "mixins";
@import "custom";
Can anyone offer any insights as to why this is not working as expected?