IntelliJ IDEA
 
2025.1
Get IntelliJ IDEA

Tailwind CSS

Last modified: 11 April 2025

IntelliJ IDEA integrates with Tailwind CSS providing Tailwind CSS syntax support, completion for Tailwind CSS class names, as well as CSS functions and directives, preview of the resulting CSS on hover, and Tailwind CSS-specific inspections.

Tailwind CSS support in IntelliJ IDEA is backed by the Tailwind CSS Language Server that detects the Tailwind CSS package and, based on the package version, searches for a Tailwind CSS-specific project configuration:

  • With Tailwind CSS 4, the Language Server looks for a CSS file with an @import "tailwindcss" directive.

  • With Tailwind CSS 3, the Language Server looks for a tailwind.config.js file.

IntelliJ IDEA is shipped with a bundled Tailwind CSS Language Server. However, it is recommended that you keep the Language Server up to date by downloading the latest server version and specifying the path to it on the Settings | Languages &Frameworks | Style Sheets | Tailwind CSS page as described in Configure the Tailwind CSS Language Server.