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

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

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

  .mx-section-title {
    &__header {
      border-bottom-color: map.get($current-theme, outlineVariant);
      &__title {
        color: map.get($current-theme, onSurface);
      }
    }
  }
}
