PhpStorm integrates with the Tailwind CSS framework including completion for Tailwind classes in HTML files and completion suggestions for pseudo-class variants, preview of the resulting CSS on hovering over classes in HTML and CSS files or on autocompletion. PhpStorm recognizes tailwind.config.js files and provides completion based on customization you make to them.
Browse other questions tagged javascript phpstorm webstorm emmet or ask your own question. The Overflow Blog Level Up: Creative Coding with p5.js – part 6. How often do people actually copy and paste from Stack Overflow? Featured on Meta Stack Overflow for Teams is. PhpStorm 2021.1 Release Candidate is available! PhpStorm 2021.1 RC is the final build before the major update of PhpStorm. Just a quick heads up! Unlike previous EAP builds, this RC requires you to have a valid PhpStorm license. The most notable new features of the upcoming release are listed in the 2021.1 Beta announcement. Emmet LiveStyle Real-time bi-directional edit tool for CSS, LESS and SCSS. Emmet Re:view Fast and easy way to test responsive design side-by-side. Download cheat sheet as printable PDF A5. Support: info@emmet.io Created with DocPad and Gulp.js Minimal theme by orderedlist.
Before you start
Make sure you have Node.js on your computer.
Install and enable the Tailwind CSS plugin on the Settings/Preferences | Plugins page as described in Installing plugins from JetBrains repository.
Phpstorm Emmet Html5
Install Tailwind CSS
Open the embedded Terminal (Alt+F12) and type:
npm install tailwindcss postcss autoprefixer
To configure your Tailwind CSS installation, generate a tailwind.config.js configuration file in the root of your project. In the embedded Terminal (Alt+F12), type:
npx tailwindcss init
Learn more from the Tailwind CSS official website.
Complete Tailwind classes
PhpStorm autocompletes Tailwind classes in HTML files and in CSS files after the @apply
directive.
PhpStorm suggests Tailwind classes for completion in JavaScript string literals.
Completion suggestions are also shown for pseudo-class variants.
Phpstorm Emmet
Preview the resulting CSS
When you hover over a Tailwind class in an HTML or CSS file, PhpStorm shows you the preview of the resulting CSS.
The preview is also shown in the Documentation popup (Ctrl+Q) when you complete your code.
Edit your tailwind.config.js
Phpstorm Emmet Snippets
PhpStorm provides code completion based on the customization you make through your tailwind.config .js configuration files. For example, if you define a custom theme with new colors, newly generated classes with the name of the custom color will be shown in the completion popup.