# The Tailwind v4 visual editor

URL: https://xodia.ai/frameworks/tailwind
Description: A Tailwind v4 visual editor: style Tailwind CSS 4 sites from a panel that writes utility classes and your own @theme tokens, in React, Vite and HTML sites.
Last updated: 2026-11-12

Full

Style your Tailwind site from a visual panel and get the classes you would have written yourself. Xodia writes utility classes and your own theme tokens on Tailwind CSS 4, per screen size and state, in the components that render each element.

[Start free](https://app.xodia.ai/auth/sign-up?ref=frameworks-tailwind) [Every stack](https://xodia.ai/frameworks)

Free plan. No card needed.

What you edit visually

## A Style panel that writes classes

Pick a value in the Style panel and Xodia changes the class list on the element, in your source file. The canvas and the code update together.

- Classes, not inline styles; classes Xodia doesn't recognize stay as they are
- A value for phones, tablets or desktops, and for hover or focus, written with prefixes such as md: or hover:
- Your colors, fonts and spacing from the @theme block
- Sizes in rem, with fluid clamp() values for type and section spacing

Any framework Xodia edits

## The same panel on every stack

The Style panel works the same way on Vite + React and HTML sites on Vite, whenever the site uses Tailwind.

- Your AI follows the same rules

  Your AI uses Xodia's Tailwind skills: theme steps first, rem values, mobile first, so its changes look like the panel's.
- shadcn/ui components

  Sites with shadcn/ui keep their components as local source, and your AI edits their variants and theme tokens in place.
- Your class list, kept

  The panel changes only the classes for the property you set and keeps the rest of the class list as you wrote it.

Already on Tailwind 3?

## Xodia upgrades it when you import it

Import a Tailwind 3 site from GitHub or a ZIP and Xodia upgrades it to Tailwind 4 as part of the import, so the Style panel and Colours and fonts work on it straight away. Most sites upgrade this way, Lovable and Bolt sites included.

- Your theme moves into CSS

  Colours, fonts and sizes leave `tailwind.config` and go into an `@theme` block in your main stylesheet, where Colours and fonts edits them.
- Renamed classes, renamed for you

  Classes with new names in Tailwind 4, such as `shadow-sm` becoming `shadow-xs`, are changed in your files.
- Plugins come along

  The animation plugin shadcn/ui sites use is swapped for its Tailwind 4 version, and other plugins keep working.
- One change you can undo

  The upgrade is saved as one change you can undo, and your old code stays in your Git history.

If Xodia can't upgrade a site safely, it says so at import and shows how to upgrade it in your own repo first. [See the upgrade guide](https://xodia.ai/guides/upgrade-tailwind-3)

Versions and skills

## The versions it covers, and the skills your AI gets

When your AI works on the site, it loads Xodia's skills for this stack, written for the versions below.

- Supported versions

  Tailwind CSS 4, with theme tokens from @theme. Most Tailwind CSS 3 sites are upgraded to Tailwind 4 when you import them.
- Tailwind CSS skills

  Tailwind 4 theme tokens, class conventions and fluid steps.

  Written for: Tailwind CSS 4 (Xodia supports Tailwind 4 only).
- shadcn/ui skills

  Components kept as local source, cn() and cva() variants, and theme tokens in :root and .dark mapped to Tailwind.

  Written for: Projects set up with the shadcn CLI (version 4 and earlier) on Tailwind 4 (tokens mapped in @theme inline; Xodia supports Tailwind 4 only); Base UI, Radix or React Aria primitives.

Typical setup

## From your repo to your first edit

Import the repo from GitHub. Xodia checks the stack before it creates anything, then builds the site in your browser and opens the editor.

1. Import a Tailwind site from GitHub, or pick one of the 2 [starters](https://xodia.ai/start), all on Tailwind 4
2. Xodia detects the Tailwind version and your theme tokens
3. Select an element and set values in the Style panel
4. Push the change as a commit on a branch, and review the classes in the diff

Works with

## Your content and your host, as they are

Xodia detects where the content lives and where the site is hosted, and keeps both.

- Headless CMS Starter and up

  Sanity, Contentful, Storyblok and Prismic. Sanity: Edit entries in the Content tab: drafts to live, publish, unpublish and discard, Portable Text and the media library.
- Content in the repo

  Markdown, MDX, JSON and YAML files, Xodia collections and Decap.
- Hosts Starter and up

  Vercel, Netlify and Cloudflare connect to show the live address, deploys and build logs; GitHub Pages is detected. Your host keeps deploying the site, exactly as it does now.

Primary sources

## Official docs

Updated November 13, 2026

- [Installation, Tailwind CSS docs](https://tailwindcss.com/docs/installation/using-vite)
- [Theme variables, Tailwind CSS docs](https://tailwindcss.com/docs/theme)
- [Upgrade guide to v4, Tailwind CSS docs](https://tailwindcss.com/docs/upgrade-guide)

Questions

## Tailwind questions

**Which Tailwind versions work?**

Tailwind CSS 4. Most Tailwind CSS 3 sites are upgraded to Tailwind 4 when you import them. If Xodia can't upgrade yours safely, it shows how to run npx @tailwindcss/upgrade in your repo, then you import it again. See [Upgrade a Tailwind 3 site](https://xodia.ai/guides/upgrade-tailwind-3).

**Will the panel rewrite my classes?**

No. It changes only the classes for the property you set, and keeps the rest of the class list as you wrote it.

**Does it use my theme?**

Yes. The panel offers the colors, fonts and spacing from your @theme block, and the Colours and fonts panel edits them, with dark mode colors too.

**What does it cost?**

The Style panel is part of the visual editor on every plan. See [pricing](https://xodia.ai/pricing) for the rest.

Keep exploring

## Other stacks

- [Vite and React Your own React site, or the Blank site starter](https://xodia.ai/frameworks/vite-react)
- [HTML sites Plain .html pages built with Vite](https://xodia.ai/frameworks/html)
- [CSS, CSS Modules and Sass Class rules edited in your stylesheets](https://xodia.ai/frameworks/css)
- [Every stack What Xodia supports and what you can edit](https://xodia.ai/frameworks)

## Style your Tailwind site the way you see it.

[Start free](https://app.xodia.ai/auth/sign-up?ref=frameworks-tailwind-cta) [See pricing](https://xodia.ai/pricing)
