How To Name Layers in Figma
How To Name Layers in Figma
The task
Let’s take the component below for example.
Scroll down
⌘ Card component
Latest template
A simple card component,
containing:
Section titl
Imag
Card titl
Card stat
Like
Duplicate
Description
File starter template 7 92 Coded example available on Codepen
A set of pages to kickstart your projects! The structure aligns to the
design process and splits out each section to make it easy for
someone to follow. There’s a dedicated “ready for development”
section, which we can guide our engineers to.
How would you structure the layers and name them? There are 100 different ways to do
this, but we can definitely start somewhere .
I’ll list a few approaches below, have a scroll and happy naming !
Design stage
I deating Refining Ready for handoff
j
We’re ust having fun at this stage, so don’t need to pay too much attention to our
layer naming or structure.
Level #1 – Refinement
Are you and your team preparing for sign off from your key stakeholders? This is where
we want to start thinking about how easy it is for someone to digest our ideas and
iterate on them, with clear layer naming helping this massively.
Latest template
Design stage
I deating Refining Ready for handoff
Be descriptive with our layer names here. Call a card a card, a number a number, and
a description a description.
Latest template
What does the code look like?* What does the code look like?
Note: the markup below is a bit different to our Figma This is a stripped back version of the TML and H
layers, but close enough .
HTM L HTM L
CSS CSS
Design stage
I deating Refining Ready for handoff
This is a technical approach, and is best handled once our components are in the
F
correct igma library, in a production-ready state. Any time before this would
require too many small-scale changes to our layer structure and could cause more
issues than it solves in the long run.
This method is best suited to when we’re “finished” with our ideation, and ready for
coding .
It’s also a great chance to collaborate on this with your developers too – there’s
no better design process than an open and transparent one. We want our team to be on
board with any approach we take, so applying the method at the right stage of the
design process is very important.
Because this method requires knowledge of markup language, it’s best handled either
by a technical designer, or by the design systems team themselves. It’s also best
!
done (important ) when your component is in the igma component library to prevent F
duplicate work when iterations happen during the ideation phase.
Latest template
P roperties panel – What editors see I nspect panel – What viewers see
Note: we advise documentation be done in a separate file to our main igma component F
libraries. This is so that we can manage documentation and versionining in two separate
places, meaning our docs are always the correct version whilst we tinker on new ideas .
The below is an instance component with manually added notes that align to HTML.
img – thumbnail
p – file title
File starter template 7 92
span – digit
A set of pages to kickstart your projects! The structure aligns to the
design process and splits out each section to make it easy for
someone to follow. There’s a dedicated “ready for development” SVG – icon
section, which we can guide our engineers to.
p – description
Design stage
I deating Refining Ready for handoff
Like our more technical approaches, this is best done once a component’s design has
been agreed upon and is being moved into the igma library file F .
This way, it can be set up properly once, and then published out to our wider team
for usage.