Capítulo 5 de 29
Tailwind's custom CSS syntax (@theme, @variant, @source, etc.) needs editor tooling to avoid false lint errors and to get autocomplete/hover previews — the official IntelliSense extension covers VS Code, Cursor, and JetBrains IDEs, with built-in support in Zed.
@theme/@variant/@source aren't standard CSS, so strict editors may flag them — the fix is installing Tailwind-aware tooling rather than disabling the rules blindly (only disable native CSS validation if the editor has no Tailwind-specific mode at all).text-white px-4 sm:px-8 py-2 sm:py-3 bg-sky-700 hover:bg-sky-800 into a consistent canonical order) — works anywhere Prettier runs (editor, CI, CLI), independent of which editor extension is used.| Editor | Tailwind support |
|---|---|
| VS Code | Official "Tailwind CSS IntelliSense" extension (autocomplete, lint, hover preview, syntax highlighting) |
| Cursor | Same VS Code extension works out of the box (VS Code-extension compatible) |
| Zed | Built-in, no extension needed |
| JetBrains (WebStorm, PhpStorm, ...) | Built-in intelligent completions |
| Any (via Prettier) | Official prettier-plugin-tailwindcss sorts classes into recommended order |
@theme/@variant/@source is real — it's usually just the editor not recognizing Tailwind's syntax.@theme, @utility, @custom-variant, @variant) are documented there.@source syntax highlighting/autocomplete depends on the same IntelliSense tooling.