@use '~@angular/material' as mat;

@mixin color($toolbar-background-palette) {
  mtna-app-toolbar {
    .mat-toolbar {
      background-color: mat.get-color-from-palette($toolbar-background-palette, default);
      color: mat.get-color-from-palette($toolbar-background-palette, default-contrast);
    }
  }
}

@mixin typography($theme) {
}

@mixin theme($theme, $toolbar-background-palette) {
  @if $toolbar-background-palette != null {
    @include color($toolbar-background-palette);
  }

  $typography-config: mat.get-typography-config($theme);
  @if $typography-config != null {
    @include typography($theme);
  }
}
