
AI design tools can produce a good-looking agency homepage in minutes, but a design is not a WordPress theme. This Seahawk Learn video tests the gap: the presenter designs a full web agency website in Lovable.dev, then prompts it to turn that design into a one-page WordPress theme, file by file, ready to zip and upload.
This article walks through the same process, shares the base prompt from the video, and covers what you should check before any AI-generated theme goes near a live site.
What the experiment is
Lovable.dev is an AI tool that generates website designs from text prompts. It does not output WordPress themes by default, so the video uses a second prompt that asks it to write the theme files one at a time. The aim is a one-page theme for a web agency that you can install through Appearance, Themes, Add New Theme, Upload Theme.
It is an experiment, not a recommended production workflow. Treat the result as a starting point to learn from or prototype with, and expect to review and fix the code.
The prompt used in the video
After designing the site, the presenter used this base prompt:
Create the full WordPress one-page theme file-by-file. Start with: style.css (with correct theme header), index.php (with basic structure and WordPress functions), functions.php (enqueue styles and scripts). Then continue with: optional header.php, footer.php, front-page.php if needed. Basic Customizer settings (if included). Once you generate all, I'll copy them into a folder and zip it for upload.
Asking for files one at a time keeps each response short enough to review, and it mirrors how a classic WordPress theme is structured.
How to turn the output into an installable theme
- Design the page first. Finish the layout, sections and copy in Lovable so the theme prompt has a stable design to work from.
- Run the theme prompt. Ask for the files in order, starting with style.css, index.php and functions.php.
- Create a theme folder. On your computer, make a folder named after the theme, such as my-agency-theme, and save each generated file inside it with the exact file names.
- Check the theme header. The top of style.css needs a comment block with at least a Theme Name. Without it, WordPress will not list the theme.
- Zip the folder. Zip the theme folder itself so the files sit inside one top-level folder in the archive.
- Upload it on a test site. In the dashboard go to Appearance, Themes, Add New Theme, Upload Theme, install and preview before activating.
What a classic theme needs at minimum
Knowing the basics lets you spot problems in generated code:
- style.css holds the theme header and your styles.
- index.php is the required fallback template.
- functions.php should load styles and scripts with the proper enqueue functions on the wp_enqueue_scripts hook, not by pasting link tags into the header.
- header.php and footer.php should call wp_head() and wp_footer(). Without them, plugins and WordPress itself cannot add their scripts and styles.
- front-page.php lets the theme use a custom homepage layout.
Checks before you trust an AI-generated theme
- Escaping and sanitising. Output such as titles, URLs and Customizer values should be escaped with the right functions. Missing escaping is a common source of security issues.
- Real WordPress content. A theme that hard-codes the homepage text means editors cannot change anything from the dashboard. Look for loops, menus and Customizer settings instead.
- Menus and widgets. Check that navigation is registered and editable under Appearance, Menus.
- Responsive behaviour. Test on real phone widths. Our notes on CSS Grid and Flexbox explain the layout tools a one-page design usually relies on.
- Debug output. Turn on WP_DEBUG on a staging site and watch for notices and errors.
- Accessibility and performance. Check headings, colour contrast, image sizes and page weight.
Where this approach makes sense
It is a quick way to prototype a one-page layout, or to learn how a theme is put together by reading the generated files. It is a poor fit for a site that needs ongoing editing by non-developers, WooCommerce, multiple templates or long-term maintenance, because generated themes rarely include everything a real project needs.
What to use instead
If the goal is a custom-looking WordPress site, you have sturdier open-source routes. A block theme with the Site Editor lets you design templates visually and edit them later. A maintained theme plus patterns or a page builder gets you a one-page layout without writing PHP; our guide to creating a one-page website in WordPress covers that route. If you already have a Lovable design, see how to convert a Lovable website into Elementor. For wider context on AI in the design workflow, read our roundup of AI tools for web design and the web design process.
Is an AI-built theme worth it?
As an experiment, yes: you learn quickly what a theme is made of and how much of a design survives the trip into WordPress. As a shortcut for a client or business site, only if you are ready to review the code, test thoroughly and keep it maintained. Always install on a staging site first.
FAQs
Can Lovable generate a WordPress theme?
Not directly, but as the video shows, you can prompt it to write the theme files one by one, such as style.css, index.php and functions.php, then copy them into a folder and zip it for upload.
What files does a WordPress theme need?
At minimum a classic theme needs style.css with a theme header and an index.php template. Most themes also include functions.php, header.php, footer.php and often front-page.php.
Is it safe to upload an AI-generated theme to a live site?
Not without review. Install it on a staging site first, check the code for proper escaping and enqueueing, turn on debugging and test on mobile before it goes anywhere near production.
How do I install a custom theme zip in WordPress?
Go to Appearance, Themes, Add New Theme, then Upload Theme. Choose your zip file, install it and preview it before activating.
What is a better option than an AI-generated theme?
For editable, maintainable sites, use a block theme with the Site Editor or a well-supported theme with patterns or a page builder. These are easier to update than hand-rolled generated code.
