How to Convert Figma to WordPress: An Agency Workflow

By Vitalii Omelchenko, founder of Codelibry. Last updated: November 2026.

Most guides on how to convert Figma to WordPress end with a plugin and a “publish” button. That works for a landing page. It does not work when an agency has to hand a site to a client, who then has to edit it, rank it and keep it fast for years.

This is the workflow we use at Codelibry for white-label projects. We convert Figma to WordPress as a custom theme, built with ACF flexible content, with AI doing the repetitive part and a 100+ rules to support that.

Three ways to convert Figma to WordPress

  1. Conversion plugins (UiChemy, Yotako, Anima and similar). Fast, good for prototypes and simple landing pages. Does not provide a pixel-perfect output.
  2. Page builders (Elementor, Bricks, Divi). Rebuild the design visually. Easy for clients to edit, heavier on code and speed and easy for clients to mess up.
  3. A custom theme. Hand-coded, used to be the slowest (before AI-assisted workflows, not is same or faster than other two methods). Best for performance, SEO and long-term control.

We use the third route on almost every project, and the rest of this article explains how it works.

Why a custom theme and not Elementor

Elementor is a good page builder with a lot of bad real-world examples and poorly built websites. On projects with strict tech SEO requirements like DOM depth limits or a page speed target such as 85+ on mobile, builder-based sites are not the best pick. In our experience Elementor sites often start around 60 on mobile, and with effort you get them to 75 by google page speed, when as a developer you know that you could do much better with a custom theme.

Performance is not something you fix with the performance or cache plugin. If the output is bad, no optimisation plugin will fix it. When you control the loading queue, use real images instead of background images where it matters, set fetch priority and serve different image sizes per screen, the score follows and goes into a green zone by google page speed. Most Elementor developers produce DOM-heavy layout, does not follow development best practices and that is why custom themes consistently beat them.

This is not a one-off result. Across all the projects we’ve built since we started as an agency in 2023, every custom theme has been faster than the comparable page-builder site. We launched about 60 projects this year alone.

Our own site, codelibry.com, is a large site with micro-interactions, many pages and a big CSS file. It scores 98 on mobile and 99-100 on desktop.

Custom code or a plugin? Our rule

Custom theme does not mean no plugins. Our rule is simple:

  • If it’s small, write it. Many plugins on the market can be replaced with one-line function in the theme. We write that function and skip the plugin.
  • If it’s complex, install the plugin. SEO, forms, multilingual, e-commerce, LMS, member directories with different views for logged-in and logged-out users. These have too many scenarios to rebuild and maintain. We install the plugin and customise it by following the developer’s documentation.
  • Never rebuild what a plugin already does. Clients don’t have a budget for reinventing a built-in feature.

When Elementor is the right call

We recommend Elementor to agencies that already work in it, and to clients who know the tool, build pages on the fly without Figma designs or developer involvement, and often come up with their own solutions. For them it works. For everyone else it’s an easier way to mess up a site. If you have Figma designs and care about speed, SEO or a long-lived site, go custom.

Why we keep custom code small

Most sites are handed to the owner with a maintenance plan that covers things like PHP upgrades, not a team with a retainer building new features. Less custom code to maintain means a healthier site two years later.

Step 1: Start with the Figma file

Everything starts in Figma. A good file contains more than page designs. It has a UI kit:

  • Buttons, with all states
  • Typography rules
  • Colors and other variables
  • Form elements and dropdowns
  • Cards
  • Menu items, header and footer
  • The grid

If you want a checklist, see our guide on how to create the UI kit for a website and how to build the brief for Figma to WP projects.

The Figma file has to be clean for AI too

There is one thing people get wrong about AI and Figma MCP: they assume AI will cope with a messy file. It won’t. A developer can usually find their way around a messy file. An MCP connector just pulls the data it finds, the spacing it can find, and often gets it wrong. Good naming, a clear structure, components and variables help AI as much as they help a human developer. There are no shortcuts here.

