<?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: matt abrams</title>
    <description>The latest articles on DEV Community by matt abrams (@zuchka).</description>
    <link>https://dev.to/zuchka</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%2F2821141%2F65c2f958-fc70-4a7c-b702-30268149d1e8.jpeg</url>
      <title>DEV Community: matt abrams</title>
      <link>https://dev.to/zuchka</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zuchka"/>
    <language>en</language>
    <item>
      <title>Export Figma to CSS</title>
      <dc:creator>matt abrams</dc:creator>
      <pubDate>Wed, 12 Mar 2025 08:09:28 +0000</pubDate>
      <link>https://dev.to/builderio/export-figma-to-css-503g</link>
      <guid>https://dev.to/builderio/export-figma-to-css-503g</guid>
      <description>&lt;p&gt;Converting Figma designs into frontend code and CSS can sometimes feel less like precise engineering and more like a guessing game. A pixel here, a shade there—we try our best, but somehow, the results never look quite right—certainly not on the first few tries.&lt;/p&gt;

&lt;p&gt;Builder.io’s &lt;a href="https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more" rel="noopener noreferrer"&gt;Visual Copilot&lt;/a&gt; ends this tedious process. No more eyeballing measurements or rebuilding components by hand. Just pixel-perfect CSS that works across frameworks and follows best practices.&lt;/p&gt;

&lt;p&gt;This guide will show you how to generate CSS from your Figma designs. For this post, we’ll focus on vanilla CSS, but Visual Copilot can handle many different styling patterns and libraries.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Visual Copilot: AI-powered Figma to CSS plugin&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;At Builder.io, we’ve created Visual Copilot, an &lt;a href="https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more" rel="noopener noreferrer"&gt;AI—powered Figma—to—code toolchain&lt;/a&gt; that swiftly and accurately converts &lt;a href="https://www.builder.io/m/knowledge-center/design-to-code" rel="noopener noreferrer"&gt;designs to clean and responsive code&lt;/a&gt;. The plugin &lt;a href="https://www.builder.io/c/docs/generate-code#overview" rel="noopener noreferrer"&gt;supports several major styling solutions&lt;/a&gt;, including vanilla CSS, &lt;a href="https://www.builder.io/blog/figma-to-tailwind" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;, Emotion, and Styled Components. Even better, getting started is a breeze.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How to export Figma designs to CSS and React&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Exporting Figma designs to code with Visual Copilot is simple.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Launch the &lt;a href="https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more" rel="noopener noreferrer"&gt;Visual Copilot Figma plugin&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Select a layer in your Figma file.&lt;/li&gt;
&lt;li&gt;Click the &lt;strong&gt;Generate code&lt;/strong&gt; button.&lt;/li&gt;
&lt;li&gt;Copy the generated &lt;code&gt;npx&lt;/code&gt; code into your code editor.&lt;/li&gt;
&lt;li&gt;Answer the prompt. Let the code generate, then customize the code further in follow-up prompts. The results are inserted directly into your project.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Export an entire admin dashboard: Figma to CSS + React
&lt;/h3&gt;

&lt;p&gt;In this short video, we’ll generate the code for an entire Figma design of an admin dashboard. We’ll export it into React components and simple, vanilla CSS:&lt;/p&gt;



&lt;p&gt;Visual Copilot has done the lion’s share of turning this design into a functional UI. It nailed the color scheme, the typography, the sidebar, the header, and the stat cards. Even more impressive, the table is near pixel-perfect. Even the delete buttons in the table rows are working. So much automation can dramatically accelerate your team’s web development work and free up your designers. No more wasted hours writing boilerplate code and fiddling with CSS properties.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Automatically responsive CSS&lt;/strong&gt;
&lt;/h3&gt;



&lt;p&gt;Visual Copilot also handles many core design requirements. For instance, it intelligently resizes components for any device, removing the need to write responsive coding manually. Your design fluidly transforms as screen sizes change, ensuring a perfect display across all devices.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Extensive framework and library support&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;In addition to plain React and vanilla CSS, Visual Copilot also exports to most major frontend frameworks (&lt;a href="https://www.builder.io/blog/convert-figma-to-react-code" rel="noopener noreferrer"&gt;React&lt;/a&gt;, &lt;a href="https://www.builder.io/blog/figma-to-vue" rel="noopener noreferrer"&gt;Vue&lt;/a&gt;, &lt;a href="https://www.builder.io/blog/figma-to-svelte" rel="noopener noreferrer"&gt;Svelte&lt;/a&gt;, &lt;a href="https://www.builder.io/blog/figma-to-angular" rel="noopener noreferrer"&gt;Angular&lt;/a&gt;, Qwik, Solid) and many styling approaches (CSS modules, &lt;a href="https://www.builder.io/blog/figma-to-tailwind" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;, Emotion, Styled Components, and Styled JSX). Even Figma to HTML is supported. This extensive compatibility ensures you'll get production-ready code that integrates flawlessly with your existing tech stack.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Customizable CSS and code after Figma exports&lt;/strong&gt;
&lt;/h3&gt;



