Tailwind CSS for Visual Studio
Bring IntelliSense, linting, class sorting, build tools, and more to Tailwind CSS in Visual Studio 2026 and 2022.
Download from the Visual Studio Marketplace · Getting Started Guide · Changelog ❤️ Support This ProjectThis extension is built and maintained solo, in my free time, for the whole VS community. If it's saved you time or made your workflow better, please consider sponsoring development on GitHub — even a small donation helps keep it going and directly funds new features and bug fixes. Table of ContentsPrerequisitesThis extension uses To check whether If you don't have SetupThe extension activates automatically when:
If the config file isn't detected automatically, right-click it in Solution Explorer and select Add Tailwind CSS configuration file. FeaturesIntelliSenseGet Tailwind class suggestions in Razor, HTML, and CSS files, including custom theme values. Color previews and CSS descriptions help you choose the right utility:
LintingAutomatically flags:
Class SortingSort Tailwind classes:
With Tailwind CSS v4.2 or later, the Tools menu also offers Canonicalize Tailwind classes commands to replace utilities with their recommended equivalents. You can configure canonicalization to run on save or build in the extension options. Build IntegrationThe extension can build your Tailwind CSS output automatically on project build, or manually from the Build menu.
To configure files, right-click them in Solution Explorer. Use Add Tailwind CSS configuration file for your configuration, Add Tailwind CSS input file for your input CSS, and Set as Tailwind CSS output file for the output. Project-specific settings are saved in a NPM IntegrationTo set up a project, right-click it in Solution Explorer and choose Set up Tailwind CSS > Set up and install in project. You can also use an existing global NPM installation:
Using the Tailwind CLI?
Want to use a custom build script?
Extension OptionsGlobal extension settings live under:
See Getting Started – Extension Configuration for details. TroubleshootingBuild IssuesIf your CSS isn't updating, check the Build output window for Tailwind errors. Extension IssuesIf the extension crashes or behaves unexpectedly, check the Extensions output window for detailed logs. Support & FeedbackFound a bug or have a feature request? Open an issue on GitHub. Enjoying the extension? A rating on the Marketplace listing or a donation goes a long way toward keeping it maintained. 🙏 DisclaimerThis is not an official Tailwind CSS extension and has no affiliation with Tailwind Labs Inc. |
