@use 'sass:map';
@use '~@angular/material' as mat;
@use './inline-editor-controls-outline-theme';
@use './inline-editor-controls-fill-theme';

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

  mtna-inline-editor-controls {
    &.mtna-appearance-outline {
      @include inline-editor-controls-outline-theme.color($theme);
    }
    &.mtna-appearance-fill {
      @include inline-editor-controls-fill-theme.color($theme);
    }
  }
}

@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);
  }
}
