Install Tailwind CSS IntelliSense
mainInstall the extension via the Visual Studio Code Marketplace.
To activate the extension, you must have tailwindcss installed in your workspace and meet one of the following criteria:
- For v4 and later: A
.cssfile that imports a Tailwind CSS stylesheet (e.g.,@import "tailwindcss"). - For v3 and earlier: A Tailwind CSS config file named
tailwind.config.{js,cjs,mjs,ts,cts,mts}in your workspace, or a stylesheet that points to a config file via the@configdirective.