&lt;p&gt;While Visual Copilot will analyze your design and then analyze and match your tech stack, the customizations don’t end there. You can use its CLI prompts to tweak the final output further. Ask it to add accessibility, a dark mode, or match your file organization. The sky’s the limit.&lt;/p&gt;

&lt;p&gt;For instance, our original Figma design export made the &lt;code&gt;delete&lt;/code&gt; buttons inside the table functional, which is great. But it used the browser’s built-in &lt;code&gt;window.confirm&lt;/code&gt; feature, which doesn’t match our design. In the video above, we prompt Visual Copilot to replace &lt;code&gt;window.confirm&lt;/code&gt; with a custom component using our color scheme.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How Visual Copilot’s AI generates pixel perfect CSS&lt;/strong&gt;
&lt;/h2&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%2F2ve1l0demuxlpzzd4any.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%2F2ve1l0demuxlpzzd4any.png" alt="A flow chart with logos, with white arrows pointing from Figma, to Builder AI, to Mitosis, to initial code, to fine-tuned LLM, to cusomized code. The logos for the initial and customized code sections are HTML, React, Qwik, and Vue." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Visual Copilot runs through Builder AI, then a special compiler and a fine-tuned LLM. The Builder AI sees your designs and turns them into actual code (even without &lt;a href="https://www.builder.io/blog/figma-auto-layout" rel="noopener noreferrer"&gt;auto-layout&lt;/a&gt;). The compiler, called &lt;a href="https://www.builder.io/blog/mitosis-get-started" rel="noopener noreferrer"&gt;Mitosis&lt;/a&gt;, matches your framework and exports even cleaner code. The fine-tuned LLM improves the code by matching your style, structure, and patterns.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;It's time to skip the tedious back-and-forth between designers and web developers. &lt;a href="https://www.builder.io/" rel="noopener noreferrer"&gt;Builder.io&lt;/a&gt;'s Visual Copilot eliminates the frustration of near-miss implementations and endless CSS tweaking. Converting Figma designs should be fast and result in nothing less than flawless code. And now, with a few clicks, that's exactly what you'll get.&lt;/p&gt;

&lt;p&gt;For further reading on this topic, check out the following articles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.builder.io/blog/figma-to-tailwind" rel="noopener noreferrer"&gt;Figma to Tailwind CSS with Visual Copilot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.builder.io/blog/convert-figma-to-html" rel="noopener noreferrer"&gt;Figma to HTML with Visual Copilot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.builder.io/blog/convert-figma-to-react-code" rel="noopener noreferrer"&gt;Figma to React with Visual Copilot&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>css</category>
      <category>figmatocode</category>
      <category>programming</category>
    </item>
    <item>
      <title>Visual Copilot - The Best Figma to Code Plugin</title>
      <dc:creator>matt abrams</dc:creator>
      <pubDate>Wed, 26 Feb 2025 15:14:40 +0000</pubDate>
      <link>https://dev.to/builderio/visual-copilot-the-best-figma-to-code-plugin-1ah6</link>
      <guid>https://dev.to/builderio/visual-copilot-the-best-figma-to-code-plugin-1ah6</guid>
      <description>&lt;p&gt;Designers and developers have been playing a game of telephone for decades. Designers create beautiful mockups, developers interpret them, and somewhere along the way, things get lost in translation. It's like that childhood game where you whisper a message down a line of people, only to find out the last person heard something completely different.&lt;/p&gt;

&lt;p&gt;But what if we could skip the telephone game altogether? That's where Builder's &lt;a href="https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more" rel="noopener noreferrer"&gt;Visual Copilot&lt;/a&gt; comes in. In this article, we’ll show you how to convert a design file into a working, polished, production-ready UI with just one click.&lt;/p&gt;

&lt;h2&gt;
  
  
  Visual Copilot
