@use "sass:map";
@use "../variables" as *;

@mixin elevation($value, $exclude: null) {
  @if $enable-elevations {
    box-shadow: map.get($elevations, $value);

    @if $enable-dark-mode {
      [data#{$data-infix}theme]:not([data#{$data-infix}theme="dark"]) & {
        &:not([class*="border"]) {
          border: 0;
        }
      }
    }
  }
}
