Im fan of this software and I usually think how can it be better, I think one of this ideas can be to build the possibility to make margins in the components, if you have a Text style I want to have the possibility to introduce de amount of bottom margin, for example the magin betwen the <h1> and <p>, thats could be prety awesome!
Design, Known Issue, Missing feature, Product performance
The effect you are looking for can be achieved with the new stacks feature, where you can adjust spacing (margins) between elements within a group, individually or simultaneously: https://www.youtube.com/watch?v=xGAUAIPjl78
You can't really set margins per element, as they would affect other elements, which isn't applicable in the way Xd works. It's not a graphic HTML/CSS editor like Webflow. You can add paddings, which in combination with stacks give you enough control and it's pretty much the same as paddings/margins in CSS.