Note: If you have a different UI than in the course, you can change it back by clicking the '?' in the bottom right corner of Figma and select 'Go back to previous UI'. Happy Figma'ing!

How to resize a box automatically in a Auto Layout to match text in Figma

This lesson is exclusive to members

Course contents

Questions

1

Course info

177 lessons / 16 hours 46 quiz questions 21 projects Certificate of achievement

Overview

Hi there, aspiring Figma enthusiasts! Are you ready to embark on an exhilarating journey with me, Dan Scott, as we unlock the full potential of our Figma skills in the dazzling realm of UX/UI Design using Figma Advanced?

Try Figma for free by clicking here.

This course is tailor-made for those who have already mastered the fundamental principles of UI/UX Design using Figma. If you've triumphed over my Figma Essentials course or have a sneaking suspicion that there's a treasure trove of unexplored tools, tips, workflows, and updates awaiting your discovery, then look no further! This course is your golden ticket to taking your UI/UX prowess to the next level.

Together, we'll start by delving into the depths of multilevel nested autolayouts, and unravel the secrets used by UX professionals by learning:
- Workflow techniques, managing design assets, styles, components, grid and column layouts like true virtuosos.
- Learn how to use Variables and put them to work creating even more complete prototypes.
- Use variables to make Light & Dark Modes + Compact & Comfortable spacing versions of your components. 
- You’ll then take your new knowledge of variables to understand and create your own Design Tokens. 
  • - Unleashing the magic of advanced animation techniques, captivating users with animated background gradients and Houdini Text.
  • - Harness the power of Lottie animation files, breathing life into your designs.
  • - Crafting responsive elements that effortlessly adapt to any device, proving your design prowess knows no bounds.
  • - Unleashing the full potential of powerful images & video masking techniques, amplifying the visual impact of your creations.
  • - Mastering advanced typography features, transforming words into captivating works of art.
  • - Embracing the realm of AI, infusing your process with its genius to elevate your skills as a UX designer.
  • - Elevate your prototyping game, conducting user tests with finesse using advanced techniques.
  • - Unveiling sticky scroll buttons that stack, animated anchor points and booleans, and a host of other captivating effects.
  • - Creating enchanting dropdown menus, hover grow effects for images, and expanding search bars.
  • - Discovering the right accessibility tools & techniques, ensuring inclusivity and usability for all users.
  • - Becoming a variant boss, expertly taming unwieldy variants to just 1 or 2.
  • - Unveiling the secrets of seamless collaboration with designers, developers, and stakeholders.
  • - Mastering the art of exporting production-ready assets, bringing your designs to life beyond the realm of Figma.
  • - Unearthing professional workflow tricks & shortcuts, saving you precious time and skyrocketing your efficiency.
  • - Plus much more exciting advanced Figma goodness along the way!

As you journey through this course, you'll acquire the skills wielded by UX professionals, gaining a profound understanding of the UX Design industry. From concept to a highly polished finish, you'll confidently manage your own UX projects ideal for your portfolio.

Throughout the course, I'll assign assignments and projects that nurture your skills and empower you to create your very own unique UX design masterpiece for your portfolio. Don’t worry if this all seems overwhelmingly advanced right now, because the BYOL crew stands ready to support and guide you, ensuring your questions get answered.

It's time to embrace the call to upgrade yourself and transcend from being a good UX Designer to a bona fide Figma UX Superhero! Unlock your potential, save the day, and let your design prowess soar!

Requirements:

- A copy of Figma (a free plan is available on the Figma website).
  • - Basic knowledge of Figma is required. I recommend watching my Figma Essentials course prior to embarking on this epic adventure.

Who this course is for:

  • - UX/UI adventurers who already have a basic understanding of Figma.
  • - Self-taught Figma enthusiasts yearning for structured guidance.
  • - Graduates of my Figma Essentials Course, hungry for more knowledge and skills.
  • - Visionaries who have developed their own unique Figma approach but crave exploration of the vast universe of tools, updates, and time-saving techniques.

What you'll learn:

  • - Diving deep into multi level nested autolayouts. 
  • - Robust components that are easy to update and hard to break. 
  • - Component properties. 
- Variables
- Design Tokens
- Advanced Prototyping using Variables
  • - Learn Workflow tips and tricks for managing your design assets, styles, components, grid and column layouts.
  • - Advanced animation techniques
  • - Animated Background gradients. 
  • - Houdini Text
  • - Animate along a path in Figma
  • - How to add Lottie animation files in Figma
  • - Build responsive elements ready for any device size.
  • - The best shortcuts & plugins to make you a more efficient UX designer.
  • - Absolute Positioning of Autolayouts. 
  • - Powerful images & video masking techniques. 
  • - Advanced typography features. 
  • - Learn to use AI in your process to make you a better UX designer. 
  • - Advanced prototyping techniques to level up your user tests. 
  • - Make prototypes better and faster using tricks & shortcuts. 
  • - Sticky scroll buttons that stack. 
  • - Video playback controls. 
  • - Animated anchor points and booleans.
  • - Create a Dropdown menu
  • - Create a hover grow effect for images.
  • - Create and expanding Search Bar 
  • - Learn the right accessibility tools & techniques  
  • - Become a variant boss. Cutting down those 100 variants to just 1 or 2. 
  • - Learn the best ways to work with other designers, developers and stakeholders. 
  • - Build a UX project from beginning to end ready for your portfolio.
  • - Export production ready assets.
  • - Learn professional workflow tricks & shortcuts.
  • - Forum support from me and the rest of the BYOL crew.
  • - All the techniques used by UX professionals
  • - 160 videos of detailed Figma Advanced Content.
