Hi,
You can create the common dialog having margin options and use below options to include common dialog items to a component
sling:resourceType: granite/ui/components/coral/foundation/include
path: /apps/myproject/components/include/utilities/cq:dialog/content/items/tabs/items/utilities
Also, write a common sling model which reads the margin values and add the values in sightly.