Back to Help Center

Documentation.

FigMail bridges the gap between design and email development. It reads the Auto Layout structure of your Figma frame and generates table-based HTML built to email-client rules: inline styles, Outlook fallbacks and columns that stack on mobile.

Key Capabilities

  • ✓ Auto Layout to HTML tables
  • ✓ Retina image support (@2x)
  • ✓ Outlook fallbacks (MSO conditional comments)
  • ✓ Columns that stack on mobile

Installation

To install FigMail directly from Figma:

  1. Open Figma and go to the Community tab, or press Shift + I to open Resources.
  2. Search for "FigMail".
  3. Click Run to start right away, or Save to add it to your plugins list.
Works in:
Design
FigJam
Slides

Note: FigMail reads the layers of the frame you select to build the email. Your sign-in and preferences are kept in Figma's local plugin storage.

Designer Guide

As a designer, you shouldn't have to wait for developers or learn HTML tables. FigMail lets you shape your email — spacing, typography, images and links — directly in Figma.

Direct export

Go from design to HTML without handoff delays or developer bottlenecks.

Layout control

Your Auto Layout settings become HTML table structures.

Image handling

Images are exported at 2x, compressed and hosted for you — or download them in a ZIP to host them yourself.

Smart Layer Naming

Layer names are sent to the AI together with the layout, so you can add short instructions in parentheses. No special keywords are needed — just describe what you want. The AI takes these hints into account, but they are suggestions, not guaranteed rules.

Layer name:Social Icons (keep in one row on mobile)

Asks the AI to keep these columns side by side on mobile instead of stacking them.

Layer name:Hero Section (center background image)

Asks the generator to center the background image of this frame.

Layer name:Product Grid (2 columns on mobile)

Asks for a 2-column grid on mobile instead of the default single column.

Complex Icons & Vectors

Sometimes an icon is made of many vector paths. To export it as a single crisp image:

  • 1Select the group or frame that contains the icon.
  • 2In the right sidebar, click + next to Export.
  • 3FigMail then exports the whole group as one image, so it looks exactly as designed.

Frames vs Groups

Always prefer Frames for layout structure. Groups made only of simple vectors are flattened into a single image. Frames with Auto Layout become HTML tables.

Hidden Layers

Layers with visibility turned off (eye icon) are ignored. Use them to keep drafts or alternative copy in your file without affecting the export.

Design Essentials

Typography & Web-Safe Fonts

Custom fonts (like Inter or SF Pro) often fall back to Times New Roman in Outlook and some other clients.

  • ✓FigMail automatically adds web-safe fallbacks (Arial/Helvetica).
  • •Use system fonts for body text to keep it readable everywhere.

Buttons via Auto Layout

Don't build buttons as "Rectangle + Text" groups.

  • ✓Use Auto Layout (Shift+A) on the text layer.
  • ✓Add the fill and corner radius directly to the frame. This gives the cleanest code. Note that Outlook shows button corners as square.

Shadows & Blur (Effects)

CSS box-shadow is not supported in Outlook.

  • !Avoid shadows on native elements like buttons.
  • •If a shadow is essential, export the whole element as an image.

Dark Mode & Transparency

Your email may be viewed in dark mode.

  • ✓Use transparent PNGs for logos and icons.
  • ✕Avoid black text on transparent backgrounds (it disappears in dark mode).

Mobile Layout Strategy

Think in columns. FigMail stacks columns vertically on mobile by default.

  • •Picture how your blocks will stack in a single line.

Optimal Dimensions

Keep your design width between 600px and 640px.

  • ✓The common standard width that fits desktop and mobile email clients.

Using FigMail

Once your design is ready, generating code is simple:

1
Select the top-level frame of your email design.
2
Run the FigMail plugin.
3
Click "Generate HTML" and wait for the generation to finish.
4
Preview the result, then copy the code, download the HTML or a ZIP archive, or open the email in the Blocks editor.

AI Features

Besides converting your design as it is, FigMail can do two more things during generation: translate the email and improve its layout.

Translate

Translate all the text in your email into another language while keeping the original design structure and formatting.

How it works

  1. 1Click the Translate button in the plugin.
  2. 2Choose the target language from the list.
  3. 3Click Generate HTML — the AI translates the text as it builds the email.

Supported Languages

ArabicChineseCzechDanishDutchFinnishFrenchGermanGreekItalianJapaneseKoreanNorwegianPolishPortugueseRomanianRussianSpanishSwedishTurkish

Don't see your language? Contact us and we'll consider adding it.

Tip: The selected language appears as a badge next to the Translate button. Click the X icon to clear it. Machine translation can make mistakes, so have a native speaker review important emails.

Improve Layout

Let the AI refine and polish your design beyond the exact Figma layout, while keeping the original content structure and intent.

How it works

Click the Improve Layout button (rocket icon) to turn this option on or off. When it's on, the AI is free to:

✓Refine spacing, padding and margins for a clearer visual hierarchy
✓Adjust typography with better font sizes and line heights
✓Improve color contrast and visual balance
✓Improve button styles with better padding and borders
✓Add subtle shadows, borders or decorative elements
✓Apply email design best practices for readability

When to use: Use it when your design is a rough draft or when you want the AI to add a professional polish to your email.

When to avoid: If you need the HTML to match your Figma design as closely as possible, keep this option off.

Combining Features

