I have a basic .scss style like this:
//@import "../components/bootstrap/scss/bootstrap"; // Core variables and mixins @import "../components/bootstrap/scss/functions"; @import "../components/bootstrap/scss/mixins"; @import "components/variables"; @import "../components/bootstrap/scss/variables";
I am trying to override the success variable in my components/variables as follows:
$green: #71c835 !important;
But he continues to raise the bootstrap color variables.scss , which is $green: #28a745 !default;
To create a clear view, I still tried to switch the sequence of these two files as follows:
// Core variables and mixins @import "../components/bootstrap/scss/functions"; @import "../components/bootstrap/scss/mixins"; @import "../components/bootstrap/scss/variables"; @import "components/variables";
It really drives me crazy, how can I just override bootstrap variables
sass twitter-bootstrap bootstrap-4
Sreinieren
source share