Sorting Tailwind CSS Classes Automatically with Prettier @TailwindLabs
Sorting Tailwind CSS Classes Automatically with Prettier  @TailwindLabs
Uploaded February 2022 | Updated November 2026, 3 hours ago
In this video, I'll show you how to set up Prettier and the new Prettier plugin for Tailwind CSS, which will sort your classes automatically. One thing less to argue about with your team!

00:00 – Introduction
00:32 – Setting up Prettier
02:47 – Formatting on save
03:40 – Installing the Prettier plugin for Tailwind CSS
04:41 – How classes are sorted
05:57 – High impact classes first
06:46 – Modifiers grouped together
07:16 – Sorting custom classes
07:59 – Formatting an existing project
09:40 – Outro
Sorting Tailwind CSS Classes Automatically with PrettierCSS Grid – Whats new in Tailwind CSSTranslating a Custom Design System to Tailwind CSSIntroducing Tailwind Play, the official Tailwind CSS playgroundRebuilding iOS 15 with Tailwind CSS00: Course Intro – Tailwind CSS v2.0: From Zero to ProductionTransform, Translate, Scale, and Rotate – Whats new in Tailwind CSS03: Responsive Design – Tailwind CSS v2.0: From Zero to ProductionSneaking a Peek at Tailwind CSS v2.2Extending Variants – Whats new in Tailwind CSSExtra Rounded, Rotate & Skew Values - Whats new in Tailwind CSSMulti-Line Truncation with the New Line Clamp Plugin — Whats new in Tailwind CSS
Tailwind Labs |

Sorting Tailwind CSS Classes Automatically with Prettier

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER