Figma tutorial: Constraints

Поділитися
Вставка
  • Опубліковано 9 лип 2024
  • Figma is free to use. Sign up here: bit.ly/34FmXQa
    Get your own copy of the design File: bit.ly/3cjudnq
    In this video, you'll get a quick overview of Figma's constraints feature and how you can use constraints to build a scalable and consistent UI.
    0:00 - What are Figma constraints
    0:15 - How to use constraints in Figma
    0:25 - Child objects and parent objects in constraints
    0:45 - How to create constraints
    1:00 - How to set horizontal and vertical constraints
    1:30 - How to set center constraints
    1:58 - How to resize the width in a constraint
    2:42 - How to use layout grid constraints
    3:25 - How to constrain objects to a frame
    4:10 - How to wrap text using constraints
    Learn more on our Help Center:
    Apply Constraints to define how layers resize: bit.ly/3a8Gc5x
    Combine Layout Grids and Constraints for flexible layouts: bit.ly/3eiuUzb
    On My Way by Ghostrifter Official
    / ghostrifter-official
    Creative Commons - Attribution-ShareAlike 3.0 Unported - CC BY-SA 3.0
    Free Download / Stream: bit.ly/on-my-way-go
    Music promoted by Audio Library • On My Way - Ghostrifte...
    #Figma #FigmaDesign #FigmaTutorial #Constraints
  • Наука та технологія

