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

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

  mtna-account-dialog {
    .mat-card-content {
      color: mat.get-color-from-palette($foreground, secondary-text);
    }
    .mat-card-actions {
      border-top-color: mat.get-color-from-palette($foreground, divider);
    }

    .point {
      border-color: transparent;
      border-bottom-color: mat.get-color-from-palette($background, card);
    }
  }
}

@mixin typography($theme) {
}

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

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