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.

Install

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 get-margins.sketchplugin.

Usage

  1. Select two layers, where one is layer is surrounded by the other.
  2. Select Margins > Get Margins from the Plugins menu or press ⌘ ⇪ m to copy the margins between the inner and outer layers.
  3. Paste the margin CSS (e.g., margin: 10px 15px 12px 10px;) where ever you need it.

License

MIT