If the file is really bad, and the agency can’t get a fix from the client (many work with freelancers), our in-house designer fixes it. It is quicker to ask a designer to repair a file than to make a developer fight through it.

For animations, sliders and interactions, we’re adding a written description next to the design. That way the developer builds them as the designer and client meant.

Step 2: Set up the theme from our boilerplate

We never start from a blank theme. We use our own boilerplate: a theme structure with the required sections every project needs.

  1. Create a new Git repository.
  2. Copy the boilerplate and rename it to the project.
  3. Set up a local environment, an empty WordPress install at localhost/project-name.
  4. Start building. The theme lives on GitHub from the first day.

If you want to see how a starter theme can be prepared for AI work, we published the Claude-ready WordPress starter theme for agencies.

Step 3: Pull the Figma variables with MCP

We use a paid Figma account, the Figma MCP and an API token, connected to Claude. All Figma variables (colors, type, spacing) are pulled into the local project in one batch and written to the main stylesheet or a separate variables file.

Codelibry Chef: why AI needs rules

By default, AI and any Figma connector will produce some code. It will not be code your team can maintain. We needed HTML and CSS written in our naming conventions, with our approaches to responsive layouts, with every ACF field type handled the same way, and with every result checked.

So we built an internal tool called Codelibry Chef. It holds more than 100 rules (we call them recipes) that the AI follows strictly when it turns a Figma design into theme code. Since spring 2026 we have used it on 17 websites.

What it changed:

  • Build time. A homepage used to take us 28 to 40 hours. Now most pages are done in 2 business days, under 14 hours.
  • QA. Each page used to come back with 10 to 25 QA points. Now it’s 0 to 10. Last month two pages went through with our QA manager leaving one comment in Asana: no comments. We moved them straight to the client.

It did not start at 100. When we began this approach in spring 2026, we added rules constantly: how to handle responsive behaviour, how to treat each ACF field, how to check results. For a plain HTML page the flow is straightforward. With a custom WordPress theme the AI invents something new every time, and it gets many things wrong.

The one practical piece of advice we can give: extend the AI’s memory. Keep log files of what you’ve done, record every fix as a rule, and feed it back. Your system gets better with each project.

Where it still breaks: separate desktop and mobile designs

Recently we got a Figma file with the desktop and mobile versions designed as two separate sets of frames that didn’t match each other one-to-one. The AI struggled to build a layout where desktop and mobile were truly the same. It works much better when Figma has desktop-only designs, because our rules convert them to responsive on the fly. This is exactly the kind of case that sends us back to add a new rule, and it’s why we tell agencies: agree the responsive approach before design starts, not after.

Step 4: Components first, pages second

Before the header and footer, we build the UI kit in code: buttons, typography, grid, forms, dropdowns, cards. Then the header and footer, the two parts that repeat everywhere, and the default page template. Only then do we start the homepage.

Step 5: Model the content with ACF flexible content

Every section is a flexible content layout in ACF. The main skill is deciding where each piece of content lives. Our rules:

  • Repeater. One-off repeating content in a single place, for example a team section that appears only on the About page.
  • Global component. A section that repeats across many pages with the same data: testimonials, partner logos. Win a big client and you add the logo once in the admin, and it appears on every service page and blog page. On a site with hundreds of pages, that is one edit instead of hundreds.
  • Custom post type. Content that appears in several places in different forms, with one source of truth. Services are the classic example. Team members are another: if the About page shows a full bio, university and description, but other pages show only a photo, name and position, a team member CPT lets you pull different fields from the same record.

Sites change while they’re built. A design starts with five pages, then grows to six, and a repeater appears twice. That is when we convert it to a global component. If another section later needs a second set of data about the same person, that is the moment for a custom post type.

