Member-only story
How to solve the icons colors problem In Figma
It is simpler than you think

One of the questions many people ask in different design communities is how to solve this case.
How do I keep the color on an icon after I change them in a component?
For example:
I have a button with an icon on the left > I want to change the icon for the “close” to the “user” icon > The icon is currently black > After changing the icon, its color changes to the icon’s default color.
Thanks to Preslava Petrova that asked me how to do it in a comment in the article A complete guide to Figma component properties. Here I explain how to do it.
The solution
You need to make sure that the layer names inside the icons are the same. That way, it will work as expected.
Here are some clarifications before you ask :)
What happens if I change an icon with one layer to one with two?
After playing with it, I discovered that the first layer of the first icon meets the last layer of the other icon. Because of this, if the first layer of the first icon is black, the last layer of the other icon will also be black, and the first will be the default layer color.

Do case sensibility matter?
Yes, it is important. You must name the layers with the same letter case (uppercase and lowercase).
Want to take your Figma skills to the next level?
Get one-on-one tutoring with me! Whether you’re a beginner or looking to refine your skills, I’ll work with you to help you gain confidence and improve your Figma skills.
Ready to take the first step? Click here, and let’s get started!
Thank you for reading the article. I hope this article helped you learn how to ensure the icon color will remain after you change it. Please feel free to share it with your friends or team members, and if you have any questions, please let me know.
If you enjoyed my article, I suggest you follow me and subscribe so you’ll receive an email whenever I post.