Prompt to convert a Wix export to Tailwind CSS
This prompt asks an AI coding assistant to rebuild the styling of a WebExport copy of a Wix site with Tailwind utility classes. Wix CSS is large and position-heavy, so the assistant extracts colors and fonts first, converts one section at a time to flex or grid where it can, and keeps original markup where it cannot.
Last reviewed
Key facts
- Wix says standard sites cannot be hosted elsewhere, so the copy is a saved render.
- Older Wix Editor sites often position elements absolutely.
- Tailwind’s CLI turns your HTML and a small input CSS file into one stylesheet.
- Test status: Tailwind CSS steps tested on a real export (Tailwind CSS 4.3.5), Wix cleanup not yet tested.
The prompt
Paste this into your AI coding assistant with the unzipped export open, and replace the placeholders in square brackets.
You are helping me move a static export of a Wix site to Tailwind CSS.
CONTEXT
- ./exported-site is a WebExport download of my Wix site: HTML, CSS, JavaScript, fonts and images.
- Live site for comparison: [LIVE_URL]. Final domain: [DOMAIN]. Host: [HOST: Vercel, Netlify, Cloudflare Pages, Amazon S3 or Nginx].
TARGET: Tailwind CSS on the existing HTML
- Keep the HTML pages. Install tailwindcss and @tailwindcss/cli, and start src/input.css with @import "tailwindcss".
- Put the old colors, fonts and radii into an @theme block, then rewrite classes to utilities one component at a time.
- Keep the old stylesheet linked until a page matches the live site.
WIX-SPECIFIC CLEANUP
- Work from the rendered HTML and CSS. Older Wix Editor layouts often use absolute positioning, so convert one section at a time and compare.
- Inventory Wix features on every page: forms, bookings, store, members. Write the list to MIGRATION_NOTES.md before you change code.
- Replace forms with [FORM_ENDPOINT]. Do not rebuild bookings, store or members.
- Search for wixstatic.com and parastorage.com. Download or replace each hit, and report scripts you cannot replace.
RULES
- Keep the design and every URL path. List path changes in REDIRECTS.md.
- Do not invent content, prices or links. Report gaps in MIGRATION_NOTES.md.
- Build after each step and ask before deleting a script or stylesheet.
START
Inventory the folder, show me a plan, wait for my go-ahead, then convert the home page only.How to run it
- Work on a copy of the unzipped folder so you keep the original.
- Paste the prompt, approve the theme first, then one component or page at a time, building after each step.
What to expect from Wix to Tailwind CSS
Absolute positioning is the central problem. A Wix layout can look perfect at one width because each element has fixed coordinates, and a naive conversion produces a page that breaks at every other width. Ask the assistant to describe the intended layout of a section in words, then rebuild it with flex or grid, and compare at phone, tablet and desktop widths.
Where a section is too intricate to rebuild faithfully, keep its original markup and CSS and fence it off in one component. A mixed result that matches the live site is better than a clean one that does not.
Questions the assistant should ask you
- Which widths should match the live site: phone, tablet, desktop or all three?
- Which sections may keep their exported CSS inside one component?
- Do the Wix fonts load from Wix servers, and may they be replaced with local files?
Verify the result
Run these from the project folder after each batch. The last command lists files that still refer to Wix.
npx @tailwindcss/cli -i ./src/input.css -o ./dist/output.css
# files that still refer to the old platform
grep -rlE "wixstatic.com|parastorage.com" . --include="*.html" --include="*.css" --exclude-dir=node_modules | head- The CSS build finishes with no errors, and hover, focus and breakpoint styles match the live site.
- No page links the old platform stylesheet unless you chose to keep it.
- Confirm no request goes to wixstatic.com or parastorage.com in the network tab.
- Open every page at phone and desktop width.
What can go wrong
- Converting everything to flex at once changes spacing across the site. Work section by section.
- Overlapping elements, such as text on top of images, depend on coordinates and need a deliberate layout.
- Wix scripts still run on the page and reposition elements after load. Test with and without them.
Frequently asked questions
Is Tailwind a good fit for a Wix export?
It can be, because it gives you a clean base. Expect more manual work than with other platforms, since Wix layouts are built from positions.
Do I need to remove Wix scripts first?
Not first. Convert the layout, then test with the scripts removed to see what still depends on them.
What if a section will not match?
Keep its original markup and CSS in a single component. Ask the assistant to note it in the migration notes.
Where do forms go?
Wix forms post to Wix, so replace them using the forms prompt.
Official documentation
Free tools for this job
- Wix Site Downloader GuideInteractive guide explaining what you can export from Wix and how WebExport helps.
- No-Code Platform DetectorInstantly detect if a site is built with Webflow, Framer, Squarespace, Wix, or Shopify.
- No-Code Asset Path NormalizerRewrite CDN URLs to local relative paths for offline and self-hosted deployments.
- Redirect Map BuilderBuild an old-to-final redirect mapping from URL lists.
Start with the files
The prompt works on a WebExport download. Paste your public Wix URL into the export form and get a ZIP. The Free plan covers 1 site, 5 exports a month, 15 pages and 20 MB per export. Professional is a $9.99 one-time purchase with unlimited pages.