КОМЕНТАРІ • 137

  • @ed1nh0
    @ed1nh0 3 роки тому +18

    This is so powerful! I'm watching every video/tutorial available and I feel amazed by all of them!

    • @plutonium.
      @plutonium. Рік тому

      Animations With Figma ua-cam.com/video/aMFUuGZ9LEs/v-deo.html

  • @trifco-studio
    @trifco-studio 2 роки тому +1

    Very nicely visually explained "Constraints". Thank you!

  • @timsilva_
    @timsilva_ 4 роки тому +68

    Y'all have the clearest, loviest tutorials!

    • @Chadthaniel
      @Chadthaniel 4 роки тому +2

      Hey I know Tim!

    • @timsilva_
      @timsilva_ 4 роки тому

      @@Chadthaniel Small world! :P

  • @michaelhenes6410
    @michaelhenes6410 4 роки тому +5

    This video is more followable than the older constraints video for sure

  • @EPSTomcat11
    @EPSTomcat11 3 роки тому +50

    I don’t feel so bad that I am still confused about how this works... anyone know a good tutorial on constraints and auto layout in figma?

  • @AlicaKrmac
    @AlicaKrmac 3 роки тому +1

    That was brilliant, thank you!

  • @kirillvishnevsky6327
    @kirillvishnevsky6327 3 роки тому +1

    Thanks, Figma! You're great!

  • @borisnefyod4868
    @borisnefyod4868 3 роки тому +13

    Why did the top bar get "Left-to-Right" H-constraint and the bottom bar get "Scale" H-constraint? The H-constraint meaning is the same in both cases.

  • @KonkuerorPZ
    @KonkuerorPZ Рік тому

    Very informative. I am learning more about Figma as I have been a Visual UX designer for a year now

  • @mrajax_0101
    @mrajax_0101 3 роки тому +9

    i am confused in constraints & auto layout there work are same or what?

  • @Tecboy08
    @Tecboy08 2 роки тому +9

    By far 1 of the best tools I've worked with in a long time! Tutorials are very clear & informative. Thanks Figma & team!!

  • @lofi_Insomnia_
    @lofi_Insomnia_ 4 роки тому +20

    Would love to see a more web-based tutorial on this.

  • @Silfiderium
    @Silfiderium 4 роки тому +11

    I'm still learning to use Figma, but I found this tool very useful!

    • @Figma
      @Figma  4 роки тому +5

      Glad it was helpful!

  • @marwan.ux1
    @marwan.ux1 Рік тому

    So cool! Thank you!

  • @KaytoStormBrazil
    @KaytoStormBrazil Рік тому

    thanks a lot!!! so nice reverb

  • @XandWacky
    @XandWacky 3 роки тому +9

    Constraints don't show up as an option for me. I followed this tutorial a few times and I never got the option to constrain things. It simply never appeared.

  • @noahpaye6863
    @noahpaye6863 3 роки тому

    This is so amazing

  • @abdulbasitsadiq3413
    @abdulbasitsadiq3413 3 роки тому +1

    This is superb.

  • @muhammadisrarulhaq9052
    @muhammadisrarulhaq9052 2 роки тому

    Amazing Amazing! Thanks a ton man

  • @seand6906
    @seand6906 3 місяці тому

    Excellent Explanation

  • @eduardofleck2743
    @eduardofleck2743 3 роки тому

    Thanks, it helped me

  • @madhwapreraka6874
    @madhwapreraka6874 Рік тому +1

    Perfect one

  • @newtonoluoch8103
    @newtonoluoch8103 2 роки тому +3

    it took me 2 hours struggling on my own before I swallowed my pride just to come get this perfect 4 minutes video. Thanks for this

  • @marwinthedja5450
    @marwinthedja5450 2 роки тому +14

    Um, how do I put it... but how many different microphones did you guys actually use to record this ?

    • @hikarujamiemasamiya
      @hikarujamiemasamiya 2 роки тому

      I feel totally same lmao
      Great contents with very unstable audio is super unique (I'm trying to stay positive haha

    • @hikarujamiemasamiya
      @hikarujamiemasamiya 2 роки тому

      Well we can't be professional on everything I guess......

  • @user-bb6uv4kk9n
    @user-bb6uv4kk9n 5 місяців тому

    Thank You !

  • @mouadjaafari8509
    @mouadjaafari8509 Рік тому

    Thank you figma.

  • @ashleymanrique9405
    @ashleymanrique9405 Рік тому

    thank you bro thank you

  • @aizhanzakai6887
    @aizhanzakai6887 3 роки тому +1

    I am a bit confused with how text constraints work. Let's say I have a text button component, should I apply constraints to the text? So that it responds to any changes in the button size?
    Isn't there some other function that allows the textbox to adjust according to the size of its parent element?

  • @sampath2549
    @sampath2549 Рік тому

    thankyou so much

  • @namicarrot198
    @namicarrot198 3 роки тому

    many steps to remember :O

  • @albapanyella7955
    @albapanyella7955 Рік тому +2

    what if you want to set a constraint to an element with auto layout?

  • @mattjafari
    @mattjafari 2 роки тому

    Fantastic

  • @mhardee
    @mhardee Місяць тому

    This should probably add a note about when to use auto layout vs (or with) constraints. I think the video was created before auto layout was released.

  • @jensonbbenson
    @jensonbbenson 2 роки тому

    Can one use auto layout and constraints at the same time, or does one replace the other?

  • @elleaesthetics1589
    @elleaesthetics1589 2 роки тому +2

    Great video! Why margin 16 and Gutter 32? For some reason, I don't have layout grid in my educational account

  • @sj6257
    @sj6257 4 роки тому +24

    I liked the video. Super useful. I have question, why did choose horizontal constraint for tab bar to "Scale" while status bar to "Left and right" ?

    • @vytran8D
      @vytran8D 4 роки тому +1

      I have the same question! I played around with switching the Tab Bar constraint back and forth from "Scale" to "Left & Right" and they both looked the same as far as I could tell.

    • @tinawang8068
      @tinawang8068 3 роки тому +4

      Depending on whether you want to keep a fixed padding for the icons with left and right edges.

  • @abdou023
    @abdou023 3 роки тому +2

    Why set the horizontal component for the Tab Bar to "Scale" and not "Left&Right" like the Status bar?
    You should've every option while doing it.

  • @elainewang3605
    @elainewang3605 Рік тому +1

    Why set the system bar component horizontal "left and right" and the bottom nav bar horizontal "scale"? Why are they set differently?

  • @kola420
    @kola420 3 роки тому +1

    WHY DID I NOT LOOK THIS UP EARLIER?!

  • @WaltonV
    @WaltonV 2 роки тому +2

    Also don't forget to set Text Alignment to the desirable direction (Ctrl + Alt + T, L or R)

  • @matheusvalezin7539
    @matheusvalezin7539 Рік тому

    Does constrains is suposed to work in prototype? I'm having problems with the layers overlaping each other while using auto layout.

  • @antonbeer3213
    @antonbeer3213 Рік тому

    That lil gap left at the end tho 🫨

  • @alircxa
    @alircxa 2 роки тому

    JUST WOW.

  • @Rajesh4585
    @Rajesh4585 3 роки тому

    can anyone have idea that constrains only work when parent have frame ? or it can work on layer, group folder ?

  • @loveleenjoshi9511
    @loveleenjoshi9511 Рік тому

    is there more videos on constraints provided by figma?

  • @brunodiano1772
    @brunodiano1772 2 роки тому +1

    I cannot move the bars, it apears with a red border and I cannot drag in to the workspace

  • @vedanshchn
    @vedanshchn 3 роки тому

    Is layout grid really necessary? 3:16 I could do it with just the centered constraints

  • @mussingermockups6930
    @mussingermockups6930 4 роки тому +2

    Hi, for some reason the files for the tutorial are "view only" on my desktop - can you help me what might be the issue? Would greatly appreciate it as I would dig deep into figma thanks to your awesome videos :)

    • @vanessab9584
      @vanessab9584 3 роки тому +4

      Click on the mame of the file "Constraints Tutorial File" just above the workspace (below the tabs, if you're using the app). It has a chevron next to it. If you click "Duplicate" it'll let you make a copy you can edit :)

  • @atomusking
    @atomusking 9 місяців тому

    ㅎㅎ감사합니다

  • @Jishnucreations2021
    @Jishnucreations2021 3 роки тому

    Please create a video for Double stroke?

  • @10thGaming
    @10thGaming 3 роки тому +2

    I was struggling for ages till I watched this video and realised that constraints only apply to parent frames, not groups.

  • @excmax
    @excmax 4 роки тому +7

    Well, well. Constraints are good, but what about autolayouts? They don't work like that! Still. When you will upgrade it?

    • @Favoxhille
      @Favoxhille 4 роки тому

      they work fine in my figma

  • @jayantthakur1860
    @jayantthakur1860 Рік тому

    I get migraine listening to these tutorials.

  • @chrisohh5612
    @chrisohh5612 2 роки тому

    I love figma...

  • @vanessab9584
    @vanessab9584 3 роки тому +2

    Is there an easy way to make sure components are "16 pixels above the tab bar"?

    • @Jerminator1984
      @Jerminator1984 3 роки тому +1

      Select the item to measure and hold option or alt to see it's distances to other items.

  • @veronicacarneiro277
    @veronicacarneiro277 3 роки тому

    We have to think the X y axis?

  • @anantsharma5330
    @anantsharma5330 4 роки тому +2

    Hey Figma ! Sorry to say, I love Adobe's one minute tutorial. Billions are coming from that way.
    Thanks for listening !

    • @anantsharma5330
      @anantsharma5330 3 роки тому

      Now, After listening to you peacefully, you've explained or connected me pretty well.
      Thank you.

  • @jasondoyley9033
    @jasondoyley9033 3 роки тому

    In regards to Constraints, specifically:
    Constraints -> Vertical: Left & Right
    Constraints -> Vertical: Scale
    I seem to get the same results. Is there a difference in this case, I can't seem to spot one?

    • @albertoromeo8522
      @albertoromeo8522 Рік тому

      i think in this case not since both left and right are 0 px from the borders, so it gives the same result as scale

  • @KH-hy1eo
    @KH-hy1eo 3 роки тому

    Is it possible to mass release constraints? Like a "release all constraints in frame" function?

    • @grinkevych
      @grinkevych Рік тому

      I think there would be 2 solutions:
      1. Selecting a frame inside which all the interesting you nested constrained objects are. Then press enter (this will make you select inner objects inside selected frame) and change constraints. Then press enter again and release again, etc.
      2. There actually may be a plugin for that if you google well, since most of what I tried to find was solved using plugins already.

  • @stamatiostentsos4957
    @stamatiostentsos4957 10 місяців тому

    I have my constraints set to left-center and the element still scales down when I scale the parent component. What is going on?

  • @kirbywilliams8403
    @kirbywilliams8403 Рік тому

    The link to the design files sends you to a View Only file. Is there an editable file that we can follow along with?

    • @Figma
      @Figma  Рік тому +2

      Hi Kirby, you can duplicate the file to your draft and follow along.

  • @sircasino614
    @sircasino614 5 місяців тому

    Cool.... not really explaining WHY on the scale constraint, but I guess I'll figure it out.

  • @vedanshchn
    @vedanshchn 3 роки тому +3

    How did yo decide the margin and gutter values?

  • @elvniv
    @elvniv 3 роки тому

    how do I make text resize for when the screen gets smaller

    • @grinkevych
      @grinkevych Рік тому

      You need to select the text inside the auto-layout frame and set it width to Fill in top right bar.

  • @mraddy4887
    @mraddy4887 6 місяців тому

    What is the button to undo the frame it's isn't working cmd +z

  • @radulica
    @radulica 3 роки тому

    This doesn't work for me. Every time I frame the selection, the prototype view gets shifted and content appears misaligned.

  • @kanikaj8
    @kanikaj8 Рік тому

    Hello! i am seeing purple boxes around the icons and therefore not able to edit them to practice- could anyone help? what does this mean?

    • @Figma
      @Figma  Рік тому

      Hello, I believe you want to edit an instance, which is a copy of a component. Check out our video tutorial on component: ua-cam.com/video/EoJolbaEQi8/v-deo.html
      You can override an instance text, fill, stroke, and effect properties (Learn more here: help.figma.com/hc/en-us/articles/360039150733-Apply-overrides-to-instances). If you would like to make changes to the properties that aren't supported by overrides, you can detach the instance from the component (Learn more here: help.figma.com/hc/en-us/articles/360038665754-Detach-an-instance-from-the-component). Hope this is helpful!

  • @harusth782
    @harusth782 10 місяців тому

    I cant find contraint bar

  • @britshen7392
    @britshen7392 3 роки тому

    i dont understand why you changed the column margin and gutter to those respective numbers at 3:00 part of the video???

  • @lauratrimmell1775
    @lauratrimmell1775 3 роки тому

    The linked design file is in view only mode so i can't really use it.

    • @faitholusola8817
      @faitholusola8817 3 роки тому

      Hello Laura, that's by design (the view only mode). It's technically a master copy, so what you need to do is copy it, and paste it over to your own blank document, then you're good to go.
      select all (ctrl +a), copy. Then create a new blank file, then paste.

  • @yinnetteolivo
    @yinnetteolivo Рік тому

    i hope Adobe fixes auto row layouts, so that we can specify min and max width and the cards can automatically bump down to new row.

  • @goolug
    @goolug 4 роки тому +9

    I love this tutorial from the content perspective, but the fact that it's not a real in-app footage is a little sad-I miss seeing how things snap to other things like in your previous tutorials. Feels less human this way.

    • @Figma
      @Figma  4 роки тому +3

      Keen eye! We were testing a couple of different production workflows to make the videos easier to update, so this one was animated by hand. We did use real in-app footage for this video: bit.ly/2YoncxN and will be using that method for some future videos, so be sure to subscribe to keep up to date!

    • @a0um
      @a0um 3 роки тому

      Figma , I’m using the UA-cam app on mobile and the bit.ly URL opens in my browser instead of the app itself despite being another UA-cam video, which is a bit inconvenient.

  • @tyed94
    @tyed94 Рік тому

    constraints don't show up on some of my frames

  • @tamaram461
    @tamaram461 Рік тому

    How to group all the elements properly so that they don't stretch?
    Please explain the stretch constraint a bit more, I didn't quite understand what it means...

    • @grinkevych
      @grinkevych Рік тому

      You need to select inner objects inside the auto-layout and set their resizing rules in the top of right bar (near sizes, angle and rounding)

    • @tamaram461
      @tamaram461 Рік тому

      @@grinkevych Superb, thank you :)

  • @tinhtinhchannel9823
    @tinhtinhchannel9823 3 роки тому +1

    I dont understand" how to use layout grid constrains" .

  • @martinmickels1478
    @martinmickels1478 2 роки тому

    3:23 how do you know that is 16 pixels?

    • @grinkevych
      @grinkevych Рік тому

      I think it was hidden by recording app, but you can select an object and then press Option to view distances to nearby objects.

  • @goolug
    @goolug 4 роки тому +7

    Who is this guy at 1:41?

    • @SongAmi
      @SongAmi 4 роки тому +1

      goolug lol

    • @Figma
      @Figma  4 роки тому +18

      It's all the same person! Because we went into lockdown from the state government while in mid-production, I lost access to our recording space and equipment and had to record in a bedroom with a blanket over my head

    • @goolug
      @goolug 4 роки тому +1

      @@Figma It sounded great, thank you guys so much!

  • @geoffreyschuchardt5350
    @geoffreyschuchardt5350 3 роки тому +3

    I've watched so many tutorials and I'm finding figma incredibly frustrating to learn. I just need a simple design system. I dont understand why the top down shit cant be explained. I get the tools are helpful bunt I dont understand where people are learning how to align text to a box. how does this text stay centered. It feels like there are fifty different ways to center text. Both with the text align tools, the top align features. I dont understand how large the text barriers should be. Should it hug the text? should it not? Do I need to select the outer box with the inner text in order for these top contraints to work? what happens when I resize the text. why cant i just easily create a color style without having to try to color a shape. Why isnt there a simple add main color style and just choose your style. but instead you need to enter a menu and decide on the fly what color style you want and then once you have sort of decided that, easily finding these styles in one of four different locations and knowing which place you need to go to edit it seems frustratingly difficult just to figure out. Im sure the designers at figma watch begginers learn this products with no explanation or help given, but omfg I just need to easily learn the basics and get a project done. it feels like this product wants more noteriety for being a solid solution than actually stepping to the side and let the software be self explanatory and just do what it needs to. are colors at the bottom of the right hand bar and layers are above that. Dont people often choose to modifiy colors as one of the most frequently used things. I feel like auto layout is just right where I'd like colors to be and god knows what layout grid is doing rightttt in the middle of the most useful location. and fill isnt clear in terms of how it is different than selections colors. at this point im just ranting, but i keep trying to learn this thing and i keep getting frustrated and then never want to look at this software again. how long does it take for it to become instinctual just to align text inside a freaking box in this thing. Im going to take a break and come back but hopefully not another 2 week break. good god.

    • @GuitarreroDaniel
      @GuitarreroDaniel 3 роки тому +1

      Lol, Figma is the current market leader because is the easiest tool for designers. If you can't take the time to learn it, then it's time to switch careers.

    • @xajimx
      @xajimx 2 роки тому

      I would like to pat you on the back, bro. You'll get there. Im having hiccups here and there too but experience will be your best teacher. Make mistakes and you'll find the best solution when in dire times

  • @westernpigeon
    @westernpigeon 2 роки тому

    HOW CAN I FIND THE PADDING OF AN ELEMENT>!?!??????????????

  • @creativemindset2570
    @creativemindset2570 3 роки тому +3

    It's unclear and doesn't work.
    This tutorial is very confusing because it doesn't explain how the objects are grouped together.I followed it step by step and my components stretch and deform if I click and pull the rectangle.
    How do you even click and simply select individual shapes inside a component?
    Is there a key you are holding?
    Are the components made in a different way than the classic method?
    The left panel needs to be in the picture.

  • @aravindhsridharan1117
    @aravindhsridharan1117 4 роки тому

    Can you tell how you made this video? What softwares you used?

    • @grinkevych
      @grinkevych Рік тому

      I think it's a screen recorded with something like Cleanshot, then you put it in After Effects and add animated custom mouse + all other motion elements.

  • @leachannel9916
    @leachannel9916 2 роки тому

    i don't see layout grid ...

  • @sathompson6197
    @sathompson6197 2 роки тому

    Why should the gutter be 32?

  • @joancairney6021
    @joancairney6021 2 роки тому

    I can only access the "view only" mode to try to follow only with this tutorial .....

  • @tinhtinhchannel9823
    @tinhtinhchannel9823 3 роки тому

    I dont understand 3:02 , why 16 and 32 ???

    • @artinaminute
      @artinaminute 3 роки тому +1

      16 px/pt seems to be a standard / minimum choice for margin distance (i.e. padding). The gutter has to be bigger than the size of the margin because a gutter distance of 16px/pt will make the icons closer to each other when you resize the width of the bar to a shorter distance. It's just about the spacing between the objects, and I guess they chose 32 to make icons more evenly spaced from each other. It also just makes more sense mathematically because it's 16 | object | 16 + 16 | object | 16 + 16 | object | 16

  • @AWilhelmScream8
    @AWilhelmScream8 4 роки тому +11

    I love Figma, but your tutorials could really use a little something - maybe get some inspiration from the guys over at Webflow, they're killing it

    • @Figma
      @Figma  4 роки тому +7

      They do make some fantastic work and set the bar really high! We're currently testing a bunch of different production methods, so hopefully one of them gets close to what they're doing.

  • @user-vn6mx8cw5r
    @user-vn6mx8cw5r 4 роки тому

    cmd + z on ios, how it will be on windows?

  • @Lichkuroro
    @Lichkuroro 3 роки тому

    Oof, Top Quality....

  • @Favoxhille
    @Favoxhille 4 роки тому

    Figma is amazing, it works just as good on pc as it does on mac.
    Finally i can ditch that shitty macbook and keep all my work in Windows.

  • @st_luka
    @st_luka 4 роки тому

    а раньше ни кто этим не пользовался?

    • @goolug
      @goolug 4 роки тому

      ни кто

  • @alexdesigns6132
    @alexdesigns6132 3 роки тому +1

    What's up with the team tagging voice overs?

    • @DavidShantzwildoutwest
      @DavidShantzwildoutwest 3 роки тому +1

      Someone doing the videos does not understand how to set the mic levels and audio standards up professionally

  • @EricShelton-ss6kw
    @EricShelton-ss6kw 4 місяці тому

    audio production :(

  • @fran1720
    @fran1720 Рік тому

    Mlk, se pá que o canal foi hackeado

  • @myfrogmom
    @myfrogmom Рік тому

    File is VIEW ONLY

    • @Figma
      @Figma  Рік тому

      Hi Lisa, you can click on the chevron next to the file name and select "Duplicate" from the dropdown menu to make a new copy in your Figma account. Hope that helps!

  • @gothicwave7761
    @gothicwave7761 2 роки тому +1

    Was the voiceover recorded by 10 different guys wtf ahahahaha

  • @AlexMercadoGo
    @AlexMercadoGo 4 роки тому +4

    Maybe partner with some talented UA-camrs to make more engaging tutorials?

    • @Figma
      @Figma  4 роки тому

      Great idea! Got any one in mind?

    • @AlexMercadoGo
      @AlexMercadoGo 4 роки тому +1

      Figma The first that come to mind are AJ&Smart and Flux. Thomas Frank sounds like he may have some interested connections (albeit not through his main channel). TheFutur (Chris Do) or one of their associates would also be a good fit as long as their not already aligned with a competitor.

  • @effieli7230
    @effieli7230 2 роки тому

    Well, that's really confusing

  • @stefank.1638
    @stefank.1638 2 роки тому

    too complicated. I never manage to achive what i want.

  • @jeffchow6722
    @jeffchow6722 3 роки тому

    this is not a great video tutorial for beginners sorry