DevelopersTV

Sorting Tailwind CSS Classes Automatically with Prettier

Tailwind Labs — Feb 4, 2022 — tutorial

Why watch

This tutorial from Tailwind Labs demonstrates how to install and configure the official Prettier plugin to automatically sort Tailwind CSS utility classes. Viewers learn to set up Prettier from scratch, install the plugin, enable format-on-save, and understand how classes are sorted with high-impact classes prioritized and modifiers grouped together. The video also covers sorting custom classes and formatting existing projects.