&lt;/h2&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%2Fcdn.builder.io%2Fapi%2Fv1%2Fimage%2Fassets%252FYJIGb4i01jvw0SRdL5Bt%252F04975fc3fb49403089a20cfbe84fb075%3Fwidth%3D705" 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%2Fcdn.builder.io%2Fapi%2Fv1%2Fimage%2Fassets%252FYJIGb4i01jvw0SRdL5Bt%252F04975fc3fb49403089a20cfbe84fb075%3Fwidth%3D705" alt="A simple flow chart with logos, with white arrows pointing from Figma, to Builder AI, to Mitosis, to Initial code (logos being angular, qwik, react, and vue), to Fine-tuned LLM, to Customized code (with the same logos that were with the initial code)." width="705" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more" rel="noopener noreferrer"&gt;Visual Copilot&lt;/a&gt; is Builder.io’s AI-powered solution for seamlessly converting Figma designs into clean code. We’ve fine-tuned our in-house LLM to transform your designs into responsive code, components, and styling for any major front-end tech stack. It does all this in real-time and often with a single click.&lt;/p&gt;

&lt;h2&gt;
  
  
  Convert Figma designs to code
&lt;/h2&gt;

&lt;p&gt;Using Visual Copilot is intuitive and requires very little setup. To begin, make sure you’ve installed the plugin from the &lt;a href="https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more" rel="noopener noreferrer"&gt;Figma community&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  One-click export to code
&lt;/h3&gt;



&lt;p&gt;Inside Figma, select a frame or layer from a design that you wish to export. Then launch the Visual Copilot plugin and click the &lt;code&gt;Export to Code&lt;/code&gt; button. After a few moments, you will see a &lt;code&gt;Success!&lt;/code&gt; message and an &lt;code&gt;npx&lt;/code&gt; command appear inside the plugin. Copy the command to your clipboard and then open your code editor.&lt;/p&gt;

&lt;h3&gt;
  
  
  Generate Code in your IDE
&lt;/h3&gt;



&lt;p&gt;It’s best to run Visual Copilot’s &lt;code&gt;npx&lt;/code&gt; command inside your preferred IDE. This way it can automatically respect any AI rules you’ve added to your coding environment. Whether you prefer &lt;a href="https://www.builder.io/blog/figma-to-cursor" rel="noopener noreferrer"&gt;Cursor&lt;/a&gt;, &lt;a href="https://www.builder.io/blog/figma-to-windsurf" rel="noopener noreferrer"&gt;Windsurf&lt;/a&gt;, &lt;a href="https://www.builder.io/blog/cursor-vs-trae" rel="noopener noreferrer"&gt;Trae&lt;/a&gt;, good old &lt;a href="https://www.builder.io/blog/cursor-vs-github-copilot" rel="noopener noreferrer"&gt;VS Code&lt;/a&gt; or something else, Visual Copilot works with all of them.&lt;/p&gt;

&lt;p&gt;Open a terminal window and run that &lt;code&gt;npx&lt;/code&gt; command. A prompt will appear. Tell it what you want to build using plain English. Say something like "make a graph component. Use the &lt;a href="https://echarts.apache.org/en/index.html" rel="noopener noreferrer"&gt;&lt;code&gt;echarts&lt;/code&gt;&lt;/a&gt; library". And that’s it! Visual Copilot will check your project setup, create clean code from your exported Figma design, and drop it right into your files.&lt;/p&gt;

&lt;h3&gt;
  
  
  Automatic responsiveness
&lt;/h3&gt;



&lt;p&gt;Visual Copilot will also handle many core design requirements. For example, automatic responsiveness is included out of the box. This one feature can save your team many hours. No more fiddling with CSS to get that component working on all screen sizes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Framework integration
&lt;/h3&gt;

&lt;p&gt;Visual Copilot is also framework and library agnostic. The plugin exports generated code for any major frontend framework. These include &lt;a href="https://www.builder.io/blog/convert-figma-to-react-code" rel="noopener noreferrer"&gt;React&lt;/a&gt;, &lt;a href="https://www.builder.io/blog/figma-to-angular" rel="noopener noreferrer"&gt;Angular&lt;/a&gt;, &lt;a href="https://www.builder.io/blog/figma-to-svelte" rel="noopener noreferrer"&gt;Svelte&lt;/a&gt;, &lt;a href="https://www.builder.io/blog/figma-to-vue" rel="noopener noreferrer"&gt;Vue&lt;/a&gt;, Qwik, &lt;a href="https://www.builder.io/blog/convert-figma-to-html" rel="noopener noreferrer"&gt;pure HTML&lt;/a&gt; (that’s right, Astro fans 🚀), and more.&lt;/p&gt;

