-
Notifications
You must be signed in to change notification settings - Fork 918
Open
Labels
Description
Package
v4.x
Description
❓ What's missing
Nuxt UI is built with Tailwind CSS, but currently:
- There’s no mention in the
Nuxt UIdocumentation about how to enable or enforce class sorting. - Tools like
eslint-plugin-tailwindcssorprettier-plugin-tailwindcssare not recommended or documented.
This leads to inconsistency when building or extending UI components using the same design system.
⚠️ Related problem: Prettier vs ESLint conflicts
Trying to use prettier-plugin-tailwindcss just for class sorting often leads to conflicts with existing ESLint rules — especially when ESLint is the primary formatter (as is often the case in Nuxt projects).
Since Nuxt UI doesn't officially support or document a class sorting solution, developers are left guessing how to:
- Sort Tailwind classes in a consistent way
- Avoid conflicts between Prettier and ESLint
- Align their own UI code with Nuxt UI’s internal structure
✅ Suggestions
- Document a recommended approach for Tailwind class sorting (via ESLint or Prettier), including tips on avoiding formatting conflicts.
Even a short note would be helpful for teams building on Nuxt UI.
Thanks for all the great work on Nuxt UI — it would be great to see these best practices adopted or supported!