No video

Override preservation on nested icons

  Рет қаралды 25,261

Figma

Figma

Күн бұрын

Learn how to preserve color overrides on nested icon components.
Figma is free to use. Sign up here: bit.ly/3msp0OV
____________________________________________________
Find us on ⬇️
Twitter: / figma
Instagram: / figma
LinkedIn: / figma
____________________________________________________
#Figma #Config #FigJam #Tutorial #NothingGreatIsMadeAlone #design #tips #DesignSystems #figmatips

Пікірлер: 83
@natecooper01
@natecooper01 19 күн бұрын
This is great! Naming conventions matter. That's one of my favorite things about component design and properties. The available features have everything to do with structure and names. Simple, but very flexible functionality.
@petergrant6498
@petergrant6498 7 ай бұрын
This answered exactly the issue I was trying to resolve. Little deep-cut nuggets of product insight like this are invaluable. Please keep them coming!
@ChristianBaptiste
@ChristianBaptiste Жыл бұрын
We use a simple hack where we have what we call "ColorIcon". This icon blends two components, a color component (basically a full-size shape component like 24 X 24 that holds the selection color value) and another component which is the icon we want to use (i.e. a floppy disc icon). The "ColorIcon" blends these two components as a mask of the color layer. And then we use nested component properties to make it easy to change the underlying icon (the floppy disc icon to any other icon). The reason why this works is that the color layer never changes its name of the layer (thus a similar idea). The main difference in the approaches is that we don't have to do extra work on each icon.
@DarrinLin
@DarrinLin Жыл бұрын
woah blast from the past cause that’s the same hack we used when we were still on sketch
@tinawei9489
@tinawei9489 Жыл бұрын
This is very clever too!!!
@g_higa
@g_higa Жыл бұрын
​@@DarrinLin Could you please provide a screenshot or a file copy of this hack? I would like to understand better how this is structured. Thank you
@cale971
@cale971 8 ай бұрын
THANK YOU!!! Spent the whole day trying to figure this out and your the only person I found who explains it properly and also you're the only person who has figured it out. You're brilliant!!
@tien8712
@tien8712 7 ай бұрын
its from figma team LMAO.
@BigYoof
@BigYoof Жыл бұрын
I appreciate the video! This has been a struggle of mine while managing our icon library (material icons). My main complaint with this hack is that it forces you to detach the icons from the material design library and you lose the connection to the main component with the different icon styles. If you want to preserve an icon with the various style options, you then need to create a second version of the same icon which clutters up your icon library and the component search panel. Regardless, I will be making use of it for now until things improve. Keep up the good work!
@simonedalena9419
@simonedalena9419 Жыл бұрын
The issue is you should't use their library you should fork it and make sure that all icons preserve this so you do not lose that connection. This operation is obviously meant to be done in the icon library.
@thiago_santarem
@thiago_santarem Жыл бұрын
I think what blew my mind the most was CMD + R to rename the layers... This whole time I've been using a plugin like a fool! 🤯
@syphon583
@syphon583 Жыл бұрын
This is a great workaround. Thank you for sharing! Let me say that again, though. This is a great WORKAROUND. @Figma should not expect their users to have to manually restructure and rename all of their icons to make what should be a simple fix on their end. Sure, if a user has the material icon library, they can do this once and call it good. But that library is constantly updated with new and updated icons which means we'd have to do this every time there's an update. I'm fairly new to figma and I've been loving almost everything so far. But this is a serious bug that Figma needs to fix if they expect designers to properly and EASILY maintain design systems.
@JakeDesaulniers
@JakeDesaulniers Жыл бұрын
Now that I've watched this it feels so obvious, like I should have already known. Thanks for sharing! This makes my life so much easier.
@virginiadominguezcarrera8816
@virginiadominguezcarrera8816 Жыл бұрын
I'm crying. This was a lifesaver for my design system. THANKS💥
@Cuthalion999
@Cuthalion999 5 ай бұрын
I´ve been struggling with this exact issue for days now. Thank you so much.
@goldenvox
@goldenvox 2 ай бұрын
Oh my gosh, thank you! This helped me solve a problem I actually had a few months ago, but now I know. Awesome!
@dar00st33r
@dar00st33r Жыл бұрын
Problem solved! Thank you for posting this as I need to address this within our design system. 🎉
@tinawei9489
@tinawei9489 Жыл бұрын
This is so useful... I used to make icon set variants of different colours before. Now only one colour is enough!!!
@rizkizfajar
@rizkizfajar Жыл бұрын
I found another way one month ago, you actually can solve this with naming your icons with naming conventions for example: Icons/ cart-fill, Icons/ Chat-fill. this will save your time. In my case I also put all the icons in a frame called icons too.
@chloeatchue-mamlet6764
@chloeatchue-mamlet6764 Жыл бұрын
This is presented like a universal solution, but it's very limited. You can't do this with duotone icons for example.
@jswanson859
@jswanson859 Жыл бұрын
I love this feature! Makes total sense. I will definitely be incorporating it into my workflow.
@koenvanniekerk4231
@koenvanniekerk4231 Жыл бұрын
Nice! Exactly what I ran into the day before I saw this video. Thanks!
@marselgaliullin
@marselgaliullin Жыл бұрын
Oh my God, I’m just shocked that this is how it works! Thanks for the video
@id125_pichayaphulphean2
@id125_pichayaphulphean2 Ай бұрын
Thanks for sharing! you are totally my life saver TTT
@feelerino
@feelerino 8 ай бұрын
cool, but problem is: if I change the color of the source component at some point in the future, the instances won't update to the new color even though the structure of all icons is literally the same, same name, everything
@dennis8636
@dennis8636 9 ай бұрын
This requirement of consistent layer count and naming can't seriously be the official solution for color overrides
@czerskip
@czerskip Жыл бұрын
That's a nice hack. Still a hack, though. Figma should handle overrides on different levels (content, style) much better, to be honest. Only the very latest updates introduced the features the community has been begging for for years… How about opening the format btw? 🤣🤑
@MR-DURO
@MR-DURO Жыл бұрын
Grouping some of my icons using the UNION selection sometimes created strange merge where I would lose some of the vector element. In my case, I didn't need to maintain individual vector layers and decided using "Flatten Selection" (CMD-E) and it seems to be doing the trick for me.
@lindaduong289
@lindaduong289 Жыл бұрын
Hey thanks I was wondering the same thing here!
@oZenakos
@oZenakos Жыл бұрын
Many thanks for the video these tips saved me tons of time
@dailydoseofleomessi9142
@dailydoseofleomessi9142 Жыл бұрын
This issue still persists if there's 2 or more layers of nesting. As soon as you change a component property (for example: different color) of an instance, the color gets messed up.
@ttorres
@ttorres Жыл бұрын
Exactly, why is no one else saying this?!
@dinakarunia9892
@dinakarunia9892 Жыл бұрын
I'm struggling with this issue. Do you have some tips how to handle this without manually change the color? 😢
@federicomolfino9904
@federicomolfino9904 11 ай бұрын
you saved my life. Thank you!
@playbak
@playbak 8 ай бұрын
Make sure your original icons in the library are a color that will NEVER be used in buttons (or any component with a nested icon). Use some tertiary or a color outside of your color system for the icon library, this will ensure icon color overrides work as intended.
@mathieucartier4926
@mathieucartier4926 5 ай бұрын
Thank you!
@donegan50
@donegan50 6 ай бұрын
I had no idea this is why overrides were not working with my icons.
@IsaquePereira
@IsaquePereira 8 ай бұрын
But if I need to update the icon color to red on the button's primary master, those swapped instances will not update to red, they will keep the last color (white). Is there a way to prevent that?
@nophathaivasasmith3604
@nophathaivasasmith3604 10 ай бұрын
Thanks a lot this save my life
@SkrezaStudio
@SkrezaStudio Жыл бұрын
thanks a lot .... it's makes me crazy from the day one
@h4mil70n
@h4mil70n 5 ай бұрын
Thank you for sharing this as it works when designing, however with prototyping the instance returns to it's default color state. Do you happen to have a solution for that?
@kevintuskey
@kevintuskey 7 ай бұрын
For each of the button variants, how is color the icon changed? Do you select a different fill color for the icon?
@mischugo
@mischugo Жыл бұрын
Nice explanation. Thank you. But, what is the best way to do this when using the Material Symbols plugin? Whenever I need an icon I have to "disassemble" and prepare it first? I already have as standard a number of 30 icons in two sizes (24 and 20) and each in gray and white... but sometimes I would have to replace an existing colored icon (light blue or green) with these. How do I get there an overwrite? Is that possible? Couldn't the Figma team maybe show more topics from their daily work as short videos. So, not how a feature works on its own, but how it works together with other objects. Overwrite, organize, flow, compatibility, autolayout hacks, grids ... Would be more than nice ;-)
@likunakadagishvili9542
@likunakadagishvili9542 6 ай бұрын
⚡⚡⚡Heeeeeeelp !!!⚡⚡⚡if i have one vector shape and it does not unionize, then when swapping, it gets filled or gets some unwanted changes. As a solution, i duplicated so it gave me permission to Unionize and then it worked! But I believe there must be an easier solution to not have duplicated shapes in one icon. Help, please. 🙏
@faithegwuenu
@faithegwuenu Жыл бұрын
Thanks for sharing 🤗
@ArifMatubber-km4nv
@ArifMatubber-km4nv Жыл бұрын
Thanks you so much and that was awesome
@nasmith67
@nasmith67 9 ай бұрын
this is not working for me using the Material Plugin icons. All icons have 1 sublayer - named = icon. In order to the the sublayers down to 1 I removed the "bounding box" from the icons and named the remaining (eponymous) layer "icon." Tried this with both the bounding box and removed. Please advise. Thank you!
@sophiapatyk4993
@sophiapatyk4993 Жыл бұрын
it doesn't work at all. if the icon is a single vector, then it works, but if you use Union for 2-3 vectors - then it doesn't work. I don't understand why
@the_true_hier_to_the_sharingan
@the_true_hier_to_the_sharingan 11 ай бұрын
Instead of creating a Union, Flatten (Ctrl + E) multiple vectors. Won't work if you use more than 1 color in the icon. For more than 1 color, aka, duotone icons, there is another short watch it.
@alessandroviatore8119
@alessandroviatore8119 11 ай бұрын
❤ thank you!!!
@abirsomech
@abirsomech 6 ай бұрын
If I decide the use a different color for the main component it will not update the icon instance, any thoughts?
@giselevotre9560
@giselevotre9560 Жыл бұрын
Great! thanks! :)
@dinakarunia9892
@dinakarunia9892 Жыл бұрын
The issue still there when I use the 2nd or 3rd nesting. Please solve this issue immediately. I had to reset the variant property first, then start over the process to change the icon. This is super tiring and getting worst when I create the prototype. For example in a simple button with hover state. The color changing doesn't work when I hover the button, some time it works and most of the time is doesn't work at all 😵‍💫😵‍💫
@hanihassan6957
@hanihassan6957 Жыл бұрын
But still issuing on prototype, if I change the variant color
@Thefrenchsearch
@Thefrenchsearch Жыл бұрын
THANKS!
@001abhishekgautam6
@001abhishekgautam6 Жыл бұрын
not working for me
@1deplatt
@1deplatt Жыл бұрын
good stuff
@dsandoval1
@dsandoval1 Жыл бұрын
How would you stucture your icons if some of them have one color and others have 2 or 3?
@fernando219
@fernando219 Жыл бұрын
Is it possible to overwrite the stroke width of the icon, and keep it with the icon swap?
@tallamariachi
@tallamariachi Жыл бұрын
This is not working if you are using an external library
@mat5844
@mat5844 6 ай бұрын
It's still not working for me :__ anyone else?
@naikomichail
@naikomichail Жыл бұрын
Could you share the file?
@welsewool
@welsewool Жыл бұрын
Still a hack... Which ruins as soon as you use dual-tone icons Also it will be ruined if you use icons in variant, then master button and buttons as variants, which use icons
@ludovicabonaldo
@ludovicabonaldo Жыл бұрын
It works even with dual tone icons. You need two vectors instead of one and rename them with two different names (like "stroke" and "fill", or "color1" and "color2")
@welsewool
@welsewool Жыл бұрын
@@ludovicabonaldo try to import all google icons and you will see. you have 5 styles, and when you want to switch from one style to another everything will be broken.
@ludovicabonaldo
@ludovicabonaldo Жыл бұрын
@@welsewool really in a design system or project do you need all 5 styles of icons? try to import only the ones you need, importing even one set of all material design icons is useless and weighs down your file.
@welsewool
@welsewool Жыл бұрын
@@ludovicabonaldo we don't talk about user need, we talk about the place to improve without hacks. It's my user pain and there is a way to solve the issue. Do not ask user to adapt, help user!
@rjabrm
@rjabrm Жыл бұрын
Not working 👎
@TheTrueHarlequin
@TheTrueHarlequin Жыл бұрын
Is this a new fix? Even with layers all named "Vector" before it did not do this.
@azmodel
@azmodel Жыл бұрын
I've been using Figma for several years and it has worked like this for as long as I remember. Honestly I thought this was a bug that turned out into a feature
@JoshChadwick1
@JoshChadwick1 Жыл бұрын
Was this a subtle request for Google to clean up there icon library? 😂
@rjabrm
@rjabrm Жыл бұрын
I don't get it.. 1. you still have layers after the union 2. you did Enter what?
@greatndabai
@greatndabai Жыл бұрын
Yeah, you'll still have a layer after the union, but now you have only one layer in all the icon components. Then you rename the layers (using the same name for the layers in all the icon components)
@azmodel
@azmodel Жыл бұрын
You can have extra elements inside as long as the one you want to keep the changes has the same name.
@naimurrahman8543
@naimurrahman8543 Жыл бұрын
First view 🥰
@LegatoTube
@LegatoTube Жыл бұрын
Yeah I'm not adjusting hundreds of icons. Come up with a better sooution, Figma
@rmmixd
@rmmixd Жыл бұрын
Find an intern to do it for you! 😊
@DarrinLin
@DarrinLin Жыл бұрын
you wouldn’t have a job if figma did everything for you 💀
@LegatoTube
@LegatoTube Жыл бұрын
@@DarrinLin what a junior thing to say 💀
@DarrinLin
@DarrinLin Жыл бұрын
@@LegatoTube what a lazy thing to say 🤷🏻‍♂️
@chetanRajputR
@chetanRajputR 4 ай бұрын
I remember how I was creating Ui in photoshop before figma or xd
@likunazation30
@likunazation30 6 ай бұрын
⚡⚡⚡Heeeeeeelp !!!⚡⚡⚡if i have one vector shape and it does not unionize, then when swapping, it gets filled or gets some unwanted changes. As a solution, i duplicated so it gave me permission to Unionize and then it worked! But I believe there must be an easier solution to not have duplicated shapes in one icon. Help, please. 🙏
Auto layout shortcuts
2:58
Figma
Рет қаралды 20 М.
How to Swap Icons in Figma
11:28
Coding in Public
Рет қаралды 46 М.
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 29 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 12 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 6 МЛН
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 149 М.
Making various heart icons
3:49
Figma
Рет қаралды 19 М.
STOP doing DROPDOWNS like this - Figma variables 2023
15:35
Ricardo Costa
Рет қаралды 176 М.
Figma Tutorial: Variants
14:16
Figma
Рет қаралды 1 МЛН
Component properties
6:29
Figma
Рет қаралды 60 М.
What Is a User Journey Map? + 6 Tips on How to Create One
5:49
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 29 МЛН