docs: Improve the Tailwind CSS page (#31681)
Namely, ensuring we mention the support for their Prettier plugins. Release Notes: - N/A
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Tailwind CSS
|
||||
|
||||
Tailwind CSS support is built into Zed.
|
||||
Zed has built-in support for Tailwind CSS autocomplete, linting, and hover previews.
|
||||
|
||||
- Language Server: [tailwindlabs/tailwindcss-intellisense](https://github.com/tailwindlabs/tailwindcss-intellisense)
|
||||
|
||||
@@ -22,3 +22,14 @@ Languages which can be used with Tailwind CSS in Zed:
|
||||
- [PHP](./php.md)
|
||||
- [Svelte](./svelte.md)
|
||||
- [Vue](./vue.md)
|
||||
|
||||
### Prettier Plugin
|
||||
|
||||
Zed supports Prettier out of the box, which means that if you have the [Tailwind CSS Prettier plugin](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) installed, adding it to your Prettier configuration will make it work automatically:
|
||||
|
||||
```json
|
||||
// .prettierrc
|
||||
{
|
||||
"plugins": ["prettier-plugin-tailwindcss"]
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user