Тёмный

Using Figma Variables to Swap Variants Between Modes 

UI Collective
Подписаться 9 тыс.
Просмотров 21 тыс.
50% 1

Learn how to swap variants between modes using Figma variables
Apply to join our Slack design community: www.uicollective.co
Download the free version of our design system:
resources.uicollective.co/che...
Pre-register for the UIC Design System Linter plugin: www.uicollective.co/design-sy...
Email me video suggestions: hello@uicollective.co

Опубликовано:

 

5 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 58   
@whennn
@whennn 9 месяцев назад
What i wish to see is, how do u make it that if u resize the main frame to a mobile size, then the component will change its variable to mobile , like when smaller than 376 then change to mobile varialbe and if bigger than change to PC size and such.
@captivatingcurios
@captivatingcurios 10 месяцев назад
I'm working with a changing button, so this is perfect. Thanks!!
@UICollectiveDesign
@UICollectiveDesign 10 месяцев назад
Glad it helped!
@SH-ny8by
@SH-ny8by 10 месяцев назад
Why can’t we apply it to the main component? Only an instance of the component?
@stamatiostentsos4957
@stamatiostentsos4957 3 месяца назад
Yeah, that makes no sense
@user-em6or1ol7h
@user-em6or1ol7h 8 месяцев назад
Mate, this video is gold! Thanks a lot 🤟
@UICollectiveDesign
@UICollectiveDesign 8 месяцев назад
Glad you liked it!
@stamatiostentsos4957
@stamatiostentsos4957 3 месяца назад
So you can't apply the variable to the main component. You have to apply it to the instance. That took me a solid couple of hours to figure out...
@stamatiostentsos4957
@stamatiostentsos4957 3 месяца назад
Do I have to reapply it every time I place an instance of the same main component to a frame?
@UICollectiveDesign
@UICollectiveDesign 3 месяца назад
Yup unless you are copying from an instance that already has a variable applied@@stamatiostentsos4957
@nb7437
@nb7437 28 дней назад
Thanks for this. You just saved me a solid couple of hours.
@UICollectiveDesign
@UICollectiveDesign 28 дней назад
@@nb7437 Glad it helped!!! Please share and subscribe :)
@erikfadiman
@erikfadiman Месяц назад
This is so helpful, Thank you so much!
@UICollectiveDesign
@UICollectiveDesign Месяц назад
You're welcomee!!
@tanoyist
@tanoyist 9 месяцев назад
This is so helpful. thanks for sharing
@UICollectiveDesign
@UICollectiveDesign 9 месяцев назад
Glad you liked it!
@ramazanguler5399
@ramazanguler5399 9 месяцев назад
best lesson about figma variable modes
@UICollectiveDesign
@UICollectiveDesign 9 месяцев назад
Glad it helped!
@maninoroozi3456
@maninoroozi3456 3 месяца назад
If for example you want to resize a button component between desktop and mobile the variable for some reason resets the button attributes to default.
@UICollectiveDesign
@UICollectiveDesign 3 месяца назад
A lot of bugs still with Figma variables unfortunately
@iamavro
@iamavro 10 месяцев назад
I have been enjoying your videos recently and the process you follow to create components. Thank you! Request: Can you please deep dive into input fields? Everyone has this one liner input fields. They don't cover where the field can have multiple lines, or just the text box will stop expanding after 3 lines. It's such a complex component to make and I'm struggling.
@UICollectiveDesign
@UICollectiveDesign 10 месяцев назад
These are available on our website as part of our all-access pass :)
@iamavro
@iamavro 10 месяцев назад
@@UICollectiveDesign Thanks. Will check.
@naz95naz
@naz95naz 9 месяцев назад
Is it possible to implement switching from a light theme to a dark theme and vice versa through the variable mode using a component variant? Let me write an example. There is a toggle on the frame that switches the frame mode from light to dark, but it changes the mode of the current frame, not the transition to another frame. Is this possible?
@UICollectiveDesign
@UICollectiveDesign 9 месяцев назад
Nope - You could have both prototypes in light and dark mode, but just have the switch as the gateway between the two
@UICollectiveDesign
@UICollectiveDesign 9 месяцев назад
As it would be in a legacy prototype
@offshare2033
@offshare2033 6 месяцев назад
Thanks.
@UICollectiveDesign
@UICollectiveDesign 6 месяцев назад
You're welcome!
@ytrpaz
@ytrpaz 3 месяца назад
Can you make avideo that applies changing the state of a button to selected state when clicking?
@UICollectiveDesign
@UICollectiveDesign 2 месяца назад
This can be done just within your variants :)
@LudvigAristarhovi4
@LudvigAristarhovi4 5 месяцев назад
It is very usefull, thank you
@UICollectiveDesign
@UICollectiveDesign 5 месяцев назад
Happy to help :) Please subscribe and share our channel :)
@LudvigAristarhovi4
@LudvigAristarhovi4 5 месяцев назад
​@@UICollectiveDesign Sure!
@user-sz9xm2lu4e
@user-sz9xm2lu4e 3 месяца назад
How do you add a mode to a frame ? the option doesn't seem to appear on my side, on the frame, there is no ''variable'' button next to the layer section
@UICollectiveDesign
@UICollectiveDesign 3 месяца назад
Is something added to the frame that has a variable applied?
@arturpavlenko
@arturpavlenko 5 дней назад
Cool! But I've faced one issue - I cannot apply this to nested components. Is there any solution?
@UICollectiveDesign
@UICollectiveDesign 5 дней назад
Nope! Unfortunately Figma has not evolved to this level yet
@arturpavlenko
@arturpavlenko 5 дней назад
@@UICollectiveDesign thanks
@UICollectiveDesign
@UICollectiveDesign 5 дней назад
@@arturpavlenko Happy to help :) Please subscribe and share our channel where you can :)
@norbertimar
@norbertimar 5 месяцев назад
It seems you can't apply the string directly into the component's property, linking every future instance to the modes. Your method only affects the instances you create and individually link to the string, is this correct?
@UICollectiveDesign
@UICollectiveDesign 5 месяцев назад
Yes, unfortunately, this is the case.
@genatroce
@genatroce 8 месяцев назад
I wanted to replicate this for myself, and unfortunately I noticed a small problem (on the Firgma side) - I can't create a string variable in the component library and then use it that way in other files. It only works on local components and variables.
@UICollectiveDesign
@UICollectiveDesign 8 месяцев назад
You have to detach components. See our most recent video for an example
@rb8365
@rb8365 8 месяцев назад
Great video, but downvote for unskippable long ads
@UICollectiveDesign
@UICollectiveDesign 8 месяцев назад
Only was able to monetize recently. Let me fix this now, still have no idea what I do / do not have control over. Let me investigate
@UICollectiveDesign
@UICollectiveDesign 8 месяцев назад
Should be fixed now. Sorry about that!
@rb8365
@rb8365 8 месяцев назад
Wow. Quick and great response. Switched downvote into upvote for such a great service.
@UICollectiveDesign
@UICollectiveDesign 8 месяцев назад
@@rb8365 haha, I appreciate he heads-up on the ads!
@jonibekbekmuratov2798
@jonibekbekmuratov2798 9 месяцев назад
great
@UICollectiveDesign
@UICollectiveDesign 9 месяцев назад
Glad you like it!
@Cinki
@Cinki 10 месяцев назад
Can you do create a more realistic example with component of 3+ properties? ;)
@UICollectiveDesign
@UICollectiveDesign 9 месяцев назад
Can you elaborate?
@whennn
@whennn 9 месяцев назад
I think he means , what happens when u have 3-4 variants , how do you link this to the variables@@UICollectiveDesign
@yoanadotina5395
@yoanadotina5395 4 месяца назад
I also have been struggling with that
@humbertoventura1344
@humbertoventura1344 Месяц назад
Thi does not work if you component set has several interactions, Jesus!!
@UICollectiveDesign
@UICollectiveDesign Месяц назад
Another bug!!
@humbertoventura1344
@humbertoventura1344 Месяц назад
@@UICollectiveDesign is it, really?
@rjabrm
@rjabrm 10 месяцев назад
waist of time all that vars
Далее
I Built 4 SECRET Rooms In ONE COLOR!
29:04
Просмотров 19 млн
AMAZING COTTON CANDY HACK!🤑 #shorts
00:37
Просмотров 4,5 млн
😭
00:50
Просмотров 19 млн
STOP doing DROPDOWNS like this - Figma variables 2023
15:35
Figma Token and Variable Setup: Top Mistakes to Avoid
14:18
Variants vs variables
15:11
Просмотров 32 тыс.
I Built 4 SECRET Rooms In ONE COLOR!
29:04
Просмотров 19 млн