$spaceamounts: (
  0,
  2,
  3,
  4,
  5,
  6,
  8,
  10,
  12,
  13,
  15,
  18,
  20,
  25,
  30,
  35,
  40,
  45,
  50,
  55,
  60,
  65,
  70,
  75,
  80,
  85,
  90,
  95,
  100
); // Adjust this to include the pixel amounts you need.
$sides: (top, bottom, left, right); // Leave this variable alone

@each $space in $spaceamounts {
  @each $side in $sides {
    .m#{str-slice($side, 0, 1)}-#{$space} {
      margin-#{$side}: #{$space}px !important;
    }

    .p#{str-slice($side, 0, 1)}-#{$space} {
      padding-#{$side}: #{$space}px !important;
    }

    .m-#{$space} {
      margin-#{$side}: #{$space}px !important;
    }

    .p-#{$space} {
      padding-#{$side}: #{$space}px !important;
    }
  }
}
