Ok, so I want to create an outline-icon. Therefore I made a rectangle and chose to have my border centred, so that round corners are actually round on both sides. In order for it to be pixel-perfect, I want the border to lie on the pixels and not between them, like this:

Rectangle aligned the way I want it to

However Sketch keeps rearranging my rectangle the way I do not want it:

Sketch not letting me align my rectangle

Now, when I edit vector-points I can choose how sketch places these in relation to the pixel-grid:

Option for vector points

Is there some similar option for aligning objects, rather than their anchor-points? Because this is driving me crazy. Even if I duplicate a perfectly aligned rectangle using alt/option + drag, it moves both of them to lie between pixels ...

1 Answer 1


I use illustrator and Inkscape, might I suggested you change the border to outside or outer. Based on the gif you posted you have it on centre, basically Sketch is snapping your rectangle to its anchor points, if the stroke is set to inside or outer alignment that could solve your problem.

Outlining the object's stroke will help with aligning to the grid. Make sure to retain the original incase you need to make edits.

  • Indeed. However the problem with this solution is that then either the inner or outer edges of my border will not be round whenever there is a corner. That is why I put it on centre in the first place :/
    – CrazyQwert
    Commented Jun 3, 2017 at 21:15
  • Outline the strokes. Should serve as quick solution. Make sure you keep a copy of the original. Commented Jun 3, 2017 at 21:17
  • good point. Can you post that as another answer? I'll mark it as the correct one then as this solved my problem :)
    – CrazyQwert
    Commented Jun 3, 2017 at 21:19
  • Or rather edit your current one to also include this option. That's probably a better idea
    – CrazyQwert
    Commented Jun 3, 2017 at 21:22
  • Most definitely. Out of curiosity does sketch allow you to run scripts and actions the way illustrator and Inkscape do? Commented Jun 3, 2017 at 21:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.