Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Tailwind CSS for Visual Studio
Tailwind CSS for Visual Studio

Tailwind CSS for Visual Studio

Theron Wang

|
27,113 installs
| (22) | Free
Unofficial extension for Tailwind CSS IntelliSense, linting, sorting, and more in Visual Studio 2026 and 2022.
Download

Tailwind CSS for Visual Studio

version installs

Bring IntelliSense, linting, class sorting, build tools, and more to Tailwind CSS in Visual Studio 2026 and 2022.

Note: This extension best supports Tailwind CSS v3+.

Download from the Visual Studio Marketplace · Getting Started Guide · Changelog


❤️ Support This Project

This 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 Contents

  • Prerequisites
  • Setup
  • Features
    • IntelliSense
    • Linting
    • Class Sorting
    • Build Integration
    • NPM Integration
    • Extension Options
  • Troubleshooting
  • Support & Feedback
  • Disclaimer

Prerequisites

This extension uses npm and node, so you should have them installed.

To check whether npm is installed, run npm -v in the terminal.

If you don't have npm installed, follow the official install guide from the npm docs.

Setup

The extension activates automatically when:

  • Your solution contains a tailwind.config.{js,cjs,mjs,ts,cts,mts} file (Tailwind v3), or
  • You're using Tailwind v4 and importing it in a .css file with @import "tailwindcss"

If the config file isn't detected automatically, right-click it in Solution Explorer and select Set as configuration file.

Features

IntelliSense

Get Tailwind class suggestions in Razor, HTML, and CSS files:

IntelliSense suggesting Tailwind classes in a Razor file

Linting

Automatically flags:

  • Conflicting classes
  • Invalid theme(), screen(), or @tailwind usage

Note: Visual Studio may still flag some Tailwind features like @apply as errors — extensions can't override these built-in warnings.

Linter flagging conflicting Tailwind classes

Class Sorting

Sort Tailwind classes:

  • Automatically on save or build
  • Manually from the Tools menu

Classes being automatically sorted on save

Manual class sort from the Tools menu

Build Integration

The extension can build your Tailwind CSS output automatically on project build, or manually from the Build menu.

  • Make sure your input and output CSS files are defined
  • Output and errors appear in the Build output window
Build integration output Build menu with Tailwind build option

To configure build and configuration files, right-click .js, .ts, or .css files:

Setting the configuration file via right-click Configuring build settings via right-click

Project-specific settings are saved in a tailwind.extension.json file in your project root.

NPM Integration

Start quickly by right-clicking your project and selecting a startup task:

NPM startup task shortcuts in the right-click menu

Using the Tailwind CLI?

  1. Set its path under Tools > Options > Tailwind CSS IntelliSense > Tailwind CLI path
  2. Click Set up Tailwind CSS (use CLI)

Want to use a custom build script?

  1. Define it in your package.json
  2. Set the script name in the extension options (npm run your-script-name)

Extension Options

Global extension settings live under:

Tools > Options > Tailwind CSS IntelliSense

See Getting Started – Extension Configuration for details.

Troubleshooting

Build Issues

If your CSS isn't updating, check the Build output window for Tailwind errors.

Build output window showing a Tailwind error

Extension Issues

If the extension crashes or behaves unexpectedly, check the Extensions output window for detailed logs.

Support & Feedback

Found 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. 🙏

Disclaimer

This is not an official Tailwind CSS extension and has no affiliation with Tailwind Labs Inc.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft