Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Document Tailwind CSS language server configuration (#37970)

David Matter59502289e7be
diff --git a/docs/src/languages/tailwindcss.md b/docs/src/languages/tailwindcss.md
index bf15829b4f6..83b01774020 100644
--- a/docs/src/languages/tailwindcss.md
+++ b/docs/src/languages/tailwindcss.md
@@ -6,9 +6,21 @@ Zed has built-in support for Tailwind CSS autocomplete, linting, and hover previ
## Configuration
-<!--
-TBD: Document Tailwind CSS Configuration
--->
+To configure the Tailwind CSS language server, refer [to the extension settings](https://github.com/tailwindlabs/tailwindcss-intellisense?tab=readme-ov-file#extension-settings) and add them to the `lsp` section of your `settings.json`:
+
+```jsonc
+{
+ "lsp": {
+ "tailwindcss-language-server": {
+ "settings": {
+ "experimental": {
+ "classRegex": ["[cls|className]\\s\\:\\=\\s\"([^\"]*)"],
+ },
+ },
+ },
+ },
+}
+```
Languages which can be used with Tailwind CSS in Zed: