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 create cart total using number variables in Figma

This lesson is exclusive to members

Course contents

Questions

1
2

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. Welcome to this video about variables. We are going to look at specifically a number variable. It's gonna do this. We're gonna be a bit of hit plus  and minus inside our prototype. Very cool and a nice introduction to variables for us.

Let's jump in and make it work. Alright, to get started,  I have grabbed our cart from our previous file  and just put it into a new  document just to keep things separate. This is an update video by the way. So things might look a little different. Uh, and the variables interface might change a bit. If it change significantly, I'll update the video,  but if it looks close enough, you'll get the drift.

Okay, so to get started, what I want  to do is I'm gonna grab my text tool, click once. I'm gonna type in our number, I'm gonna use zero. Okay? And I'm gonna kind of put it in the right spot. You can go over there. Okay?

So what we need to do is define our variables, okay? Our local variables, what  that means is we have nothing selected. I'm using Escape and there's this new option over here  called local variables. Let's click on those options here, okay? And we're gonna create a variable, okay? We're gonna look at the number variable in this video, okay?

And we're gonna give it a name. You can call anything you like. Okay, I'm gonna call mine total. What is the value gonna be? Let's just change it. Let's change it to five.

And that is it. Okay,  so we have defined our variable in here. Let's close this down. Now we need to assign it  or apply it to something and we're gonna apply it to this. So I'm gonna click on this text box here  and I'm gonna say you my friend over in the text panel. Okay?

There's this option, okay? That little hexagon Pentagon, I'm not sure which one it is. Shape with.in it. Okay? If you click on apply variable, we've only got one,  which makes it easy and we apply it  and watch what's gonna happen to the zero. You're looking at the zero, I'm looking at the zero  watch change to five.

Kind of exciting, not really,  but at least we know it's connected. Okay, let's have a look. Let's  open, let's have nothing selected. Click off in the background. Let's open this up  and I can say the total is zero and watch it change. Can you see it changed over there?

Okay, they are connected, which is awesome. What I would like to now is actually show you how  to break it just while we're here. So I've got the text box selected. See down the bottom here, this little pill here  that is showing me that this text object  that I've selected has this  variable assigned to it called total. I can break it by clicking this. I can also wreck it by accident by changing it.

Okay? I've worked out that if I change it to two it goes wow,  just got rid of the connection and there it's broken now. Okay, it's not gonna work, so I'm gonna undo it till it was  working and that's back there. Excellent. Okay, the next bit is making  this plus button work. Okay, so with this selected, let's switch to prototype mode.

That's the big thing that I was kind  of getting confused when I first learned this, okay, was  that uh, some of the work happens in design view, some work  for happens in prototype view. So in prototype mode, with this selected,  I'm gonna say let's add an interaction. We've done this before. Okay, on tap, okay,  or on click, doesn't matter. Okay? And I'm gonna say I'd like  to set a variable on this little uh,  thing I've got selected here.

What I want it to do is, first of all, it's gonna say, Hey,  If you wanna do this, you need  to move it to a paid account. I'm gonna do that. Okay, I'm back. So with it selected, I'm added an  interaction, hitting the plus button. I'm gonna say you want to set the variable  or variable, I want it to be the total. Okay?

What expression do I wanna write? So I wanna set total, which is this thing here. I wanna set it, what do I wanna do to it? I would like total to add one. I just typed in one. So I'm saying find the total  and then get the total and add one to it.

There you go. It said enter on the keyboard. Kinda looks weird, but there you go. Let's see if it works. So I'm gonna go to my prototype. Let's use this snazzy new one  that you haven't seen much in the course 'cause it's new.

Uh, there we go. Shift space bar and ready. Seti. Oh look at us. Goes on forever though. Okay, we don't have a minus, but there you go.

We set our first variable. High five. Not so hard. Let's make it go backwards. So let's do the same thing. I'm gonna have this selected switch to prototype mode  and an interaction.

It's gonna be an ONTAP and I'd like it to be set. The variable on this thing, what do I want to set? I want it to control the total,  which is this thing over here. My little zero. What I want it to do, once it's find it,  I want to write the expression that says total. I want it to go minus one head into, let's see if it works.

Shift space bar and let's go. Positive, negative, positive,  negative, positive, positive, positive. Negative, negative. Ne. Ah, there you go. There might be a couple of problems with yours.

You might be going like, I know there's a negative one. Am I gonna pay negative money? Are they gonna give me money? We will fix that in the next video with conditions, okay,  but for the moment it's working. A couple things I wanna show you is I find it easier  to operate on these things. See there's little diamonds that pop out once you've  assigned the variable, they're actually easier  to do it when you select them in here.

Why are they better? I don't know. This thing feels very detached over here. It's bound to look different by the time you get to it. 'cause this is brand new update for the course. Last things I wanna show you  before we go is you can remove everything, uh,  from these individually, these set variables.

Okay? We can say none and it will get rid of it. I'm gonna undo that if you want to get rid  of the local variables. So remember in design view,  nothing selected under local variables. Okay? You can go, you can right click them  and say delete variable.

And if you wanna remove it off the, uh, text here, okay? You can just delete this thing here. Okay? Say detached variable and it will break it apart. There you go. We added some variables  and it controlled something.

What's really cool about it is we know  that in the past we've probably tried to create prototypes  and just not done them okay? As efficiently because, uh, you'd end up having  to make frame after frame after frame  and kind of joining the prototypes together. So there you go. Let's go to the next video where we get rid  of this minus, okay? And they're called conditions. See you in the next video.
  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • © Bring your Own Laptop Ltd 2025