Specify: Quickly generate a shape with specific dimensions in Sketch
Yummygum were on Twitter yesterday searching for a Sketch plugin to generate a shape based off of specific user-inputted dimensions. As it happened, there wasn’t one. So I built one.
Specify has a couple of nice features that the Photoshop one doesn’t:
- If you have a layer selected, it will automatically set the initial
x
andy
values to those of the selected layer. - It supports Sketch’s differently-sized-border-radii syntax of, for example,
4/4/0/0
for top left4
, top right4
, bottom right, bottom left
.
The source for it is up on GitHub, along with the installation instructions and more information on customisation. The JS is fairly well commented too if you want to go and have a look at how it works.