# The Tailwind 3 upgrade

URL: https://docs.xodia.ai/import/tailwind-upgrade
Last updated: 2026-11-20

Xodia's Style panel and Colours and fonts are built on Tailwind CSS 4. When you import a Tailwind 3 site from GitHub or a ZIP, Xodia upgrades most of them to Tailwind 4 as part of the import, in one change you can undo.

## Which sites upgrade on import

A site upgrades on import when it builds with Vite and has a tailwind.config file Xodia can read. That covers most sites made with Lovable, Bolt and Replit, shadcn/ui setups included.

A site Xodia can't upgrade safely is refused at import with the reason, for example a config with a heavy plugin setup, or a site that doesn't build with Vite. Upgrade those yourself first: see [Upgrade it yourself](https://docs.xodia.ai/import/tailwind-upgrade#yourself).

## What the upgrade changes

- Your theme's colours, fonts, sizes and other values move from tailwind.config into your main stylesheet, where Colours and fonts edits them
- The old Tailwind lines at the top of your stylesheet become Tailwind 4's single import
- Classes with new names in Tailwind 4 are renamed in your files, such as shadow-sm becoming shadow-xs, so they keep their look
- The animation plugin shadcn/ui sites use is swapped for its Tailwind 4 version, and other plugins are loaded the Tailwind 4 way
- Tailwind's Vite plugin replaces the PostCSS setup, and package.json gets the Tailwind 4 packages

Your pages, content and components stay as they are. Once on Tailwind 4, every class and theme value edits in [the Tailwind v4 visual editor](https://xodia.ai/frameworks/tailwind).

## While it runs

Right after the project first opens, the canvas says Getting your site ready. It takes a moment, and the preview opens when it's done, with Your site is ready.

### Your site needs a small fix first

If the upgrade finds something it shouldn't change on its own, it stops before writing anything and lists the file and line of each place. Fix those places, or ask your AI to, and start the upgrade again.

### Getting your site ready stopped

Choose Try again. If it stops again, upgrade the site yourself.

## Check it after the upgrade

Xodia compares each page with your live site on phone, tablet and desktop. Open the pages that need a look and compare. A class your code builds from pieces of text, and a few defaults that changed in Tailwind 4, such as a plain ring's width or a border's default colour, are the usual places to check. See [Compare with your live site](https://docs.xodia.ai/import/live-site-match).

_Picture: Our own studio's site, zuzostudio.com, made fully editable and open in Xodia, with the card Compared with your live site at the top right: Live site zuzostudio.com, Looks like your live site: 96.6%, Compare again and Use another address._

## Undo the upgrade

The upgrade is saved as one change. To go back, restore the save before it in Project settings, Activity. On a GitHub project, your Tailwind 3 code also stays in the repository's history. See [Work together on a site](https://docs.xodia.ai/workspace/collaboration).

## Upgrade it yourself

For a site Xodia refuses, run Tailwind's own upgrade tool in your copy of the repository, on a new branch. It needs Node 20 or newer.

Terminal:

```
npx @tailwindcss/upgrade
```

Then build the site, compare your key pages with the live site, push the branch and import it again. The [upgrade guide](https://xodia.ai/guides/upgrade-tailwind-3) lists what the tool can miss, and a prompt for your AI to do the whole job.

> **Note:** The error for a site Xodia can't upgrade is `tailwind3_unsupported`. See [Troubleshooting](https://docs.xodia.ai/troubleshooting#tailwind-3).
