Skip to content

πŸ‘¨β€πŸ‘¦ Sketch plugin that lets you fit a layer to its parent's width, height, or both.

Notifications You must be signed in to change notification settings

dannymcclain/fit-to-parent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘¨β€πŸ‘¦Fit to Parent

Installation

  • Download the latest release of the plugin
  • Un-zip
  • Double-click on fit-to-parent.sketchplugin

Usage

Quickly fit a layer to its parent* with keyboard shortcuts:

  • πŸ‘¨β€πŸ‘¦ Fit to parent ctrl alt cmd p

  • ↔️ Fit to parent's width ctrl alt cmd w

  • ↕️ Fit to parent's height ctrl alt cmd h

*A parent can either be a group or an artboard depending on your layer/group structure. This can be super handy.

Know Oddities & Bummers

  • Sometimes fitting text boxes to their parent can be screwy
  • Aspect-ratio-locked shapes (squares, circles, etc) sometimes behave unpredictably

Development Guide

This plugin was created using skpm. For a detailed explanation on how things work, checkout the skpm Readme.

About

πŸ‘¨β€πŸ‘¦ Sketch plugin that lets you fit a layer to its parent's width, height, or both.

Resources

Stars

Watchers

Forks

Packages

No packages published