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:
- Open Figma and go to the Community tab, or press
Shift + Ito open Resources. - Search for "FigMail".
- Click Run to start right away, or Save to add it to your plugins list.
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.
Links & URLs
You can turn any layer (frame, group, rectangle, image) into a clickable link without adding a separate text layer.
Add the URL to the layer name. FigMail detects the https:// pattern and wraps the element in a link.
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.
Asks the AI to keep these columns side by side on mobile instead of stacking them.
Asks the generator to center the background image of this frame.
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:
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
- 1Click the Translate button in the plugin.
- 2Choose the target language from the list.
- 3Click Generate HTML — the AI translates the text as it builds the email.
Supported Languages
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:
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.
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:
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.
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
| Item | Description |
|---|---|
| Images | Exported at 2x and hosted on FigMail's CDN. Download the archive if you want to host them yourself. |
| Web Fonts | Google Fonts are linked in the document head, with web-safe fallbacks for clients that ignore them, such as Outlook. |
| Preheader | Hidden 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.