<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andy Dang on Medium]]></title>
        <description><![CDATA[Stories by Andy Dang on Medium]]></description>
        <link>https://medium.com/@andyhdang?source=rss-235de2c449f4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8GreByy8iAaIFy4SWu6P9A.png</url>
            <title>Stories by Andy Dang on Medium</title>
            <link>https://medium.com/@andyhdang?source=rss-235de2c449f4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:12:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andyhdang/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Naming Layers: The Overlooked Tool for Designer to Developer Collaboration]]></title>
            <link>https://www.designsystemscollective.com/naming-layers-the-overlooked-tool-for-designer-to-developer-collaboration-02603d7f36b9?source=rss-235de2c449f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/02603d7f36b9</guid>
            <category><![CDATA[figma]]></category>
            <category><![CDATA[design-and-development]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[naming-conventions]]></category>
            <dc:creator><![CDATA[Andy Dang]]></dc:creator>
            <pubDate>Tue, 24 Jun 2025 04:33:10 GMT</pubDate>
            <atom:updated>2025-06-26T06:37:16.584Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DhkLYQ8OO3bRnXrS" /><figcaption>Photo by <a href="https://unsplash.com/@mynameisiknow?utm_source=medium&amp;utm_medium=referral">Ainur Iman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Designing digital experiences has never been faster. Open Figma, drop in a frame, set up your layout, add some text and colors, and within minutes, you’ve got a clean, functional page ready to present.</p><p>Take Robert, he’s quick with the tools. Auto-layout is automatic to him, finding the right padding and spacing comes naturally, and he’s set up all the right efficiencies with styles and components. His designs look great and come together fast.</p><p>But open his layers panel, and you’ll see a “Frame 2124” here, a “Rectangle 94” there, or the classic: “Heading + Description + Button”. These unnamed or inconsistently named layers can make perfect sense in the moment but revisiting them is like opening your computer’s downloads folder in list view. You have to click into it to know what it is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kuYBAGyK4tSlBeVWyt-q0A.png" /><figcaption>Example layers panel in Figma</figcaption></figure><p>The truth is, Robert’s not lazy. He just thinks naming layers slows him down. After all, the visuals speak for themselves, right?</p><p>Unfortunately, what makes sense to Robert today might confuse a developer (or even Robert himself) tomorrow.</p><blockquote><strong>Naming is design.</strong></blockquote><h3>Meet Susan</h3><p>Developers who work with Figma files are often trying to orient themselves in a tool that wasn’t built for them (yes, even on Dev-mode).</p><p>Susan is a web developer scanning through Robert’s design spec file looking for what’s helpful and what’s not helpful. She sees “Frame 6”. Not helpful. Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UxDVQXQZ2A26M2YM01f60Q.png" /><figcaption>Topbar design in Dev-mode</figcaption></figure><p>“Frame 6” or even “Icon + Buttons” doesn’t give her much to work with. It doesn’t clarify how things are grouped or what role each element plays in the layout. Is this one cohesive component, or just a few elements that happen to sit near each other? Without asking Robert, it’s hard to tell. Like many developers, it doesn’t take long for Susan to ignore the layer names altogether. Susan doesn’t use them so Robert doesn’t care about them. The cycle continues.</p><p>The result is longer handoff cycles, more rounds of staging and review, and a slow buildup of design debt made of micro miscommunications. There are many reasons this disconnect between design and development exists, but from a designer’s perspective, naming layers intentionally is one of the most immediate, controllable ways to bridge the gap.</p><blockquote>It’s not just good design hygiene, it’s foundational.</blockquote><h4>React.js</h4><p>Luckily, standard naming conventions already exist in the development world. Let’s use React syntax as an example:</p><ul><li><strong>Reusable components </strong>use PascalCase <em>(e.g. NavBar, HeroSection, NotificationBanner, Button)</em></li><li><strong>Props and prop values </strong>use camelCase <em>(e.g. showTrailingIcon, isDisabled, userName, firstName)</em></li><li><strong>States</strong> use camelCase <em>(e.g. isActive, hasError, isLoading)</em></li></ul><p>As a bonus, an underscore “_” prefix is a common convention in development to mark internal files that aren’t meant to be accessed elsewhere. Designers can apply the same principle in Figma. In fact, Figma supports this natively — you can prevent a component or style from publishing to the shared library by adding an underscore before the name. Using an underscore prefix can help indicate that a component or style is internal, temporary, or not for development. For example: “_SlotArea”.</p><blockquote>“Sure, but what about those nested auto-layouts I use to manage groups of content?” — Robert</blockquote><h4>BEM</h4><p>We can do better than “Icon + Button”. One option is to borrow the BEM naming convention already used in CSS class naming. BEM stands for block, element, and modifier and looks something like this:</p><p>block__element--modifier</p><ul><li><strong>Block:</strong> the independent, top level entity. <em>Example: </em>topbar</li><li><strong>Element:</strong> the sub-groupings placed within that entity, denoted by two underscores “__”. <em>Example: </em>topbar__menu<em>, </em>topbar__menu-item</li><li><strong>Modifier:</strong> the state or variation, denoted by two hyphens “ — — ”. <em>Example: </em>topbar__menu-item--selected</li><li>Note: use kebab-case (single hyphen) whenever appending compound words or multiple words to represent a single item. <em>Example:</em> menu-item</li></ul><p>You can learn more about BEM in Robin Rendle’s post here: <a href="https://css-tricks.com/bem-101/">https://css-tricks.com/bem-101/</a></p><p>Let’s go back to Robert’s file, this time applying React.js syntax for reusable components and properties, and BEM naming conventions for containers, groupings, and smaller elements. Note that this example is for the web but the same concept can be applied if you are designing for apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3UDZhQj70H-Bz0MNQF4_zw.png" /><figcaption>Layers in figma using React and BEM naming conventions</figcaption></figure><p>Ah, much better. Now his file reads like a blueprint, not a guessing game. His intentions are clear which benefits not just Susan but also himself and any designer who might pick up where he left off. His component name Topbar signals a reusable component and within that, instead of the vague “Icon + Buttons,” there is a group appropriately named topbar__action-group. It should read to Susan as “A group of actions within the Topbar component block”. At a glance she might also recognize that Button is a nested reusable component because it’s name is in PascalCase.</p><p>Even if Susan doesn’t follow the naming exactly, she has a much clearer picture of Robert’s thinking when he built it.</p><p>The resulting Topbar.js React component might look something like this:</p><pre>import React from &#39;react&#39;;<br>import PropTypes from &#39;prop-types&#39;;<br>import Button from &#39;./Button&#39;;<br>import SearchIcon from &#39;./icons/SearchIcon&#39;;<br>import &#39;./Topbar.css&#39;;<br><br>const Topbar = ({ size = &#39;extraLarge&#39; }) =&gt; {<br>  return (<br>    &lt;header className={`topbar__container topbar__container--${size}`}&gt;<br>      &lt;div className=&quot;logo&quot;&gt;<br>        Logo<br>      &lt;/div&gt;<br><br>      &lt;div className=&quot;topbar__actions&quot;&gt;<br>        &lt;nav className=&quot;topbar__menu&quot;&gt;<br>          &lt;a href=&quot;#&quot; className=&quot;topbar__menu-item topbar__menu-item--selected&quot;&gt;<br>            Home<br>          &lt;/a&gt;<br>          &lt;a href=&quot;#&quot; className=&quot;topbar__menu-item&quot;&gt;<br>            About<br>          &lt;/a&gt;<br>          &lt;a href=&quot;#&quot; className=&quot;topbar__menu-item&quot;&gt;<br>            Contact<br>          &lt;/a&gt;<br>        &lt;/nav&gt;<br><br>        &lt;div className=&quot;topbar__action-group&quot;&gt;<br>          &lt;button className=&quot;topbar__icon-button&quot; aria-label=&quot;Search&quot;&gt;<br>            &lt;SearchIcon /&gt;<br>          &lt;/button&gt;<br>          &lt;Button&gt;Login&lt;/Button&gt;<br>          &lt;Button variant=&quot;primary&quot;&gt;Sign up&lt;/Button&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    &lt;/header&gt;<br>  );<br>};<br><br>Topbar.propTypes = {<br>  size: PropTypes.oneOf([&#39;small&#39;, &#39;medium&#39;, &#39;large&#39;, &#39;extraLarge&#39;]),<br>};<br><br>export default Topbar;</pre><h3>Let’s breakdown some of those applied naming conventions</h3><h4>1. Declaring the component</h4><pre>const Topbar = ({ size = &#39;extraLarge&#39; }) =&gt; {</pre><p>Like in Robert’s file, Topbar, in PascalCase, is the name of the component for Susan as well. size, in camelCase, is a property name with a default value of extraLarge, also in camelCase.</p><h4>2. Container</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S-w_Q4PAkk0XFmPThAR5pg.png" /><figcaption>topbar container</figcaption></figure><pre>&lt;header className={`topbar__container topbar__container--${size}`}&gt;</pre><p>Since Robert and Susan have agreed to use the BEM naming convention, it is understood that container is an element within the topbar block. Hence, topbar__container.</p><p>The ${size} is added for dynamic class naming to apply size specific stylings like a max-width on the extraLarge size. Thanks, Susan.</p><h4>3. Actions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yqm3HNOWh2Er8tov_mU9Zg.png" /><figcaption>topbar actions</figcaption></figure><pre>&lt;div className=&quot;topbar__actions&quot;&gt;</pre><p>topbar__actions is the wrapper for all of the actions within the Topbar: menu items, search icon, and CTAs.</p><h4>4. Menu</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4tdU2PJ_CE94Mz5Bck0w3Q.png" /><figcaption>topbar menu</figcaption></figure><pre>        &lt;nav className=&quot;topbar__menu&quot;&gt;<br>          &lt;a href=&quot;#&quot; className=&quot;topbar__menu-item topbar__menu-item--selected&quot;&gt;<br>            Home<br>          &lt;/a&gt;<br>          &lt;a href=&quot;#&quot; className=&quot;topbar__menu-item&quot;&gt;<br>            About<br>          &lt;/a&gt;<br>          &lt;a href=&quot;#&quot; className=&quot;topbar__menu-item&quot;&gt;<br>            Contact<br>          &lt;/a&gt;<br>        &lt;/nav&gt;</pre><p>Here, topbar__menu wraps all of the topbar__menu-item’s. The topbar__menu-item with the --selected modifier provides the CSS values for the selected style treatment on the “<strong>Home</strong>” navigation link.</p><h4>5. Action group</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5GwQqb3jVE3DGW37mSguA.png" /><figcaption>topbar action group</figcaption></figure><pre>        &lt;div className=&quot;topbar__action-group&quot;&gt;<br>          &lt;button className=&quot;topbar__icon-button&quot; aria-label=&quot;Search&quot;&gt;<br>            &lt;SearchIcon /&gt;<br>          &lt;/button&gt;<br>          &lt;Button&gt;Login&lt;/Button&gt;<br>          &lt;Button variant=&quot;primary&quot;&gt;Sign up&lt;/Button&gt;<br>        &lt;/div&gt;</pre><p>topbar__action-group is being used to group the search icon and CTAs in both the design and code. At a quick glance, you might see some nested reusable components (in PascalCase) at play — SearchIcon, and Button.</p><blockquote><strong>Naming is Design.</strong></blockquote><h3>Summary</h3><p>By adopting naming patterns developers already use, designers can reduce ambiguity and increase alignment. If naming is design, then thoughtful naming is thoughtful design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0L-3l3PjfFfCBL57mkvcg.png" /></figure><h3>Thank you!</h3><p>React syntax and BEM naming conventions are just a few examples of established naming patterns that can help improve alignment between design and development teams. There are plenty more to explore. For example, how can we differentiate these words that describe stuff and groups of stuff?: <em>section, container, module, composite, wrapper, group, item, element</em>.</p><p><strong>If you got naming strategies that work well for your team, I’d love to hear about them. Drop a comment below or connect with me on </strong><a href="https://www.linkedin.com/in/andyhdang/"><strong>Linkedin</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02603d7f36b9" width="1" height="1" alt=""><hr><p><a href="https://www.designsystemscollective.com/naming-layers-the-overlooked-tool-for-designer-to-developer-collaboration-02603d7f36b9">Naming Layers: The Overlooked Tool for Designer to Developer Collaboration</a> was originally published in <a href="https://www.designsystemscollective.com/">Design Systems Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>