Using Bootstrap 4, I'm trying the change the value of brand-primary in a mixin:
// variables
$theme-colors: (
  "main": #9fa28b,
  "another-section": #ec008c,
  "yet-another-section": #00b0d8
);
// main scss
@mixin theme($color){
    $theme-colors: (
        "brand-primary": $color
    );
}
body {
    @include theme(theme-color($key: "main"));
    &.another-section {
        @include theme(theme-color($key: "another-section"));
    }
    &.yet-another-section {
        @include theme(theme-color($key: "yet-another-section"));
    }
}
This compiles without an error but nothing with the classes another-section or yet-another-section are in the compiled css.
Is there a way of overriding brand-primary within a mixin (or any variable)?
 
    