As I work on a template that will be utilized by various individuals across different projects, ensuring it functions seamlessly without the need for project-specific modifications is paramount.
In this particular case, my goal is to modify the $spacer
variable, which controls the margins and paddings of all Bootstrap's classes. However, I'm struggling to update the $spacer
variable outside of the /node_modules
directory. Despite having my own _variables.scss
file where I define theme variables, using !important
or other techniques does not seem to have an effect, even though my custom _variables.scss
is loaded after Bootstrap from the node modules.
https://i.sstatic.net/ATg7e.png
Is there a way to provide a scss file to the node_modules directory to modify the variables internally? Alternatively, is there another method to override a variable from the node modules?