You can use Translate and Improve Layout together. For example, translate your email into Spanish and let the AI polish the design — all in a single generation.

Result Preview

When generation finishes, you'll see the result screen, where you can preview, compare and export your email HTML.

Preview Modes

Desktop View

Preview your email at 800px wide, a typical desktop viewport.

Mobile View

Check responsive behavior at 425px wide — see how columns stack and text reflows.

Light Mode

The standard light preview — how most recipients will see your email.

Dark Mode

An approximate dark mode preview: a Gmail-style color inversion that shows whether your text and images stay readable. Each email client applies its own dark mode rules, so results may vary.

Visual Comparison

Below the preview, a side-by-side comparison lets you check the generated HTML against your original Figma design.

✓Move your cursor sideways — the divider follows it and reveals more of the design or the HTML
✓Move your cursor vertically to scroll through long emails
✓Labels in the top corners show which side is the design and which is the HTML

Export Actions

At the bottom of the result screen, you'll find four actions:

Copy Code

Copies the complete HTML to your clipboard. Paste it straight into your ESP's code editor.

Download HTML

Downloads a single .html file. Images are linked from FigMail's CDN.

Download Archive

Downloads a ZIP file with the HTML and all the images. Use it if you want to host the images on your own server.

Open in Blocks Editor

Opens the email in Blocks, a visual email editor, so you can keep editing it there.

Tip: Press ESC to go back to the History panel and view your other generations.

Generation History

FigMail keeps a history of your generations, so you can come back to a previous email and export it again.

Accessing History

Click the clock icon in the plugin header to open the History panel. It slides in from the right and lists your past generations.

Preview Thumbnails

Each entry shows a thumbnail of the original Figma design, so you can spot it quickly.

Frame Names

The name of the Figma frame is displayed to help you find a specific email.

Timestamps

See when each generation was created — today's items show only the time, older ones show the full date.

Infinite Scroll

Scroll down to see more — older generations load automatically as you reach the bottom.

Status Indicators

Each generation shows a status badge with its current state:

CompletedGeneration finished successfully — click to view and export
Processing 45%Generation in progress — click to watch its progress live
QueuedWaiting in the queue — processing will start shortly
FailedGeneration ran into an error — try generating again

Resume In-Progress Generations

If you close the plugin while a generation is running, don't worry. Reopen the plugin and click the processing item in History to keep watching its progress. The generation continues on the server whether or not the plugin is open.

Code & Export

FigMail generates clean, well-structured HTML that follows email development best practices. The code is designed to be readable, maintainable and easy to extend.

Clear structure

Logical table nesting with a clear hierarchy.

Inline styles

Core styles sit on each element, so the email holds up in clients that strip CSS.

Outlook-safe

MSO conditional comments, ghost tables and bgcolor fallbacks for Outlook.

Mobile-ready

Media queries stack columns on small screens.

output.html
Loading...

Code Structure

✓

Table-based layout

Nested tables for Outlook compatibility

✓

Inline CSS

Core styles applied directly to elements

✓

Outlook fallbacks

Conditional comments, ghost tables and solid-color fallbacks for gradients

✓

Media queries

Responsive breakpoints in embedded styles

ESP Integration

The generated HTML is standard email HTML, so you can use it with any email service provider. Here's how:

Mailchimp

Paste it into the code editor under "Edit with HTML"

Klaviyo

Import it via Templates → Create from HTML

SendGrid

Use it in Dynamic Templates or Marketing Campaigns

Any other ESP

Paste or import the HTML wherever custom code is accepted

Customization

Merge Tags

Replace placeholder text with your ESP's personalization syntax:

{{first_name}}*|FNAME|*${contact.firstName}

Tracking Pixels

Add your analytics pixel before the closing </body> tag. Most ESPs add it automatically.

Conditional Logic

Wrap sections in your ESP's conditional syntax to show or hide content based on subscriber data.

What's in the Export

ItemDescription
ImagesExported at 2x and hosted on FigMail's CDN. Download the archive if you want to host them yourself.
Web FontsGoogle Fonts are linked in the document head, with web-safe fallbacks for clients that ignore them, such as Outlook.
PreheaderHidden preview text that inboxes show next to the subject line.

Troubleshooting

Why might the result differ from the design?

Email clients support far less CSS than web browsers. Some Figma effects (shadows, blur, blend modes) cannot be reproduced 1:1 in email HTML.

In addition, FigMail uses an AI engine to generate the code. Differences can come from:

  • Complex layout structure: deeply nested frames or ambiguous positioning.
  • Design recommendations: not following the Best Practices.
  • AI interpretation: occasional processing errors or "hallucinations" by the model.

If you run into significant issues, try simplifying your layout structure (use Auto Layout) or review the Designer Guide above.

Images aren't appearing?

Make sure your images are inside the selected frame. If you host the images yourself, check that their URLs are publicly accessible.

Layout breaks in Outlook?

Outlook for Windows uses Word's rendering engine. Avoid overlapping layers and negative margins, and stick to simple Auto Layout. Rounded button corners appear square in Outlook.

Text looks different?

Email clients often override font styles, and many ignore web fonts. FigMail always adds a web-safe fallback (such as Arial or Helvetica), so the text stays readable when a custom font fails to load.

Ready to ship better emails?

Design in Figma, generate production-ready HTML with FigMail, and send it from the email platform you already use.