@mixin mw-mat-elevations-theme($theme) {
  $is-dark-theme: map-get($theme, is-dark);
  $background: map-get($theme, background);

  $zLevelOpacities: (
    0: 0,
    1: 5,
    2: 7,
    3: 8,
    4: 9,
    6: 11,
    8: 12,
    12: 14,
    16: 15,
    24: 16,
  );
  @if ($is-dark-theme) {
    @each $zValue, $opacity in $zLevelOpacities {
      .#{'mat-elevation-z'}#{$zValue} {
        background-color: mix(white, map-get($background, card), $opacity);
      }
    }
  }
}
