I am trying to figure out how I can create an .scss class that will store and update some global theme colors based on when the user changes themes. This in Angular 9.
@each $skin,
$data in $skins {
$skin-mask-slight-color: map-get($data, skin-mask-slight);
$skin-text-color: map-get($data, skin-text);
$skin-navbar-color: map-get($data, skin-navbar);
$skin-gradient-start-color: map-get($data, skin-gradient-start);
$skin-gradient-end-color: map-get($data, skin-gradient-end);
$skin-primary-color: map-get($data, skin-btn-primary);
$skin-secondary-color: map-get($data, skin-btn-secondary);
$skin-default-color: map-get($data, skin-btn-default);
.#{$skin}-skin {
// store and update the above variables based on selected theme
}
}
I want to be able to access the current value of the declared variables in any other .scss class.
Is there a way to accomplish this?