Doesn't work with Astro
Author: alexschcomCreated Feb 20, 2026Updated Jun 7, 2026
What version of prettier-plugin-tailwindcss are you using?
v0.7.2
What version of Tailwind CSS are you using?
v4.2.0
What version of Node.js are you using?
v22.20.0
What package manager are you using?
npm
What operating system are you using?
macOS
Reproduction URL
https://github.com/alexschcom/prettier-plugin-tailwindcss-issue
Describe your issue
/src/pages/index.astro → <h1> class list should change
<h1 class="p-4 text-9xl m-4">Astro</h1>to
<h1 class="m-4 p-4 text-9xl">Astro</h1>Source: tailwindlabs/prettier-plugin-tailwindcss