<?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: Adri2-2</title>
    <description>The latest articles on DEV Community by Adri2-2 (@adri22).</description>
    <link>https://dev.to/adri22</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3949189%2F7578f533-ea82-408d-b663-43cd93e44086.png</url>
      <title>DEV Community: Adri2-2</title>
      <link>https://dev.to/adri22</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adri22"/>
    <language>en</language>
    <item>
      <title>I built a GitHub Action that blocks PRs when your Figma file is over budget</title>
      <dc:creator>Adri2-2</dc:creator>
      <pubDate>Sun, 24 May 2026 15:11:13 +0000</pubDate>
      <link>https://dev.to/adri22/i-built-a-github-action-that-blocks-prs-when-your-figma-file-is-over-budget-3oo6</link>
      <guid>https://dev.to/adri22/i-built-a-github-action-that-blocks-prs-when-your-figma-file-is-over-budget-3oo6</guid>
      <description>&lt;p&gt;Fixing a design decision after it ships costs roughly 100x more than &lt;br&gt;
catching it at the mockup stage. That ratio comes from Boehm (1981) &lt;br&gt;
and has been replicated since. The problem is not that teams ignore &lt;br&gt;
design quality, it's that nothing blocks a merge when the design is &lt;br&gt;
already over budget.&lt;/p&gt;



&lt;p&gt;Figcap is a GitHub Action. You add a Figma URL to your PR description. &lt;br&gt;
Figcap fetches the file, runs three checks, and exits with code 1 if &lt;br&gt;
any rule fails. GitHub blocks the merge and posts a comment listing &lt;br&gt;
each violation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1novtn93h92scanh9mp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1novtn93h92scanh9mp.png" alt="Figcap comment on a blocked PR" width="800" height="286"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Adri2-2/figcap@v1&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;figma-token&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.FIGMA_TOKEN }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the full setup. No config file required. All thresholds have &lt;br&gt;
defaults and can be overridden via inputs.&lt;/p&gt;




&lt;p&gt;Three rules ship by default.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Font pairs (max 3).&lt;/strong&gt; Each font family and weight combination is a &lt;br&gt;
separate network request. On a median mobile connection, each one adds &lt;br&gt;
150 to 400ms of render-blocking latency. Three pairs is enough for &lt;br&gt;
most design systems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Frame nesting depth (max 8).&lt;/strong&gt; Deep Figma frames produce deep DOM &lt;br&gt;
structures on export. Layout and Paint costs grow non-linearly past &lt;br&gt;
a certain depth. Eight levels covers real-world complexity without &lt;br&gt;
creating friction.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bitmap weight (max 500 KB estimated).&lt;/strong&gt; The check measures estimated &lt;br&gt;
transfer cost, not asset count. One 2 MB image fails. Twenty 20 KB &lt;br&gt;
icons pass. Network cost is the unit, not the number of files.&lt;/p&gt;




&lt;p&gt;Repo: &lt;a href="https://github.com/Adri2-2/figcap" rel="noopener noreferrer"&gt;https://github.com/Adri2-2/figcap&lt;/a&gt;&lt;br&gt;&lt;br&gt;
GitHub Marketplace: &lt;a href="https://github.com/marketplace/actions/figcap-figma-design-budget-linter" rel="noopener noreferrer"&gt;https://github.com/marketplace/actions/figcap-figma-design-budget-linter&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>devops</category>
      <category>figma</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
