How to export Figma to HTML 3 min read

If you’re wondering how to convert Figma to HTML without writing the code yourself, you’ve come to the right place. In this article, we’ll show you how to export your Figma designs as production-ready HTML in a few simple steps using Anima.
Anima lets you create high-fidelity code-based prototypes in Figma, Adobe XD, and Sketch, then export those prototypes as developer-friendly code in just a few clicks.
Going directly from Figma to HTML will allow you to create live web-based prototypes, deploy your own simple websites or landing pages, and hand developers clean code packages for the entire UI to speed up development.
So let’s get to it!
***Are you a visual learner? Check out our Figma to HTML YouTube tutorial.***
How to convert Figma designs to HTML
You can export a complete HTML code package or get individual component code from your Figma design. Here are two easy ways to get pixel-perfect HTML from Figma using Anima:
Option (1): Export an HTML code package directly from Figma
- Download and open the Anima for Figma plugin.
- Select the frames you want to export as HTML, and click “Preview in Browser” at the bottom of the plugin panel.
Entering Anima’s Browser Preview from Figma - Once you’ve confirmed that your browser preview matches your Figma design, click the “Get Code” button in the top right.
Getting code for a Figma frame in Anima’s Browser Preview - When the pop-up appears, click “Sync & Get Code,”which will send you to your synced project in the Anima web app.
Sync your Figma file to your Anima project and get code - In the ‘Export Options’ window that appears, select the “Zip File”option at the top (make sure you also select “Pure HTML”under ‘Code Framework‘ and “Auto Flex”under ‘Layout‘), then click the “Export”button at the bottom.
Exporting an HTML code package as a zip file from the Anima web app - When your download is complete, unzip the file from your browser’s download bar to view the contents.
What’s in the Code Package?

The downloaded Code Package saves on your computer as a zip file in your selected location. In this zip file, you can find all the files for your design (this includes the HTML, CSS, images, and fonts files). An HTML code package automatically generated by Anima

Once the files are unzipped, you can preview them locally in the browser by double-clicking the HTML file. You’ll be able to see all of your Smart Layers and interactions, just like the final product! Anima’s auto-generated HTML rendered in a live browser
Opening the files in a text editor will present to you a well-structured HTML and CSS code.
- For every designed screen you are provided with its HTML and CSS file.
- The screens with Breakpoints share the same HTML and CSS file.
Want to check out a sample Code Package? We thought you might be, click here to download!
Option (2): Get HTML for individual components
- Sync your design draft to your Anima project (Learn how to sync your design draft).
- Go to your synced project in the Anima web app and select the screen you want to get the code from.
Selecting a screen from a project in the Anima web app - Click the “Code” icon at the top to switch to code mode.
Opening Code Mode in the Anima web app - Select any component to instantly inspect and copy its associated HTML and CSS code.
View and copy the HTML code for individual components with Anima’s Code Mode
Дизайн из Figma в HTML/CSS за 15 минут

Сегодня я хочу рассказать вам как с помощью замечательного сервиса Locofy превратить свой дизайн в Figma в адаптивный HTML/CSS-сайт, который можно будет загрузить на хостинг. Используя этот инструмент, дизайнеры, владеющие базовыми навыками вёрстки, могут самостоятельно создавать сайты. Постараюсь максимально подробно описать процесс на практике.
Регистрация в сервисе Locofy
Переходим на сайт Locofy и нажимаем на кнопку Sign Up, чтобы зарегистрироваться. На момент написания статьи сервис находится в стадии бета-тестирования, и новым пользователям в течении 20 дней можно пользоваться всеми возможностями функционала. После 20 дней действие аккаунта можно продлить оставив отзыв разработчикам. Если есть проблемы с доступом к сайту, попробуйте воспользоваться VPN.

Заполняем форму, введя адрес электронной почты и пароль.

На электронную почту, указанную при регистрации должен прийти код подтверждения. Вводим код и переходим к следующему этапу.

Далее необходимо пройти небольшой опрос, касающийся специфики проекта. После опроса мы попадем на страницу, где будет предложено установить плагин для Figma. Нажимаем на кнопку Get Figma Plugin.

Попадаем на страницу плагина Locofy в Figma. Перед тем, как нажать кнопку Try it out, обязательно поставьте лайк разработчикам.

