A
A
andrey25282020-08-20 00:37:57
SVG
andrey2528, 2020-08-20 00:37:57

How to properly fit SVG icons in Figma?

I switched to Figma and the question arose: when loading svg icons, there is a frame and the vector itself (sometimes in a group). In order to fit the icons to one size, we set the frame size to 40x40. But they can visually differ in size from each other (the vector itself). How to proceed in this case: make them visually identical, but then the frame will be different, or? What is the right thing to do in such situations so that there are no problems in design, and then layout?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Figma-designer, 2020-08-20
@Figma-designer

It's best to keep the frame the same size, otherwise you'll just have trouble aligning the elements. In addition, the frame is convenient to export, and it is obviously better for the layout designer when all the icons are the same size.
So change the content inside the frame. In such cases, I arrange the rulers and stretch the icons already along them.

R
Roman Dvoryanov, 2020-08-20
@Raxen

It is considered good practice to make containers (frames) for icons, because an icon can be a non-whole pixel size, and there are no half-pixels on the web. Just center the icons inside the frame and slightly adjust the height, width, if they are not square, well, so that it is clear)

S
Stepan Voevodin, 2020-09-07
@melpnz

In general, I will join the previous comments, the container (viewbox) should be the same for everyone, the icons are drawn in pixelperfect. And between themselves to level already visually, but not getting out of the container.
Google wrote design principles on the topic of visual rendering .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question