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

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

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

  .mx-loading-dots {
    color: map.get($current-theme, onSurface);
    &--on-surface-variant {
      color: map.get($current-theme, onSurfaceVariant);
      .mx-loading-dots__dot {
        background-color: map.get($current-theme, onSurfaceVariant);
      }
    }

    &__dot {
      background-color: map.get($current-theme, onSurface);
    }
  }
}
