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

@mixin mx-rich-tooltip-theme($theme) {
  $is-dark: map.get($theme, is-dark);
  $color-theme: colors.$mx-light;

  @if $is-dark {
    $color-theme: colors.$mx-dark;
    .mx-rich-tooltip {
      @extend .gl-dark-el-2;
    }
  }

  .mx-rich-tooltip {
    @extend .gl-el-2;
    background-color: map.get($color-theme, surfaceContainer);
    color: map.get($color-theme, onSurfaceVariant);
  }
}
