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 change spacing with Number Variables in Figma

This lesson is exclusive to members

Course contents

Questions

4

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. In this video we're gonna use the same thing we did in the  last video when we're using modes and collections,  but we're gonna do this one for spacing, okay? What we're gonna be able to do is over here is use not only  dark mode, light mode, which is cool,  but we can go to compact versus comfortable spacing  and can you see the space between everything changes? Okay? Very similar to what we just did with colors,  but we're gonna use number variables  and change the padding around the outside, right? Let's jump in and I'll show you how to do it.

That's too tight. I know it is. Okay to get started, we need our collections. They have nothing selected. Go to local variables. Let's create a new collection.

Let's call this one spacing, okay? And let's create a variable. We're gonna use a number variable  because we are trying to control numbers, not colors. We're trying to change like the space between things. Okay? And that's done in pixels, which is done in numbers.

So my first one is going to be my medium, okay? Often with spacing, it's done in these kind  of like more T-shirt sizes. So medium, small, extra small, extra large. Okay? You should go and create them all. I'm just gonna create the one I need right now.

I'm just gonna do medium. You can write out medium. That's okay too. The value for the size is going to be 16. Okay? And I'm gonna have two modes, okay?

It could be mobile mode, okay? The different spacing between mobile versus desktop, okay? You might decide that um, it's common to say something like  the compact layout, okay? Versus comfortable. That is a common enough way of spacing. So my compact one is gonna be, let's say 16.

And when it gets comfy, it gets kind  of spread out a bit and it's a bit bigger. So let's go and apply that. So let's say that we've got this already. It's an auto layout at the moment. It's just got random sizing for around the sides. Okay?

What I'm gonna do is instead of saying  that the spacing here is, where is it? 16. You see this little option appears here. I can see you are variable. Now I'm gonna attach you to medium. That's my medium.

spac. I did the wrong spacing. It's all right. I'm gonna do this one as well. Your medium. This space between stuff is set to 10 at the moment.

Okay? I'm gonna apply a variable and weird  with this one is these ones you can click on the  little uh icon. This one here, you need drop down. I'm do it. I'm okay with that. So let's apply the medium.

So paste that out. I've got another one in there. This one here needs to be hopefully,  'cause I like using this on page one. Hopefully we'll be able to apply variables there soon. At the moment you can't. And so you are going to add variable of medium.

SO'S gonna medium spacing everywhere. Now let's go and change it. Okay? Let's change it to, you could do it to the parent frame. Let's do it to the whole phone  and say actually, well it says remember layer,  we're gonna go light mode and dark mode. But look, there's also spacing.

Dark mode. Light mode, but spacing is in there, okay? It's defaulted to whatever the  first one was, which is compact. I'm gonna default, I'm gonna change  it and go to comfortable. Ready? 24 pixels everywhere.

It's ginormous go, huh? Okay, so it just means you can  Probably go for, I'd probably go mobile desktop,  then compact and comfortable. Um, depending on, yeah, your use case. But because there's a mode, you can start to see, look,  I'm on this parent frame here. I can go comfortable. I can switch this,  but I can say actually I want a compact  and I want to be light mode, which is not working.

Why is it not working? Ah, either I did this in front of you  or off camera, but this frame here, okay,  you know I said you can do any frame. Okay, the parent frame, we can do it to this specific one. I've gone and changed this  and it's overriding what this one's trying to do. So this auto layout here is set probably to dark mode. So it doesn't matter what I do to the parent,  so I'm gonna put it to auto so that it follows the parent.

So now I should be able to go light mode, dark mode  in comfortable sizing. Oh man, it's cool. Now the next thing is, is  that let's add another one of these. 'cause like why do we have more than one? Okay. Uh, it's just gives you some units of spacing.

'cause the moment we've got just medium,  let's add another color variable, sorry, number variable. And we're gonna have that small, okay? And this one here is gonna be like eight and 16. Okay? And we can use both of these in our design. We don't have to pick one or the other.

Okay? Can change the layer order by dragging it up. Okay? I dunno why small needs to be at the top. Okay? So what I'm gonna do is you can see  that spacing in here, it's too big.

Okay? So I'm gonna select this  and say you my friend are a different variable, okay? You are the small variable, which in case of us,  'cause we're in the uh, comfy version, it's set to 16. Same for this one here. I want you set to  the small version. Okay?

So in this design, now this outside is set to medium. This inside is set to small. You might have an extra small,  you probably will have an extra small, okay? Which might be four pixels  and you can just apply it where you need it. Okay? But you've got two options  or two modes so that later on when somebody goes  and changes it, they can go comfortable to compact.

Okay? So now that goes down to eight  and that goes down to 16 more appropriate. Cool, huh? Alright, that's it. I'll see you in the next video.
  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • © Bring your Own Laptop Ltd 2025