Sketch Together

NorthGrid
26 followers
5 Video Views·Oct 27, 2022
Hello and welcome to Sketch Together.
My name is Pablo Stanley and today we have a special episode.
And it's special because we're going to be talking about a Sketch plugin that was just
released this morning.
And it's called Auto Layout by the Anima team.
And I think it's just amazing.
I just played around with it this morning and I said, wow, this is going to change my
workflow.
I have a demo ready.
Let's do it.
To install this Sketch plugin, you want to go to their GitHub page.
I put a link on the description.
Just go there and then you will just like follow the instructions.
Once you download, you double click on the file and it should be fine.
So here I have a demo on a Sketch file.
Here let me just show you real quick what this does before we actually get to know how
to do it.
Once you have installed your plugin, you will see here that here on the bottom right corner,
you will see all the options for the Auto Layout plugin.
And it's pretty simple.
It has a simplified version and one that is a little bit more complex.
If you want to actually input all your information, you can do that or you can just use a simple
version of it.
So let me just show you real quick what it does.
Here I have an artboard, just a wireframe, just to show you what it does.
I'm going to just resize my artboard and see the magic happen.
All the different elements inside my artboard are just resizing in a smart way and the layout
is automatically adapting depending on the size that I put.
Right now this is iPhone 7 and let's say that I want to change it, I want to duplicate this
and let's say that I want to change it to, I don't know, to iPad Air and boom, right
there, it just changed the artboard and all my layout depending on how I adjust it to
that size.
Now let's see what happens if I want to generate multiple devices.
I can go here and generate an overview of all the sizes and it just creates a different
file and I'm going to, see that?
Automatically adapts all the different sizes for me to just have an overview of all the
different sizes.
It's amazing, it's really cool.
So, I'm going to delete this and now let's actually get to see how to accomplish this
with this plugin.
So I have the same layout over here, let me just demo first, let me try to resize it and
if I resize it, nothing happens because I haven't applied the outer layout.
So let me show you what you actually do.
Here, see that all these elements are even, they're not even groups, they're just like
floating elements right now and I can go over here to my outer layout, let me show list
and I have these little dots that tell me where do you want to pin your element.
You want to pin it to the top, pin to the bottom, pin to the left, pin to the right,
you want to center it horizontally or center it vertically.
So here, for example, this little icon, I want to pin it to the top and I want to pin
it to the right.
And let me show more, let me click more to show what's going on.
Here I have more details, it's telling me, oh, so it's 16 pixels to the top and 16 pixels
to the right, it is going to be fixed to that margin, to that padding according to the layout
of the artboard.
So it is automatically detecting that, I'm going to do that over here, I'm going to do
that with the points too, and then later if I, oh, yeah, with those, so to the left and
to the top, and if I wanted to actually change that, I can totally do that here.
You know what, I actually want this to be, instead of 16, I want it to be 24, 24, and
there's this one, 24 too, let's do the same with this guy, this is just a demo, 24, and
now if I resize my window, see, oh, let me see, oh my god, look at that, how cool is
that?
So now let's do the same with all the elements, so this guy, the header is going to be to
the top, left, and right, oops, there you go, this guy, this guy, the avatar, I want
it to actually be floating in the center.
So instead of this, I'm actually going to align it, what do you call it, horizontally?
Yeah, center horizontally, and I'm also going to pin it to the top, and now if I resize
my layout, my artboard, sorry, see how now it's always centered, and if I even move it
like this, it will always keep the padding on the top.
This is, I'm sorry, I'm telling you, this is also a reaction video, because I'm still
super amazed of the things that you can do here.
So here, these elements, I actually want to group them first, I want to group them, right
now they're just cells that are independent, once that they're grouped, I want to pin them
to the top, and then also to the left and to the right.
That way, they will stretch, so let me just pin them here, and let me move this over here
so I can zoom in there, there you go, so see, I'm moving this, and now it resizes, and not
only that, if I were to resize this, it's pinned to the top, see how that is not changing,
it's not stretching it, it's only stretching to the sides, because I pinned it to the left
and to the right.
I'm telling you guys, I'm really excited about this, and then this guy is going to be pinned
to the bottom, pinned to the left and to the right, and then, and I can just, it resizes
the CTA.
I could have, also, instead of, probably my button, I don't want the size of the button
to change, so then, I don't pin it to the left and to the right, and I just align it
horizontally, and that way it will be floating, it is like floating in space, and it's just
aligned, it's pinned to the bottom, and centered, and I'm going to actually do that with this
icon too.
It's centered, and then pinned to the bottom, and now I have my layout ready.
Oh, yeah, I actually want to, I do want to pin this to the left and to the right, there
you go, not to the top, there you go, now I can duplicate this artboard again, and then
change it to iPad Air, boom, boom, look at that, that is so cool.
So yeah, and I have other examples here, so for example, this is just a demo that I made,
I made this little guy, I used different plugins to do this, and look at that, it's just floating
and everything, the layout, it's just perfect, it just does exactly what I want it to do,
and let's change this to iPad Air, boom, look at that.
Here's another demo, this is from my startup, Carbon Health, and I said like, oh, I actually
want to test this on a real project, this is the build details when you have to pay,
the patient has to pay something, so we're putting everything here, and look at this.
So let me show you first how I had it.
So I had it before, I was using a pin to corner and everything, but if I wanted to resize
something, I'll have to actually duplicate it and do the whole resizing here, look at
this, look at this, oh my god, oh my god, I just applied the same principles.
So for example, this group, this group, I pin it to the bottom and to the left and to
the right, so now, when I transform the artboard, it's pinned to the bottom and to the right
and to the left.
So over here, I have another example, just last example, just to show you what's going
on, look at this, look at this, oh my god, so much time is going to be saved, I'm so
excited about this, so excited.
Anyway, go ahead and check it out, leave any questions you have, and hopefully I get to
see you soon.
Subscribe and all that, bye-bye, share, I don't know, happy new year, love you, bye.
