@use 'sass:map';
@use '~@angular/material' as mat;

@mixin color($theme) {
  $config: mat.get-color-config($theme);
  $foreground: map.get($config, foreground);

  mtna-about-dialog {
    .dialog-title {
      color: mat.get-color-from-palette($foreground, text);
    }
  }
}

@mixin typography($theme) {
  mtna-about-dialog {
    .dialog-title {
      font-size: 1.2em;
      font-weight: 300;
    }
  }
}

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

  @include typography($theme);
}
