> For the complete documentation index, see [llms.txt](https://docs.webstudio.is/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.webstudio.is/university/foundations/copy-paste/html-with-tailwind.md).

# HTML with Tailwind

Paste HTML with Tailwind CSS classes and convert utilities into Webstudio styles.

You can paste HTML with Tailwind CSS classes into Webstudio and convert the utility classes into native Webstudio styles.

For general Tailwind HTML, use the **Paste HTML with Tailwind classes** command:

1. Copy HTML containing Tailwind classes, such as `<div class="flex items-center gap-4 p-6 bg-white rounded-lg">`
2. Open [Commands & search](https://docs.webstudio.is/university/foundations/commands-and-search.md) with `⌘ + K` (`Ctrl + K` on Windows)
3. Search for **Paste HTML with Tailwind classes**
4. Run the command

<figure><picture><source srcset="https://330243581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTep4EGj6hSC54ozHujyK%2Fuploads%2Fgit-blob-f853735c0b19545ddc1abd9ca2c2a2ad8bb1e359%2Fpaste-html-tailwind-command-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://330243581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTep4EGj6hSC54ozHujyK%2Fuploads%2Fgit-blob-74340f9e176b2060dbbec81af840edbfbe494863%2Fpaste-html-tailwind-command-light.png?alt=media" alt="Commands search showing Paste HTML with Tailwind classes" width="500"></picture><figcaption><p>Paste HTML with Tailwind classes command</p></figcaption></figure>

HTML/Tailwind output copied from [Inception](https://docs.webstudio.is/university/inception.md#copy-htmltailwind) can also be pasted directly into the Builder.

If the pasted HTML references image URLs, Webstudio uploads those images into [Assets](https://docs.webstudio.is/university/foundations/assets.md) and rewrites the pasted image instances to use the uploaded assets.

## Related

* [HTML with CSS](https://docs.webstudio.is/university/foundations/copy-paste/html-with-css.md) – Paste HTML containing `<style>` blocks
* [Referenced images](https://docs.webstudio.is/university/foundations/copy-paste/images.md) – Understand image handling during paste
* [Commands & search](https://docs.webstudio.is/university/foundations/commands-and-search.md) – Learn how to run commands from the keyboard
* [Inception](https://docs.webstudio.is/university/inception.md#copy-htmltailwind) – Copy HTML/Tailwind output from Inception


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.webstudio.is/university/foundations/copy-paste/html-with-tailwind.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
