Tailwind CSS class name completion for VS Code
Get it from the VS Code Marketplace →
This extension requires:
- a
tailwind.config.jsfile to be present in your project folder. You can create it withnpx tailwind init. tailwindcssto be installed (present in projectnode_modules/)
Tailwind CSS IntelliSense uses your projects Tailwind installation and configuration to provide suggestions as you type.
It also includes features that improve the overall Tailwind experience, including improved syntax highlighting, and CSS previews.
- Class name suggestions, including support for Emmet syntax
- Suggestions include color previews where applicable, for example for text and background colors
- They also include a preview of the actual CSS for that class name
- CSS preview when hovering over class names
- Suggestions when using
@applyand config helpers - Suggestions when using the
@screendirective - Suggestions when using the
@variantsdirective - Improves syntax highlighting when using
@applyand config helpers
Before:
After:
This setting allows you to add additional language support. The key of each entry is the new language ID and the value is any one of the extensions built-in languages, depending on how you want the new language to be treated (e.g. html, css, or javascript):
{
"tailwindCSS.includeLanguages": {
"plaintext": "html"
}
}Enable completions when using Emmet-style syntax, for example div.bg-red-500.uppercase. Default: false
{
"tailwindCSS.emmetCompletions": true
}



