@use 'sass:map';
@use '../../../mx-core/src/base/colors';

@mixin mx-breadcrumb-theme($theme) {
  $is-dark: map.get($theme, is-dark);
  $current-theme: colors.$mx-light;

  @if $is-dark {
    $current-theme: colors.$mx-dark;
  }

  .mx-breadcrumb {
    &__link {
      color: map.get($current-theme, primary);
    }
    &__label {
      color: map.get($current-theme, onSurfaceVariant);
    }

    .mat-icon {
      color: map.get($current-theme, onSurfaceVariant);
    }
  }
}
