prettier-plugin-tailwindcss
A Prettier plugin for Tailwind CSS that automatically sorts classes based on our recommended class order.
About this project
A Prettier v3+ plugin for Tailwind CSS v3.0+ that automatically sorts classes based on our recommended class order. Installation To get started, install prettier-plugin-tailwindcss as a dev-dependency: Then add the plugin to your Prettier configuration: When using a JavaScript config, you can import the types for IntelliSense: Upgrading to v0.5.x As of v0.5.x, this plugin now requires Prettier v3 and is ESM-only. This means it cannot be loaded via require(). For more information see our upgrade guide. Options Specifying your Tailwind stylesheet path (Tailwind CSS v4+) When using Tailwind CSS v4 you must specify your CSS file entry point, which includes your theme, custom…
Technologies
Project health
GitHub
Reviews
Built by
Maintain tailwindlabs/prettier-plugin-tailwindcss? Claiming verifies admin access through your GitHub account and gives you control of this listing.
