@use '@angular/material' as mat;

@mixin sc-manual-theme($theme) {
    $primary: map-get($theme, primary);
    $danger: map-get($theme, danger);
    $background: map-get($theme, background);
    $foreground: map-get($theme, foreground);
    $is-dark-theme: map-get($theme, is-dark);

    $active-background-color: if($is-dark-theme, rgba(255, 255, 255, .4), rgba(0, 0, 0, .4));

    .custom-accordion {
        .mat-expansion-panel {
            &.mat-expanded {
                background-color: $active-background-color;
            }
        }
    }
}