Get Margins

Gets the margins between an inner and outer layer and then copies the results to the clipboard as CSS.

v1.0.0 is compatible with Sketch 0.0.0

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


Join the discussion

Download v1.0.0
Usage Activity
400100

No Sketchpacks Relay integration found

Stats
  • 41 downloads all–time
  • 6 downloads this week
  • 7 downloads this month
About this plugin

peterwooley published this plugin 2y ago.

v1.0.0 is the latest version.

Native updates are supported within Sketch.app.