Prompt to convert a Squarespace export to Tailwind CSS

Short answer

This prompt asks an AI coding assistant to replace the template CSS of a WebExport copy of a Squarespace site with Tailwind utility classes. The assistant keeps the saved pages, extracts a theme from the template styles, rewrites blocks and galleries with utilities, and removes Squarespace rules only when a page matches the live site.

Last reviewed

Key facts

  • Squarespace blocks and layouts use class names that begin with sqs-.
  • Tailwind’s CLI reads your HTML and writes a single CSS file.
  • Gallery scripts expect Squarespace markup, so galleries convert as a unit.
  • Test status: Tailwind CSS steps tested on a real export (Tailwind CSS 4.3.5), Squarespace 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.

Squarespace to Tailwind CSS
You are helping me move a static export of a Squarespace site to Tailwind CSS.

CONTEXT
- ./exported-site is a WebExport download of my Squarespace 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.

SQUARESPACE-SPECIFIC CLEANUP
- Classes with an sqs- prefix come from Squarespace blocks. Keep markup and classes together when you convert a block.
- Convert each gallery as one unit, markup and script together, and test it at phone width.
- Replace form, newsletter and store blocks. Link store pages to [STORE_URL].
- Search for squarespace-cdn.com and static1.squarespace.com. Download or replace each hit.
- If blog URLs contain dates, keep the same paths or list each change in REDIRECTS.md.

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

  1. Work on a copy of the unzipped folder so you keep the original.
  2. Paste the prompt, approve the theme first, then one component or page at a time, building after each step.

What to expect from Squarespace to Tailwind CSS

Squarespace template CSS is large because it covers every block type the template supports, and your pages use a small part of it. The conversion is a chance to drop the rest. Ask the assistant to list which sqs- classes each page actually uses, then rewrite those blocks with utilities and discard the unused rules.

Typography is the first win. Squarespace sites rely on a few fonts and a handful of size steps, which map neatly onto a Tailwind theme. After typography and color, tackle spacing and the grid, and leave galleries for last.

Questions the assistant should ask you

  • Which sqs- classes does each page really use?
  • Where do the template fonts load from, and may they be served from your own domain?
  • Should galleries be converted last, after everything else matches?

Verify the result

Run these from the project folder after each batch. The last command lists files that still refer to Squarespace.

terminal
npx @tailwindcss/cli -i ./src/input.css -o ./dist/output.css

# files that still refer to the old platform
grep -rlE "squarespace-cdn.com|static1.squarespace.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.
  • Open one dated blog URL from the old sitemap and confirm it answers with the right page or a 301.
  • Test each gallery at a phone-width window.

What can go wrong

  • Gallery layouts depend on scripts that read Squarespace’s own markup. Convert the markup and the script together or keep both as they are.
  • Removing a rule that a block still needs shows up only on a page you did not test. Check every page type.
  • Form and store blocks still post to Squarespace. This prompt does not fix that, so use the forms prompt.

Frequently asked questions

Will Tailwind make my Squarespace copy smaller?

It can, because the build includes only the utilities you use. Measure the CSS file before and after, since results depend on your template.

Do I need to rewrite every page?

No. Convert shared parts first, then the page types you have. Leave a page alone if it already looks right.

What about the blog layout?

Blog list and post pages share templates, so converting one of each usually covers them all. Check dated URLs separately with the SEO migration guide.

Is this safe to run on the live copy?

Work on a copy of the export folder and keep the original, so you can compare and roll back.

Official documentation

Free tools for this job

Start with the files

The prompt works on a WebExport download. Paste your public Squarespace 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.