&lt;p&gt;The same goes for common styling libraries and design patterns. Using &lt;a href="https://www.builder.io/blog/figma-to-tailwind" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;? Or maybe you’re a Styled Components type of dev? All in on Emotion? No worries—Visual Copilot will adapt to them all.&lt;/p&gt;

&lt;h3&gt;
  
  
  Bring your own design system
&lt;/h3&gt;



&lt;p&gt;A true Figma-to-code solution is about more than turning designs into generated code - it’s about turning designs into &lt;em&gt;your&lt;/em&gt; code. Visual Copilot can interface with your existing component libraries and in-house design systems using its powerful &lt;a href="https://www.builder.io/c/docs/cli-mapping" rel="noopener noreferrer"&gt;component mapping&lt;/a&gt; feature.&lt;/p&gt;

&lt;p&gt;A clever CLI command helps you map your components to a design file’s “&lt;a href="https://help.figma.com/hc/en-us/articles/360038662654-Guide-to-components-in-Figma" rel="noopener noreferrer"&gt;F&lt;/a&gt;&lt;a href="https://www.builder.io/c/docs/figma-components" rel="noopener noreferrer"&gt;igma components&lt;/a&gt;” before you start your export. This way you avoid generating random components with every Figma export. Instead, you get accurate, on-brand translations that reuse your existing code and design systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Figma to Lovable: design to full stack apps
&lt;/h2&gt;



&lt;p&gt;Sometimes you don't need to fit a design into an existing app. Sometimes you want to build something new, fast. That's where &lt;a href="https://www.builder.io/blog/lovable-builder" rel="noopener noreferrer"&gt;Visual Copilot's Lovable integration&lt;/a&gt; shines. It turns your Figma designs into deployed and working code in minutes, not hours.&lt;/p&gt;

&lt;p&gt;You get React, Tailwind, and Vite for the frontend, plus Supabase for your database needs. Want to add features? Just tell Lovable's AI what you need in plain English. Everything syncs to GitHub, and soon you'll be able to pull in new Figma design changes automatically - perfect for those early days when your layout keeps changing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Figma best practices for design-to-code conversion
&lt;/h2&gt;

&lt;p&gt;When using the Visual Copilot Figma plugin, following these best practices can significantly improve the accuracy and efficiency of the conversion process:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Use auto layout&lt;/strong&gt;: Implement Figma's &lt;a href="https://www.builder.io/blog/figma-auto-layout" rel="noopener noreferrer"&gt;auto layout&lt;/a&gt; feature to organize elements into responsive hierarchies. This is the single most impactful action for ensuring a smooth import.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Define images explicitly&lt;/strong&gt;: For complex designs, use Figma's export feature to help the AI model recognize elements as images or icons.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Group background layers&lt;/strong&gt;: Combine layers that form background elements to simplify the structure and enhance export quality.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Minimize overlaps and intersections&lt;/strong&gt;: Align boxes only with related components and avoid unnecessary overlapping to prevent undesired results.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Avoid translucent effects&lt;/strong&gt;: Stick to fully opaque colors, as transparency can be challenging for AI to interpret accurately.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Size text boxes correctly&lt;/strong&gt;: Keep text bounding boxes snug to their content to avoid issues with extra whitespace or unexpected line breaks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consider design sizes&lt;/strong&gt;: Create designs that closely match real-world dimensions for practical and accurate results. Address any large-scale designs within the plugin or communicate with developers for optimal outcomes.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The old "telephone game" between designers and developers is finally over. Visual Copilot ends pixel-pushing, debugging CSS, and wasting time on basic DOM work. You get clean code that matches your design, works with your stack, and uses your components.&lt;/p&gt;

&lt;p&gt;Need a quick prototype? Use the Lovable integration. Working on a big app? Visual Copilot plus Component Mapping fits right in. It handles the boring stuff so you can build things that users love.&lt;/p&gt;

&lt;p&gt;The future of Figma-to-code is here, and it's simple. &lt;a href="https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more" rel="noopener noreferrer"&gt;Try Visual Copilot&lt;/a&gt; - you'll wonder how you ever lived without it.&lt;/p&gt;

&lt;p&gt;For continued reading, check out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.builder.io/blog/figma-to-cursor" rel="noopener noreferrer"&gt;Figma to Code with Cursor and Visual Copilot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.builder.io/blog/figma-to-windsurf" rel="noopener noreferrer"&gt;Figma to Code with Windsurf and Visual Copilot&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>figma</category>
      <category>programming</category>
      <category>design</category>
    </item>
  </channel>
</rss>
