Skip to content
AddHunt
Figma plugins

Design to HTML

Figma plugin that exports frames to HTML and CSS

Works with Figma

In short

Design to HTML is a Figma plugin that converts a selected frame into working HTML with plain CSS or Tailwind classes, keeping layout, colours, typography and fonts. It is for designers and front-end developers who want a faster hand-off from Figma to code.

What you get

  • Auto layout exported as flexbox
  • Semantic tags from layer names
  • Plain CSS or Tailwind output
  • Google fonts, fills, borders and shadows kept
  • Icons inlined as SVG, images as PNG
  • Single self-contained .html download

The details

Design to HTML takes a frame selected in Figma and returns HTML that renders the design, aiming to cut down the usual back-and-forth of a design hand-off.

Layout and structure

Auto layout settings, including direction, gap, padding, alignment and hug or fill sizing, are translated into flexbox. Frames without auto layout become children with absolute positioning. Layer names drive semantics: a frame named nav, footer or hero is exported as the matching HTML tag, and short text set at a large size becomes a heading, so no manual markup is needed.

Styling options

The export can use plain CSS, which produces an offline file that opens anywhere, or Tailwind utility classes ready to paste into a component. Google fonts are included through a link tag, and solid and gradient fills, corner radius, borders and shadows are carried over at their exact pixel values.

Assets and output

Vectors and icons are inlined as SVG, so icons made of several parts render as designed. Image fills are saved as PNG files in an images folder, with each image written only once. The result can be copied or downloaded as a single .html file that contains everything the page needs and opens in any browser without extra installs.

The plugin is developed by Abdulkader Safi, and the site includes a guide and a support page.

Alternatives to Design to HTML

Questions

Can the export use Tailwind?

Yes. The export can use plain CSS in an offline file or Tailwind utility classes ready for a component.

How are semantic tags chosen?

From layer names: frames called nav, footer or hero become those tags, and short large text becomes a heading.

What happens to images and icons?

Vectors and icons are inlined as SVG, while image fills are written as PNG files in an images folder.

More like this