Попадаем в учебный проект плагина, тут можно ознакомиться с основными возможностями Locofy. Нам нужно сохранить плагин в список сохраненных плагинов, чтобы быстро его находить при работе со своими проектами. В открывшемся окошке Resources (Shift+I) на панели инструментов нажимаем на кнопку action menu (три точки) и сохраняем плагин.

Работа с плагином в Figma
Подготовка макета
Как работать с плагином я буду показывать на примере простого макета двух типичных секций сайта. Дизайн-макет из этой статьи можно получить по ссылке.

Пару слов о структуре дизайна. Чтобы было проще организовать работу по адаптации дизайна, нужно использовать Auto layout для группировки элементов. В данном примере макет будет использована концепция адаптивного дизайна. Т.е. будет использоваться контейнер для элементов, ширина которого будет фиксирована для разных диапазонов ширины экранов.

Выделяем фрейм с макетом и активируем плагин Locofy. Плагин попросит авторизоваться, в новой вкладке браузера откроется сайт Locofy, где нужно будет ввести свои учетные данные. После авторизации возвращаемся в Фигму.

Присваивание тегов элементам дизайна
Первым делом, всем элементам макета нужно проставить HTML-теги. Например, настроим, контейнер. Выделяем нужный элемент и присваиваем ему тег div.

Далее проставляем теги для остальных элементов: заголовков (h1-h3), текстовых блоков (p, span, div), картинок (img), кнопок (button) и т.д.

Работа над адаптивностью
Настроим, чтобы контейнер сайта менял ширину на разных диапазонах размеров экрана. В настройках плагина заданы несколько брейкпоинтов: 1200px, 768px и 428px. На диапазоне от 1200px размер контейнера устанавливаем в 1140px.

На диапазоне до 1200px размер контейнера устанавливаем в 720px.

На диапазоне до 768px размер контейнера устанавливаем в 408px.

На диапазоне до 428px размер контейнера устанавливаем в 340px.

Аналогичным образом можно настраивать изменение css-свойств при изменении размера экрана для других элементов. Если в функционале плагина нет какого-то css-свойства, то его можно прописать вручную.

Часто приходится сталкиваться с ситуацией когда на компьютерах блоки располагаются горизонтально, а на мобильных их нужно располагать вертикально. Для этого на мобильном диапазоне нужно сменить настройку направления в Auto layout.

Контролировать как макет перестраивается под разную ширину экрана можно в режиме Preview.

Настройка эффектов и взаимодействий
В плагине можно настроить анимацию появления элементов. Для этого выделяем элемент, на вкладке Styling & Layout находим раздел Pre-built Effects, выбираем необходимый эффект и настраиваем его.

На вкладке Actions можно настроить действия, которые будут происходить при клике на элемент.

Генерация кода и деплой
После завершения всех настроек нажимаем на кнопку View Code.

Далее выбираем настройку All Frames и нажимаем на кнопку View Code in Builder.

Сайт откроется в новой вкладке браузера в режиме Builder, где можно просмотреть HTML/CSS-код, добавить скрипты JS. Сайт можно посмотреть в режиме прототипа без выгрузки кода, ссылкой на прототип можно поделиться с другими пользователями. Чтобы скачать файлы с кодом сайта, необходимо нажать кнопку Export.

Также Locofy предоставляет возможность выполнить деплой сайта. Для этого нужно нажать на кнопку Deploy.

Далее нужно выбрать сервис, куда будем выгружать код, ввести токен и запустить деплой. Я использую сервис Vercel. Зарегистрироваться можно по этой ссылке. Как получить токен читайте здесь.

Спасибо за то, что дочитали статью о том как превратить дизайн в Figma в адаптивный HTML/CSS сайт до конца. Задавайте вопросы и обсуждайте статью в комментариях. Подписывайтесь на моё сообщество в ВК.
How To Get HTML Code From Figma?
The advancement of technology has affected consumer behavior to change over the years. Today, the way consumers conceive your brand depends on a lot more than just the quality of your products and services. And this has led businesses to opt for newer and innovative ways to increase the credibility of their brand, building an online website being one of them.

Photo from Unsplash by Valery Sysoev
Nowadays, brands recognize online websites as a powerful tool for increasing their sales and online presence. This want for an interactive and visually appealing website has created the need for a high-quality design prototyping tool. And that is where applications like Figma come in.
However, the process of creating a website is more than what meets the eye. It does not stop with just designing a prototype on an application. In fact, the steps that come afterward are what designers struggle with more. For instance, how do you convert design prototypes to HTML Code?
Well, not to worry because we have listed down all the possible ways you can convert your beautiful Figma designs to HTML Code and develop your unique website.
Table Of Contents
TLDR
- Figma is a popular web-based prototype design tool that allows you to collaborate with your team in real-time and create unique web designs catered to each client.
- You can generate HTML from Figma in order to turn your design prototypes into workable codes.
- You can convert Figma designs to HTML directly from the application or use third-party plugins and export tools.
What Is Figma?
Figma is a fan-favorite application for web designers around the globe. It is an interface graphics design application that allows a seamless design collaboration between you and your team free of charge.
With its unique features and design tools such as vector, Figma has quickly proven itself as one of the leading web-based design applications among website developers. It is an easy-to-use tool that provides designers with a unique user experience. But what makes Figma different from other design tools in the market?
Unlike other applications, Figma simplifies the entire design process by allowing developers to collaborate with their teams in real-time. And since it is a web-based design tool, there is no need for users to download or update any software or save their work consistently. It works directly on your web browser, meaning you can access your work while being both online and offline from any device, including Windows and Mac.
And if all of that was not enough already, Figma offers developers to work on up to 3 projects simultaneously with its free package deal. So, it is an ideal tool for anyone starting off new as a web designer.
From prototyping designs in real-time to wireframing websites, Figma does it all and more. It is like having all your favorite web-design tools incorporated into one. And that is why most developers incline towards Figma as their handy tool to craft websites.
Why Do You Need To Convert Figma To HTML
Now that we have established the perks that come with using Figma, we can move on to discussing one of the frequently asked questions by aspiring developers starting off with Figma for the first time. And that is, why do we need to convert Figma designs to code?
Well, for any new web designer or developer, in order to create a workable version of your web design, you need to export the file to HTML and CSS, from where you will be able to code. In other words, according to your requirements, you can use Figma to convert the structure of your design into HTML. This conversion from ideation to HTML allows you the flexibility to code a website that is appropriate for your business.
Once the HTML conversion gets done, you can opt for third-party companies to leverage the coding process or do the entire coding by hand. So, the conversion allows a smooth transition from Figma design to HTML so you can create Pixel-perfect high fidelity websites for your company.
How Can You Export HTML Code From Your Figma Design
Figma is known for its feature of allowing the design to HTML conversion. Here you can go three ways for the conversion process.
Convert HTML Directly from the Built-in Features of Figma
Let us start with the built-in options provided by the Figma team, Figma Inspect. This feature generates code directly from your design using your chosen method. So all that you have to do is to select your design, element by element, and copy them to convert to HTML.
With the help of this feature (that is available under the Can view tab), you can derive HTML directly from the Figma app without plugins. So if that is the case, then why do people opt for other options? First, it can be a time-consuming process. Apart from that, this feature does not allow developers to export SVG files to HTML. So, you have to rely on third-party plugins and export tools.
Convert HTML to Figma Using Third-Party Plugins
The Figma plugin library offers a wide spectrum of options for users ranging up to more than 450 extensions. Among these, we have listed down some of the notable ones developers can use.
HTML Generator
With the HTML Generator plugin by Figma, you can export your designs to HTML and CSS, element by element. And even though this process can be lengthy, it is reliable for being so simple as clicking on each design element and getting the required code for that one, with a corresponding CSS.
In other words, you can click on each element on your web design, and the HTML Generator will generate results according to the values you have selected, which in this case would be HTML. From there, you can copy the HTML version and save it with an HTML extension to create your web page. So if you are looking for a plugin option that will allow you to learn, explore, and build basic HTML webpages, then HTML Generator can be a good option.
HTML < > Figma
Figma to HTML plugin is definitely a convenient way of converting a design to code compared to HTML Generator. With this plugin, users can copy an entire layer instead of copying designs by each element and directly convert those design elements to site elements.
So how does this work? In order to optimize this plugin, you have to hit CMD+/ in Figma after installing the plugin and search the plugin name, and then you can copy an entire layer of design that you want to export.
So, HTML < > Figma can be a good option to learn conversion for new developers. That said, there are a few setbacks. This plugin does not fully support all media, CSS properties, and Latin words. Though this is a faster option, you do run the risk of losing some design elements during the conversion. So you will have to go back and fine-tune your code later.
teleportHQ
This Figma plugin allows you to copy any layer and generate code with just one click. It is a low-code and open-source generator. Once you have installed teleportHQ to your device, all you have to do is export the design components from your prototypes and paste them into the teleportHQ system.
From here, teleportHQ will generate HTML for the entire layer within minutes. However, this plugin does not support background blur, GIFS, scaling and rotation, and much more.
Convert HTML Using Figmafy
Apart from built-in apps and plugins, you can always opt for services to convert your Figma designs to HTML. Currently, there are services like FigmaFy in the market that can leverage the process of HTML conversion and create webpages for your company.
At FigmaFy we convert your designs into bug-free websites. As a development company, our main goal is to assist other businesses in outsourcing their web development tasks, regardless of the design tool they use. Our primary work involves taking designs from Figma or other design tools, extracting the necessary assets, and transforming them into pristine, error-free code. This code can range from basic HTML5 to comprehensive software or website.
Not just that, once the conversion gets done, we run multiple tests to ensure that everything runs smoothly. Thus you end up with highly responsive web pages.
Benefits of Figma to HTML Conversion
In today's world, a company's online presence hugely impacts its success. In fact, did you know that 97% of consumers search online every time they want to find a local product or service? That is why companies have adapted to marketing their brand through different mediums. But the one that is the most effective in expanding brand reach is a personal webpage.
A webpage paints a picture of what your brand stands for and allows customers to interact with your business. So, developers have so far come up with new and innovative ways to simplify the process of building these personalized web pages.
Main Takeaways
That said, HTML conversion is one of the friendly approaches to code your web designs. It provides an added convenience and allows you to customize your webpage better. And since these web pages are easier to read and clutter-free, they automatically perform better and rank higher on Search Engines.
On top of that, there are always services like FigmaFy to make the process even simpler. So what are you waiting for? Contact us today and get a free quote!
How to Export Your Figma Designs to HTML Using TeleportHQ

