Master Auto Layout in 20 minutes | 2023 Auto Layout Figma Tutorial
Summary
TLDREste video tutorial profundiza en una de las características más poderosas de Figma: Auto Layout. A través de una explicación detallada, el video enseña cómo definir reglas para que los diseños se adapten automáticamente a cambios como texto adicional o elementos redimensionados, eliminando la necesidad de ajustes manuales. Desde la adición de Auto Layout con un simple atajo de teclado hasta técnicas avanzadas para crear diseños responsivos, este tutorial cubre todo lo esencial. Con ejemplos prácticos, desde botones simples hasta tarjetas complejas, se demuestra cómo Auto Layout puede acelerar el proceso de diseño y hacerlo más eficiente.
Takeaways
- 🖥️ Auto Layout en Figma es una característica poderosa que define cómo se comportan los diseños ante cambios como añadir texto o redimensionar marcos.
- 📏 Auto Layout permite modificar diseños sin tener que reorganizar manualmente, ahorrando tiempo y esfuerzo una vez se domina.
- 🔑 La clave para usar Auto Layout eficientemente es aprender a definir reglas previas que gestionen cómo los cambios afectan a los diseños.
- ✨ Dominar Auto Layout mejora la capacidad de respuesta de los diseños y agiliza el proceso de diseño.
- ➕ Para añadir Auto Layout, se pueden seleccionar varios elementos y usar el ícono de 'plus' o el atajo 'Shift + A'.
- 🔄 Auto Layout permite la fácil incorporación, duplicación y reordenamiento de elementos en un diseño, manteniendo un espaciado correcto.
- 🔧 Los ajustes de Auto Layout incluyen dirección de flujo, orden de apilamiento, posición absoluta, espaciado y alineación de elementos.
- 📐 Se pueden establecer dimensiones mínimas y máximas para los marcos en Auto Layout, permitiendo flexibilidad y consistencia en el diseño.
- 🌐 Ejemplos prácticos de Auto Layout incluyen la creación de botones con iconos, menús de navegación y tarjetas de contenido dinámico.
- 🛠️ Practicar con ejemplos reales es esencial para dominar Auto Layout y expandir las capacidades de diseño en Figma.
Q & A
¿Qué es el auto layout en Figma y para qué sirve?
-El auto layout en Figma permite definir cómo los elementos dentro de un diseño se comportarán y se reorganizarán automáticamente cuando se hacen cambios como agregar más texto o nuevos elementos. Esto agiliza el proceso de diseño.
¿Cómo se puede agregar auto layout en Figma?
-Se puede agregar auto layout seleccionando varios elementos y haciendo click en el ícono + en la sección de auto layout o usando el atajo de teclado Shift+A.
¿Cuáles son las principales ventajas de usar auto layout en Figma?
-Las principales ventajas son que permite modificar diseños rápidamente sin tener que reorganizar todo manualmente, hace los diseños más responsivos ante diferentes tamaños de pantalla y permite diseñar más rápido.
¿Cómo funciona la alineación de elementos hijos en auto layout?
-La alineación de elementos hijos permite definir 9 puntos de alineación dentro del marco de auto layout para organizar cómo se posicionan los elementos internos.
¿Para qué sirve la opción "Relleno de contenedor" en auto layout?
-La opción "Relleno de contenedor" hace que el elemento de auto layout se expanda automáticamente para llenar el espacio del contenedor o marco exterior que lo contiene.
¿Cómo mantener un espaciado consistente entre elementos en auto layout?
-Se puede definir manualmente el espacio entre elementos en píxeles en lugar de dejar que se ajuste automáticamente. Esto asegura que el espacio se mantenga igual al redimensionar.
¿Cómo duplicar elementos dentro de auto layout manteniendo las propiedades?
-Se puede usar Ctrl+D para duplicar elementos y crear una copia dentro del auto layout que sigue la misma disposición. También se pueden copiar y pegar estilos entre elementos.
¿Cómo cambiar el orden de elementos en auto layout?
-Se puede cambiar el orden de los elementos seleccionándolos directamente y moviéndolos con las teclas de dirección o desde el panel Capas.
¿Cómo quitar el efecto de auto layout a un elemento?
-Se puede quitar el efecto de auto layout a un elemento redimensionándolo manualmente. Esto cambiará la propiedad a Fijo.
¿Cómo lograr que los elementos se ajusten al redimensionar con auto layout?
-Hay que asegurarse de que los elementos internos y contenedores tengan activada la opción "Relleno de contenedor" para que se expandan o contraigan automáticamente al redimensionar.
Outlines
🔧 Introducción al Auto Layout en Figma
Este segmento introduce el Auto Layout de Figma, una de sus características más potentes, permitiendo a los diseñadores definir reglas para cómo se deben comportar los diseños ante cambios, como agregar texto o elementos, o redimensionar marcos. Se enfatiza la importancia de comprender completamente el Auto Layout para hacer diseños más responsivos y agilizar el proceso de diseño. Se promete explicar todo lo necesario sobre el Auto Layout, incluyendo cómo añadirlo a los elementos, sus características, y ejemplos prácticos para facilitar su uso inmediato.
📐 Funciones y Aplicaciones del Auto Layout
Este párrafo detalla las funcionalidades específicas del Auto Layout, como la adición a elementos, la organización automática de elementos nuevos, la anidación de marcos de Auto Layout, y la duplicación y reordenamiento de elementos dentro de un Auto Layout. Se describe cómo estas funciones permiten una manipulación eficiente de los diseños sin necesidad de reajustes manuales constantes. Además, se explican las propiedades del Auto Layout, como la dirección del flujo de diseño, la ordenación de elementos, y la configuración de espacios y alineaciones, ofreciendo un control detallado sobre la disposición de los elementos en el diseño.
🔍 Profundizando en las Propiedades del Auto Layout
Este párrafo avanza en la exploración de las propiedades del Auto Layout, abordando temas como la alineación de elementos basada en el texto, las propiedades de redimensionamiento, y cómo ajustar el comportamiento de los marcos de Auto Layout al contenido. Se discute el impacto de las propiedades de redimensionamiento en la adaptabilidad del diseño, incluyendo cómo manejar dimensiones mínimas y máximas. Este análisis prepara el terreno para aplicar prácticamente estos conceptos en ejemplos de diseño.
🛠 Ejemplos Prácticos con Auto Layout
Este segmento se centra en aplicar los conceptos de Auto Layout a través de ejemplos prácticos, escalando en complejidad desde un botón simple hasta menús y tarjetas avanzadas. Se enseña cómo replicar componentes comunes de UI, destacando la importancia de la lógica y la estructura en el diseño responsivo. Se concluye con un proyecto avanzado que consolida el conocimiento adquirido sobre Auto Layout, demostrando cómo puede facilitar la creación de diseños complejos y adaptativos, animando a los diseñadores a practicar y experimentar con sus propios proyectos.
Mindmap
Keywords
💡Auto layout
💡Responsive design
💡Design system
💡Layout flow
💡Alignment
💡Resizing
💡Padding
💡Gaps
💡Order
💡Clip content
Highlights
Auto layout allows elements in a design to responsively rearrange when changes are made, without having to manually adjust everything
You can add auto layout to elements by selecting them and pressing shift+A, or accessing the auto layout panel
Key auto layout properties include direction, alignment, spacing, resizing rules, and padding
Practical examples are provided for creating responsive buttons, menus, and cards with auto layout
Transcripts
or there is one of figma's most powerful
features which you cannot to frame some
components so you basically Define how
you want your designs to behave when
change is made for example if you add
more text or you are a new element or
you resize the frame you set the rules
on how change will affect your designs
and then you can freely modify it
without having to manually rearrange
everything again it takes a bit of a
learning curve to master it but trust me
once you get a grasp of it your designs
will be much more responsive and you
will be able to design much faster I'll
make sure to go over everything you
might need to know to really comprehend
on a layout so you can start using it
today
I really want to go over everything with
you guys so you have a very good
understanding of everything Auto layout
related so first we will be checking
what can be done with auto layout then
we will be going over every feature that
auto layout has and finally we'll be
going over some practical examples okay
so the first thing is how to actually
add Auto layout to something so
basically you can select several
elements and click the plus icon on the
auto layout section or you can click
shift a which I would recommend you
learn that shortcut because you will be
using this a lot you can do this both to
several elements or you can create an
online for a single element shift a and
you will be accessing the other layout
features okay so what can be done with
auto layer the whole point of this is
letting the auto layout figure out the
arranging of the elements so you set the
parameters beforehand and then you can
modify the design add remove or or edit
without you having to organize
everything again so so I can add a new
object to my other layout
I just have to drag and drop it and it
will figure out the the correct spacing
I can Nest an auto layout frame inside a
new water layout frame so if I copy this
outer layer and then select this other
layout and paste it it will arrange it
inside of that frame you can also
duplicate elements inside the auto
layout so I can grab the a
I will click Ctrl D which duplicates and
it creates a copy inside the earlier
which follows the same Arrangement and I
can easily edit that so I don't have to
create everything from scratch I can
also arrange the order of them very
easily so I if I want this element to be
the first one and this is the second one
it's very simple to do and finally I can
remove objects without it affecting my
layout okay now let's go to the earlier
properties I will be going over
everything you can edit when you assign
the earlier property and I'll be
grouping everything by categories just
so it's more easily for you to
understand so the first section is the
layout flow on the first properties
direction from this section you will be
able to pick in what direction the
elements will be arranged so I can make
it horizontal
vertical
or have the elements wrap around to the
next line when they don't fit the given
space so if I shrink this the element
will move to the next line next I can
Define the canvas stuck in order so I
can make the first one on top click the
three dot menu or make it the last on
top you can edit the order of your
Elements by directly selecting one and
moving it around with your arrow keys or
from the layers panel you can also find
the absolute position feature to do this
you have to have an auto layout frame
click one of the elements and this icon
will appear which is the absolute
position icon once you click it you can
freely move around that element to any
place you want next we have spacing and
the first feature in here would be
distribution or gap between elements
your first option in here will be manual
or specified spacing so if you go to the
gap between elements
input and you type 24 you will be
manually setting setting the value
between those elements or if you want it
to automatically adapt according to the
size of the frame that contains them
then you will click the drop down menu
click Auto and then if you resize the
frame that contains them space will
automatically adapt next we have padding
we can set whatever
value you want to surround the element
and you can also use the padding element
to create a margin around the the whole
element so if I apply another Auto
layout frame to this you will see
transparent space around it find it in
the spacing section you will have
another option which is Strokes in the
layout so this is how it looks when it's
included you can see the stroke is
inside of the frame but if I set this to
excluded again from the three dotted
menu I will click extrude from layout
you will see that the stroke is no
longer considered inside the outer layer
okay on to the next section alignment
the first feature of alignment will be
setting alignment on child objects so I
gave this a layout a background just so
you can more easily recognize what's
happening okay when the gap between the
elements is defined this is called
packed so the elements are packed
together and you can Define nine
alignment points inside of the auto
layout if you set the Gap to Auto in
this case the elements will cover the
whole available horizontal space and you
will only have three alignment options
which is up Center or button next you
can toggle off or on the text base
alignment so in this in this first
example it is turned off and the
elements are Center aligned if I
duplicate that go to the three dots menu
and activate it but will be used to
align the elements is the base of the
text another shape that contains them
okay on to the next section which is
resizing so when you first apply our
layout to something
the default resizing property selected
will be hog so what this means is there
are layout frame will hog the content so
let me give that a feel so you can see
it so if I keep typing in here the frame
will grow to contain there then if you
take a frame which is set to hog or any
other property and you manually resize
it so if you grab it and size it
yourself you will notice you will
automatically be changed to fixed this
will also happen if you manually enter a
value in its width or height next is the
fill container so for this property to
be available this must be inside of
another container so let me give this an
other other layout frame shift a you
will notice as I resize the outer frame
the inner one stays the same size
because it is set to but if I set this
to fill container it will automatically
fill the outside frame so no matter what
size I make it it will follow
[Music]
and finally the Min and Max Dimensions
let me grab this now let's assign this a
minimum dimension of
200 pixels and a Max dimension of 250.
so you will notice I assigned these
properties to the inner frame but it's
still set to fill so it will still try
to fill the container but it will
respect the Min and Max Dimensions as I
said so you will notice it won't go
below 200 pixels and it won't go over
250 pixels okay finally let's go to the
examples I divided this in three
categories the first one being an easy
one then a medium and then an advanced
one I try to make this very common
components so you are very likely to use
inside your UI designs so the first one
is a very simple button with an icon so
I already placed the icon in here you
can grab those using the iconify Plugin
or you can download them you can search
for Icon libraries inside the community
section there's a lot of ways to get
icons by the way I will be making up
useful plugins video very soon so stay
tuned for that okay so the idea is
trying to replicate the elements on top
uh try to follow along and try to do
this by yourself when we're done so let
me write a text let's make this 24
medium
set the values to be right okay once you
have the text and the icon with shift we
will select both elements then shift a
to create another layer and the first
thing you gotta set is the distance
between the elements 10 pixels so set
that let's set the alignment to Center
let's give this a fill color stroke
let's adjust the padding which is 40 on
the sides and 16 on top and bottom and
finally let's adjust the Border radius
which is 8 pixels
and there you have it okay onto the
medium difficulty let's try to replicate
this enough menu so let me grab the logo
let's grab the button we just created
okay so we're using Auto layout you have
to use logic in the situation and first
analyze what you're trying to achieve
and you also need to analyze uh how
how the elements must behave when
resizing so your designs are always
responsive to any kind of screen so if
we check this element you will see if I
grow it horizontally it makes sense for
the logo to stay on the left and then
the text links on the bottom elements
stay grouped to the right so let's try
and replicate that okay so the first
thing I'll do is creating the text link
so let's complete one and then duplicate
that so we don't have to set the
properties to all three links just to
one of them okay so let's give this
element on other layer so personally
what I try to do always when I have a
button on an app menu next to some text
links is try to emulate the padding of
the of the bottom in the text link so
the spacing between button and text
links doesn't look weird so if this one
is 40 and 16 I will try to
I will basically do the same for this if
it looks too weird just adjust it
accordingly but that's kind of a rule of
thumb for this case okay now we have our
about us text link created so I'll drag
it while holding shift and ALT and then
hit Ctrl D to duplicate it one more time
and you can see all three of them keep
the earlier properties I said okay now
to achieve the resizing properties of
the number you will have to think of
this as two separate groups the first
one being the logo in the left and the
next one being both the bottom and the
text links on the right so the next
thing I will be doing is grouping all
these elements with auto layer manually
set this to 24 right okay so now we have
our group consisting on the elements
that will be anchored to the right and
the other group which is just the logo
to the left our next step is to create
the other layout that contains both the
logo on one side and the group of button
on textlings on the other so you can now
think of this as one single element and
this is another single element so select
both of them shift a
Center align the center align this as
well this looks fine but if you try to
resize it you notice what's wrong with
it it doesn't grow accordingly so you
will need to set this to auto
and now it works perfectly and there you
have it you have an order Group which
spacing is set to Auto so the space
between the logo and this whole group
and then you have this inner group which
spacing is set manually to 24 pixels
because you don't want the gap between
these elements to grow according to the
screens because they might get to a
point where they are so separated that
they don't look like a group anymore so
you're gonna keep that Gap consistent
the one that should adapt is this one
okay let's get in some final details uh
this actually you can notice it has a
padding and hours doesn't so it's 24 on
the sides and 12 on the top give it a
wide feel and give it the drop shadow by
the way I have I had some Styles already
set up in this like the colors and the
drop shadow just to save you guys some
time okay and finally let's move to the
advanced section uh basically a card
like this one is one of the most
complicated things you can do with auto
layout but once you can do this you have
basically mastered this feature so I
really encourage you to try and build
this by yourself
so let's analyze this and when you see
me manually resizing things I'm
basically
recreating what will happen when the
screen changes size if you have for
example a grid of these cards you want
those cards filling the screen according
to the dimensions of it so in this
example these these cards should grow in
size accordingly to the screen so you
see if I make this card bigger this
favorite icon will stick to the right
side of the card and also the text will
try and fill it you see if I shrink it
the picture will shrink in size the
favorite icon will still be anchored to
the right side but it will obviously
shrink
to keep the distance from it and the
paragraph will also shrink so the text
will start going to the next line also
you will notice when I shrink it below
the size of the of the frame that
contains the chips they will wrap to the
next line
okay so let's get started I'm gonna grab
this picture I'm going to start creating
the chips so
this is a very cool little trick if you
want to copy the properties of something
you can direct select it with control
then Ctrl alt copy select the element in
which you want to paste those properties
and Ctrl alt paste and you see I get the
visual properties of that text our
layout fill color padding and Border
radius
okay I have this first one then let's
duplicate it to keep the properties and
edit
[Music]
set up download layout for these three
so as you saw in this case we need to
wrap to the next line when the space is
not enough so let's skip that you don't
see it automatically wrapped because
they fit in the space but if you shrink
it you will see it's working properly
[Music]
Ctrl alt copy Ctrl alt paste and I will
use my lorem ipsum atom just to generate
a paragraph for this you can install
that from the community it's called
Laura mipson you just have to create a
text box open the add-on Auto generate
and it will create that and finally
let's scrub the heart icon
and paste it somewhere in here
[Music]
okay next let's make the header which is
the skater's name
on our layout frame with the icon and
set the gap between to Auto so when we
resize it each of them is anchored to
one side next let's scrub the header
with the icon the year and the paragraph
term in the paragraph and create one
frame for that that 222 on the vertical
spacing and then group that with the
chips which is set to let's just make it
38 okay let's check what we have in here
so I have to make this fill container so
it grows accordingly to the whole group
also this
fuel container so when I resize the
frame we should have the correct
Behavior we have to set this to fill
container for it to work and there you
go
let's now give it correct fill 24 24 on
the padding
color and now let's make it another
layout frame with the picture let's Now
set the gap between those to zero
let's set this to
fill the container so you always have to
test your components you're building so
you have to manually resize it and check
Its Behavior if it's not working as
intended you have to go back and check
what settings you missed in this case I
missed
fuel container on this one let's add the
effect the radius
which is 12 you will notice if I type 12
in here
click enter you will still see no round
that's because I have two active clip
content so the con so the content
outside of that clipping is no longer
visible oh everything seems to be
working fine now
but you always have to remember to check
it both horizontally and vertically you
can see that vertically it doesn't work
you you see if in the in the example
when I shrink this the the picture
shrinks but the the card says the same
so I'm gonna set this to
fix height and then set this to
fill container so when I move this yeah
we get our desired Behavior if you want
to go an extra step let's set a minute
Max with for this main width of 300 oh
and actually you can see I screwed up
you see the actual content the outer
frame is actually set to fill but the
paragraph isn't so let's make it it's
also said a Max width of 500.
okay and there you have it
so that's it guys remember our layout is
a very potent feature figma has I really
encourage you to try to build some stuff
by yourself is that the only way you're
gonna completely rub your mind around it
and once you do so you're gonna see your
designing capabilities expanding so much
you're gonna be able to design faster
are you going to be able to design
everything that's on your mind and this
key to opening up the whole potential of
figma to you so go ahead and find some
cool reference and try to build them
yourself and see you on the next one
[Music]
thank you
Ver Más Videos Relacionados
[MOOC] - Apps para dispositivos móviles (ed. 2016) - iOS. Desarrollo de una App
Curso de HTML y CSS | Clase 5 — Flexbox
Curso de Android con Java: FrameLayout
modelado 3D en Solidworks ¿Cómo diseñar un pieza real desde cero? | Tutorial #1
Curso Inkscape 2022 -Operaciones con objetos
▶️ #14 QUE ES MEDIA QUERY??? 💻 Curso CSS
5.0 / 5 (0 votes)