VOOZH about

URL: https://www.geeksforgeeks.org/websites-apps/svg-color-and-overlay-edit-figma/

⇱ Svg Color and Overlay Edit Figma - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Svg Color and Overlay Edit Figma

Last Updated : 5 Jul, 2024

SVG Icons are selective icons that are used for infographic purposes on websites. An SVG icon has it's default color set & changing it's color can require a step of tasks, which however can be achieved on Figma. In this article, we will learn how to color an svg and also how to use overlay edits options in Figma.

What is SVG Color?

An SVG Icon is an XML (Extensible Markup Language) vector image that is used for particular infographics. Here we will learn how can we change the color of an SVG Icon:

Step 1: Add an icon using Freepik in the centre of the frame.

👁 Icon
Icon

Step 2: Add a rectangle on the top of the icon & add a color fill, say red to it.

👁 Rectangle over icon
Rectangle + Icon

Step 3: Select both the rectangle & the icon and the option Use as Mask (Ctrl + Alt + M).

👁 Use as Mask Option
Use as Mask Option

Step 4: The color of the rectangle is applied to the icon. (Red OR Green)

👁 Color of Icon Changed
Color of Icon changed

Changing the color the Green.

👁 New Icon Color
Color of Icon Changed

Overlay Edit Figma

Overlay is a property in the Prototype section of Figma that allows us to create functionalities + animations in it. It has several properties on what would happen when we click, hover or drag mouse over a button & how would the background change, what would be the effect of another frame over it, etc.

This is the prototype section which lies in the top row & below are the steps to edit overlay in Figma:

👁 Prototype
Prototype

Step 1: Add a frame in the design file.

👁 Frame
Frame

Step 2: Add an icon in the centre of the file.

👁 Icon
Icon

Step 3: Add the same icon with different color

Add the same icon in the frame outside & change it's color. Change the icon into a frame or add it in one.

👁 2 Frames
2 Frames

Step 4: Add Prototype connection

Use the plus button in the frame to connect it to the other frame & the following properties will show up on your screen.

👁 Prototype Connection
Plus Button Connect

Step 5: Change the "Navigate to" to "Open Overlay" and add a frame to it alongwith the desired animation.

👁 Overlay Options
Options (Open Overlay)

Step 6: Add a Background Color

Add the background color which would appear when the frame 2 would take the place of Frame 1

👁 Overlay Properties
Properties of Overlay

Step 7: Open the Final Presentation

This is the final animation in presentation view & here's how to open the design in presentation view. Click on the play icon in the top row:

👁 Presentation View
Presentation View

Here is the final design:

👁 Final Design
Final Design

Step 8: Swap Overlay

On clicking Swap overlay instead of Open overlay, the frame would appear permanently on the screen & it would get swapped as the name suggests. The final design of Swap Overlay would be like this:

👁 Design Overlay swipe
Final Design

Properties of Overlay Edit in Figma

Overlay in Figma has the following three properties:

  • Position of Frame: The position of frame is the setting where the second frame will appear when clicked or hovered upon the first frame. It can be centre, left, right or can be manually set by the user.
👁 Frame Positioning
Position of Frame
  • Close when Clicked Outside: When clicked outside of the frame 2, the frame 2 should close or not, this is specified by the checklist of Close when Clicking outside.
👁 Select Overlay Options
Close when Clicking outside
  • Background behind overlay: On opening the frame 2, sometimes the user would want the previous frame to become slight dim, or gray or different in color. This can be done by setting the fill property of the background behind overlay.
👁 Adding BG
Add background

Conclusion

SVG Icons are handy in any design and they require at times change of colors & edits. The above steps to change colors of SVG are effective & the properties of overlay & the different ways to set it up help in building up the Prototype for a design. These help in enhancement of our design & make it look even better & appealing.

Comment
Article Tags: