Livestream: Building landing pages with AI | 4/3

What are best AI tools? Take the State of AI survey

Builder logo
builder.io
Contact SalesGo to App
Builder logo
builder.io

Blog

Home

Resources

Blog

Forum

Github

Login

Signup

×

Visual CMS

Drag-and-drop visual editor and headless CMS for any tech stack

Theme Studio for Shopify

Build and optimize your Shopify-hosted storefront, no coding required

Resources

Blog

Get StartedLogin

‹ Back to blog

Design

How to make any design convert better with Builder.io

March 28, 2025

Written By Apoorva

If you're using Builder.io's Figma to code plugin but finding that your designs aren't converting as well as you'd hoped, the solution might lie in how you're structuring your Figma files. In this guide, I'll show you specific techniques and practical tips that will help you resolve common conversion challenges and get the most out of your Figma to code workflow.

Start with the smallest element

When building responsive, conversion-focused components, it's best to start from the bottom up. Take text elements for example - wrapping them in an auto layout frame with proper padding gives you instant responsive buttons.

Screenshot of Figma's auto layout panel showing a purple "Get started" CTA button with dimensions, padding and alignment options.

This approach works great for calls-to-action (CTAs) and other interactive elements. By using auto layout and setting constraints, you clearly define how elements inside should behave when resized. This solves the common issue of buttons breaking or text overflowing at different screen sizes.

A screenshot of Figma design with perfectly aligned text elements in a pricing page card with the help of constraint settings in auto layout

Aligning elements manually can be such a hassle. Thankfully, auto layout makes this process much simpler. Just select your elements and hit Shift+A to add auto layout. Use alignment, margin, and padding settings to perfect the layout.

The best part? Your layouts stay intact even when text content changes. This is crucial for A/B testing different copy variations in Builder.io without breaking your design.

When setting width constraints, consider:

  1. Fixed width for repeating components like product cards
  2. Hug contents for buttons and CTAs
  3. Fill container for text inside fixed width elements

This creates reusable, responsive components while teaching Builder.io your resizing preferences.

Builder.io landing page card component with nested auto layout feature highlighted. The screenshot also shows ‘auto’ spacing option used on primary and secondary buttons to arrange them at horizontal extremes of the frame.

Sometimes you need to group related elements together, like a product image and its description. Nested auto layouts let you create these associations while maintaining responsiveness. This approach helps translate your design intent into code with high fidelity, even as layouts adapt across screen sizes.

Pro tip: Switch space between elements to 'Auto' from the dropdown when you need to automatically distribute equal spacing between all elements within the frame. This makes your layouts even more resilient when converted to code.

You're probably familiar with vertical and horizontal auto layout. But there's a third option that's super handy - wrap.

Use wrap when elements need to switch between horizontal and vertical layouts at different screen sizes. Figma looks at your other constraints and figures out the best arrangement. This is perfect for creating responsive product grids or feature lists that adapt to various devices.

This might seem counterintuitive, but PNGs can sometimes work better than SVGs for responsive layouts, especially when dealing with complex graphics.

With SVGs, spacing between text and image elements is calculated based on one specific frame width. This can lead to funky looking layouts at other sizes.

Using PNGs that scale proportionally with screen width often gives cleaner results across breakpoints, ensuring your key visuals always look great.

Pretty much any arrangement of elements can benefit from auto layout. Product image next to description? Apply auto layout to it.

You can precisely control how images behave at different sizes. Try the new "Lock aspect ratio" feature to keep things looking crisp.

Use of ‘lock aspect ratio’ helps scale the pngs between min and max width specified created a perfectly responsive design that translates to code as intended.

Pro tip: Set min width/height to prevent images from shrinking too much on small screens. This ensures your product shots always look their best.

Screenshot depicting the use of ‘absolute positioning’ of an image with auto layout frame that predictably converts to code with the text elements of auto layout.

When I first started with auto layout, I got frustrated that I couldn't place elements freely. The strict rules made it impossible to create designs with overlapping elements.

Thankfully, Figma added absolute positioning. This lets you add elements to an auto layout frame without disrupting the existing layout. This is a game changer for creative designs like overlapping testimonial cards or floating CTA buttons.

Screenshot of avatars stacked ‘last on top’ with the help of ‘negative spacing’ applied between them using auto layout ‘distance between’ field

You can achieve some cool effects by playing with auto layout spacing. Try negative horizontal gaps to create overlapping layouts. You can also adjust the stacking order of elements under auto layout settings.

The key is to always start with auto layout. It gives you a flexible foundation to build on and makes it easier for Builder.io to create responsive, conversion-optimized pages.

Auto layout in Figma, paired with Builder.io, is a powerful combo for creating designs that both look great and convert well. By starting small, nesting layouts thoughtfully, and using features like wrap direction and absolute positioning, you can create designs that flex beautifully across all devices.

Want to see how these auto layout techniques can supercharge your Figma to code workflow? Check out this live demo from Builder Labs:

In this video, you'll see firsthand how to:

  • Make any design convert better using auto layout
  • Style and define images the best way possible
  • Work around Builder’s easy and precise mode for importing designs

Watch as we transform static designs into dynamic, conversion-focused components using the power of Figma's auto layout and Builder.io's Visual Copilot.

Share

Twitter
LinkedIn
Facebook
Hand written text that says "A drag and drop headless CMS?"

Introducing Visual Copilot:

A new AI model to turn Figma designs to high quality code using your components.

Try Visual CopilotGet a demo
Newsletter

Like our content?

Join Our Newsletter

Continue Reading
Design to Code7 MIN
Convert a Website to Figma Designs for Free
March 27, 2025
AI25 MIN
What is an AI Agent?
March 26, 2025
Design to Code8 MIN
Figma to Flutter: Convert designs to clean Flutter code
March 24, 2025