Daniel Scott

Daniel Scott

Founder of Bring Your Own Laptop & Chief Instructor

instructor

I discovered the world of design as an art student when I stumbled upon a lab full of green & blue iMac G3’s. My initial curiosity around using the computer to create ‘art’ developed into a full-blown passion, eventually leading me to become a digital designer and founder of Bring Your Own Laptop.

Sharing and teaching are a huge part of who I am. As a certified Adobe instructor, I've had the honor of winning multiple Adobe teaching awards at their annual MAX conference. I see Bring Your Own Laptop as the supportive community I wished for when I was first starting out and intimidated by design. Through teaching, I hope to bring others along for the ride and empower my students to bring their stories, labors of love, and art into the world.
True to my Kiwi roots, I've lived in many places, and currently, I reside in Ireland with my wife and kids.

Certificates

We’re awarding certificates for this course!

Check out the How to earn your certificate video for instructions on how to earn yours and click the available certificate levels below for more information.

Downloads & Exercise files

Transcript

Hi everyone, see this little comment box on the side here... I'm sure it has a name, I don't know what it is... but when we delete text or add text... can you see, it expands, responsive... it's a nice mixture of auto layout, absolute positioning, and constraints... all right, let's jump in and make it.

To get started with, I'm going to hide some stuff... because throwing everything at this tutorial... and ending up with a bit of a mess... so I selected my avatar, 'Command Shift H' to hide it... 'Ctrl Shift H' on PC, I'm going do the same with this... and let's do the little text expanding thing.

So first of all I need a frame... I'm going to drag it out a size, I can adjust this in a sec... I'm going to use a color, '500', I'll use my red-ey color, let's give it a name... "Poorly named, Dan," I know, there's a technical word for this thing... I can't think of it, and if I'm honest I doubt I even knew the word... there is a word for it...

so like before I'm going to kind of get at the right size first... remember, dragging it in, holding space bar, kind of get it lined up... I guess, pretty good, actually nailed it... so resize it here, get it how you want, and then... drag it into your Auto layout, so off, into Auto layout... same as before, we're going to set the absolute positioning to about here...

and what we want to do is get it to stretch. So I'm going to get it to snap to the edge there... yes, it's too close to the text, we'll fix that in a bit... but what I want to do is, I want to say, 'Constraints', to the 'Left', sure... but I want the 'Top' and the 'Bottom'... and what that means is, it's going to look at the overall size and adjust...

so if we adjust the overall size by changing this text box... which is set to Hug Contents... or at least the equivalent for a text box, which is Auto Height... can you see, it changes, cool, huh... one line, lots of lines. I'm going to go back to what I had.

Now the only problem with this is that it's not particularly robust... in terms of responsibility... not responsibility, responsiveness... stretchy text things has no responsibility in the world... what we want to do is, to make it a little bit more robust... actually, it's going to do two things, actually, this next bit...

so I'm going to undo till we go back... there's two things that I want to do, I need to push this over... and I can't go to the text box and say, you go this way... because it is all left aligned inside of this Auto layout... so I can go 'Shift Enter' to select the parent... and I can say, to the 'Right'...

and it's kind of working, but it's moving everything else over... it's not really what I want... so I'm going to 'undo' it that way... and what we're going to do is a bit of inception for Auto layouts... so I've got Auto layout parent, this text box though... we know that if I add an Auto layout to it...

'Shift A', it gets padding around the outside... and what I'll do is I'll set that to 0, tab across to 0... and show them all, just say, on the left let's have a bit, it'll do... so I've got some padding, so that's pretty cool. The other thing is that, that's still a problem, it's stretching... because what it's doing is it's just a bit of a trick...

we're saying, stay this far from the top and this far from the bottom... and when the text box expands, so does this... but there's no like direct connection between the two... this text box makes the overall parent bigger, so this gets bigger... and it kind of works until you do this... what we can do though is we can say, you, we can put you inside of this...

so let's go, you... put you inside of that Auto layout... because it's already an absolute position. I'm inside this frame, let's give it a better name, calling it "Text Box"... inside of it is my text box plus my stretchy thing... and because it's absolutely positioned I can kind of drag it out...

don't want it too far out... we don't want to drag it out, out... so remember, hold 'space bar', let's get it back in there... hold 'space bar' while you're dragging it, and now it's--  I'll use my arrow key... it is still inside my text box, which is an Auto layout... let's click on this guy, he's still set to top and bottom...

but he's referencing this box now... so when I make this bigger can you see, it doesn't wreck it... but it still has that nice functionality that it gets bigger and smaller. That is how to make a stretchy-- give me the name if you do know it... if you're a Typographer, and you're like... "Ah, that's called a-- something," something or the other...

something to do with a pull quote, indent or something like that... you know the name for it, let me know in the comments... but for now I think that's it for absolute positioning... we did a few different versions of it because it is quite powerful... and super useful for supercharging your Auto layout amazingness... there we go, all the adjectives.

Oh, last thing before we go, a shortcut test, it's a Pop quiz... I resized this, so it's now a fixed width... what's the shortcut to get it to jump out and fill the container, do you remember? it's you do both of them, double click it, realize it's not the one you want... and then you go 'Option' on a Mac, 'Alt' on a PC, and double click it... and it fills the container, there we go, pop quiz over...

and that my friends is the end of the video.... I'll see you in the next one.
  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • © Bring your Own Laptop Ltd 2025