How to change an Icon-Image Colour in Figma.
Being a Developer, I always wanted to learn how to design a world class product from scratch (on my own 😅). Recently i have been learning how to design an app using the right tools and process, primarily using the already well established tool, Figma. As Figma supports almost every popular image-type out of the box, and with its brilliant collections of available plugins (for free 😁) we can drag and drop a design for any app or website quite easily.
The most recurring problem that i encountered was dealing with images, especially Icons and the need to change to different colour’s based on the design scheme (for example Dark vs Light mode).
After searching for a while, I stumbled across this reddit thread (click here, credits to the creator!) and immediately felt like trying the same cool trick on my most favourite plugin.
Changing the colour of Icons.
For my Icon needs i tend to use StreamLine Icons, one of Figma’s most widely used plugins to get any desired shape into the design. You can find the plugin here.
Here is how we can change the colour of an icon imported from this plugin.
- Load the Plugin by selecting it from the Plugins menu.
2. Select an Icon from the Plugin, e.g the Home Icon.
3. Select the Icon and remove the fill of “FFFFFF” from the image on the design panel on the right. This will strip down the icon to its boundaries thus removing the unwanted background.
3. Draw a rectangle on top of the icon, make sure the rectangle is of same dimension as the Icon, e.g 48x48 as in the above image. In case it’s not, it can be adjusted later on as well from the design panel on the right.
4. Select the Icon and the Rectangle by either pressing Cmd+Click on each item on the Layers, or manually on the frame and open the Right Click Menu, then select Use As Mask (shift+cmd+m).
5. Change the colour of the Rectangle in the Mask to achieve the desired result.
I find this trick quite useful and easy to learn, and the end results are just as amazing. This trick works well with custom image files as well, I will try to add more scenarios to this doc and keep it updated with more findings along the way. Feel free to leave your thoughts or ideas in the comments below. I am always on a look out to learn new things.