Skip to main content
Barbara_Araujo
Mar 28, 2022 9:59 AM UTC
Question

How to rename layer name with instance/component name

Hey everyone,

After using the “clean document” plugin, my variants are named according to their properties instead of the component name.
Meaning my instance layer is named “propertyA=yes, propertyB=yes, propertyC=no” instead of “component name”.

Is there a way to automatically revert this/fetch the component/instance name correctly? A plugin or a workaround?

Thank you

    This topic has been closed for replies.

    3 replies

    Klesus
    Mar 28, 2022 12:42 PM UTC

    Figma uses naming a lot to figure out how to do stuff, and the same goes for variants.
    Since variants are just different versions of a single component, Figma uses these properties and values internally to differentiate them as variants of a single component. When bringing out components from your asset library though things should look as you expect. It might feel more natural to give them names that make sense to you, but in the end, the instance names are as they are supposed to be and all you have to worry about is the name of the component set itself.

    Natti
    New Participant
    Jun 3, 2022 6:38 PM UTC

    I have the same problem and since this original post hasn’t gotten many responses think we need to clarify the issue a bit. While @Klesus is correct that when pulling instances onto the board layer name is given what we’d expecting, something like:

    “Button/Label/Enabled”

    But if we use a plugin “clean document” in the posters case or in my case the plugin “Rename it” the layers don’t get set to the Symbol or Instance names like the above, it gives us the properties like so:

    “propertyA=value1,propertyB=value2,propertyC=value3”

    I don’t know if this is as intended or a plugin issue but would be nice that it just sets to the typical symbol name, I don’t need to see a long list of props for every instance layer.

    tank666
    Nov 21, 2023 7:43 AM UTC

    Since this is due to plugins, you will need to contact their developers or support.

    Regarding resetting the instance name, if this name has been overridden, you can reset it using the appropriate item in the instance options menu.
    instance-options

    Read more here:

    Figma Learn - Help Center
    UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank