<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Usman Farooqi</title>
    <description>The latest articles on DEV Community by Usman Farooqi (@usmanfarooqi88).</description>
    <link>https://dev.to/usmanfarooqi88</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4140019%2Fc93d9e7f-b2ce-4973-a17e-6c4363925f9a.jpg</url>
      <title>DEV Community: Usman Farooqi</title>
      <link>https://dev.to/usmanfarooqi88</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/usmanfarooqi88"/>
    <language>en</language>
    <item>
      <title>What I Learned Building a Figma ↔ React Design System with a Registry and Local Guard</title>
      <dc:creator>Usman Farooqi</dc:creator>
      <pubDate>Wed, 23 Sep 2026 20:24:56 +0000</pubDate>
      <link>https://dev.to/usmanfarooqi88/what-i-learned-building-a-figma-react-design-system-with-a-registry-and-local-guard-1gk9</link>
      <guid>https://dev.to/usmanfarooqi88/what-i-learned-building-a-figma-react-design-system-with-a-registry-and-local-guard-1gk9</guid>
      <description>&lt;p&gt;I’ve been building &lt;strong&gt;Skrewww&lt;/strong&gt;, a design system that lives across Figma and React.&lt;/p&gt;

&lt;p&gt;At first, the goal sounded straightforward:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Keep the Figma library and the React implementation in sync.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In practice, that quickly turned into a much bigger systems problem.&lt;/p&gt;

&lt;p&gt;The difficult part wasn’t building more components.&lt;/p&gt;

&lt;p&gt;It was deciding:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What is actually canonical?&lt;/li&gt;
&lt;li&gt;What should be generated?&lt;/li&gt;
&lt;li&gt;What can be checked mechanically?&lt;/li&gt;
&lt;li&gt;What still requires human design judgment?&lt;/li&gt;
&lt;li&gt;How do you know a component that looks correct in the repository will actually work after someone installs it?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are a few of the lessons I learned while building the system.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. One source of truth isn’t enough if everything means “truth”
&lt;/h2&gt;

&lt;p&gt;Early on, it’s tempting to put everything into one giant component definition:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;props&lt;/li&gt;
&lt;li&gt;variants&lt;/li&gt;
&lt;li&gt;tokens&lt;/li&gt;
&lt;li&gt;Figma information&lt;/li&gt;
&lt;li&gt;documentation&lt;/li&gt;
&lt;li&gt;accessibility notes&lt;/li&gt;
&lt;li&gt;usage guidance&lt;/li&gt;
&lt;li&gt;distribution metadata&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But these things don’t all have the same level of certainty.&lt;/p&gt;

&lt;p&gt;Some facts are mechanically verifiable.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a component slug exists&lt;/li&gt;
&lt;li&gt;a prop is documented&lt;/li&gt;
&lt;li&gt;a token is referenced&lt;/li&gt;
&lt;li&gt;a component is Beta or Stable&lt;/li&gt;
&lt;li&gt;a component is distributed through the registry&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Other things are design intent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;when Glass should be used&lt;/li&gt;
&lt;li&gt;whether a specific interaction feels right&lt;/li&gt;
&lt;li&gt;whether two surfaces are visually equivalent&lt;/li&gt;
&lt;li&gt;whether a Figma behavior should become a React API&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I eventually started treating these as separate layers.&lt;/p&gt;

&lt;p&gt;The canonical layer owns facts that can be checked.&lt;/p&gt;

&lt;p&gt;Design intent and usage guidance remain guidance.&lt;/p&gt;

&lt;p&gt;That distinction turned out to be important because otherwise metadata can become a second implementation that can drift just as easily as the code.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Generated files should stay boring
&lt;/h2&gt;

&lt;p&gt;Skrewww has several generated projections.&lt;/p&gt;

&lt;p&gt;The simplified flow looks like this:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
text
Canonical component sources
        ↓
Registry metadata
        ↓
Generated registry
Agent contracts
Consumer facts
Documentation projections
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>react</category>
      <category>showdev</category>
      <category>designsystem</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