It allows them to create designs and prototypes for websites and apps on desktop, tablet, and even mobile devices.
If you’re a designer or working with one and you’re planning to create a high-fidelity website, we have the perfect solution for you.
You can now transform a website prototype into a live, fully functional website in a very straightforward way. TeleportHQ allows you to export your Figma designs to HTML and CSS code or directly into React, Vue, Next, Nuxt or Angular.
Let’s see how to convert Figma to HTML in just five easy steps.
1. Create Your Figma Designs
The very first step for this Figma convert to HTML process would be to create the designs you wish to include in your future website.
If you wonder how Figma can generate code, the answer is very simple, and we’ll look into the process using TeleportHQ.
2. Install Teleport Design to Code for Figma
To benefit from our Figma to HTML converter, you first have to install the plugin. So, once you’re on Figma, follow these steps: Right-click → Plugins → TeleportHQ Design to Code.
install and start
3. Export Your Figma Designs
Now let’s see how to turn Figma into code.
After you perform the first step, you’ll be able to select one or multiple frames that you wish to export from your Figma project.
Click on Export to TeleportHQ and convert your Figma designs to HTML. They will be automatically created in TeleportHQ’s platform.
export your figma design
Alternatively, you can add designs to an existing project by clicking Copy layers to clipboard, then paste the Figma code into your TeleportHQ project.
Our Figma to HTML or CSS converter allows you to perform this action as many times as you want, even after your website is live.

edit your designs
5. Edit Your Designs
With TeleportHQ’s features, you have complete control over your designs. So, after you convert Figma to HTML, you can start editing with ease and create custom components, or simply add pre-made elements from our library, such as hero sections, banners, pricing, stats, social bar, or testimonials.
Once you convert from Figma to HTML or CSS and start working on our platform, you can invite your team or other stakeholders to contribute to the project and assign them different permission levels like Viewer or Editor.
The awesome part is that TeleportHQ is a collaborative platform that allows up to ten people to work on the same project, so you’ll benefit from a very smooth process.
5. Preview and Publish
With our Figma to HTML converter plugin, it’s easy to finish your projects in no time. After you edit the designs to your liking, preview your future website to see if everything is exactly as you wish.
Once you’re satisfied with the result, you can publish your website via two options.
You can choose to publish it on a TeleportHQ subdomain, or you can deploy your website on your custom domain.
And just like that, you have your website after converting Figma prototype to HTML.
Wrapping Up
Now that you know how to export code from Figma, you’ll be able to create high-fidelity websites through a simple process.
Convert Figma to HTML online using our platform, and start designing your future projects.