in scss file:
@import "../node_modules/bootstrap/scss/functions";
@import "../node_modules/bootstrap/scss/variables";
@import "../node_modules/bootstrap/scss/mixins";
$primary_color: #EC424F;
.dark {
$primary_color: #403F45 !global;
}
.light {
$primary_color: #f4f4f4 !global;
}
$theme-colors: ( "primary": $primary_color);
@import "~bootstrap/scss/bootstrap";
i tried this way but not works it's just chooses the last variable color in the last class (yellow) for all elements even i added the light class or not
and in html file:
<button type="button" class="btn btn-primary btn-lg btn-block">Default</button>
<button type="button" class="btn btn-primary btn-lg btn-block dark">Dark</button>
<button type="button" class="btn btn-primary btn-lg btn-block light">Light</button>
i'm using angular, anyone know how to use multiple or switchable bootstrap themes with sass?