Other rules we apply to every layout:

  • A field for every image, link and text.
  • A WYSIWYG editor for text blocks, so editors can build headings, paragraphs, lists and links without touching the layout.
  • Compact layouts. If two items fit in one row, they go in one row, so the admin isn’t a long vertical list.
  • An anchor ID field on every section so any section can be linked to later.

Step 6: Automated QA, including pixel-perfect checks

In 2026 and 2027 we think QA agents and QA skills should be the cornerstone of every agency build.

We taught the AI to run a Pixel Perfect overlay over every page automatically. By the time a page is finished, it already matches the Figma design, and QA runs before a human gets involved. On simpler projects that leaves a couple of minor points. On larger, more complex layouts it shortens the QA phase significantly.

We also give away the base of this workflow. The free Codelibry QA skill covers the basic QA scenario for every project. Download it from GitHub, test it and adapt it to your own process.

The 50-point checklist before launch

Everything is built locally, pushed to staging and checked there. Before launch we run a 50-point pre-live checklist. It catches the small things that should never reach production but matter a lot to agencies and their clients: forms sending data, analytics installed, favicon present, high-resolution logo.

A developer rarely cares about a missing favicon. An agency’s client notices it immediately.

A few examples from the list:

  • Forms work and send data to the right inbox.
  • Analytics is installed and receiving data.
  • Favicon is added.
  • Inactive plugins are deactivated and deleted.
  • Only the plugins the site needs are on production.
  • All plugin and theme licenses are installed.

etc.

Step 7: SEO, speed, forms and redirects

  • Install an SEO plugin. Set titles, descriptions, canonicals and schema where relevant.
  • Connect the forms and test that they work. Forms are part of the UI kit.
  • For redesigns, set 301 redirects wherever the old URL can’t be matched.
  • Check PageSpeed Insights. Because of the custom theme structure and lean CSS, our projects usually score above 85 on mobile and above 95 on desktop.

Step 8: Handover that clients actually use

A site is only valuable if the content manager can run it. When a project ends, we record personalised videos showing how to log in, add and edit pages, add any post type, add users, and how our ACF flexible setup works.

Most projects also come with 12 months of post-launch support through a maintenance plan, including unlimited text consultations on how to add or edit things. That is how we make sure clients really use the admin panel we built.

Figma to WooCommerce

A WooCommerce site is a Figma-to-WordPress project with one big difference: the default templates rarely survive. On our WooCommerce projects the product page, and usually parts of the cart and checkout, get overridden to match the Figma design. We do it either at template level, or with functions and hooks that change the default markup. The result is the same: the store looks like the design, not like a stock theme.

ACF still plays a part. We use ACF fields to show extra data on product pages, so content managers can add the content that doesn’t fit WooCommerce’s standard fields.

This is where a custom theme pulls furthest ahead. Brands often want product pages that don’t look like product pages at all, more like landing pages. A builder or a stock theme fights you on that. A custom theme just builds it.

Our WooCommerce development service page covers the scope in more detail.

Working with agencies: white-label specifics

Every agency sells something different, and the real job in white-label work is to learn their patterns and blend into them. Some agencies have conversion rules built into their workflow (a button above the fold in the hero, partner logos that must link to the partner’s site). Others use the same premium plugin on every client site, for example one that pulls Google reviews daily. We build those into the way we work so they repeat across projects.

If you are an agency looking for a team that can do this, see our custom WordPress theme development service.

Vitalii Omelchenko
Founder at Codelibry and WordPress enthusiast. Helping digital agencies to protect their margins and do better at website delivery.Need help with wordpress builds? Book a call using the Contact page
our Blog

Explore our Latest Insights

Six WP connect plugins were backdoored and never shipped. The safety net did its job
News
November 24, 2026
Three malware crews, thirteen injections, one WordPress site — and they were deleting each other’s code
News
November 24, 2026
Upload2Shell: a fully updated WordPress site can still be exploitable through its own upload form
News
November 23, 2026
whatsapp icon