Get Margins Sketch Plugin
A Sketch plugin to get the margins between an inner and outer layer and then copies the results to the clipboard as CSS.
You can start using the Get Margins plugin in one of two ways:
- In Sketch Toolbox, search for 'Get Margins' and tap Install.
- Download or clone the repository and open
- Select two layers, where one is layer is surrounded by the other.
Margins > Get Marginsfrom the Plugins menu or press
⌘ ⇪ mto copy the margins between the inner and outer layers.
- Paste the margin CSS (e.g.,
margin: 10px 15px 12px 10px;) where ever you need it.