[Prettier Plugin] Can't seem to get "tailwindAttributes" and/or "tailwindFunctions" to work? #12270
Replies: 3 comments
-
Why did it close? I also encountered the same problem🥲 |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 edit: idk what happened but it's working now |
Beta Was this translation helpful? Give feedback.
0 replies
-
I fixed my issue with this PR |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a continuation of the Prettier Plugin Tailwind within :ui={...} issue I opend under the NuxtUI repo.
TLDR
In NuxtUI there is this prop called
:ui
that is used to override the default styles of the components with tailwind classes e.g. :End TLDR
As can be seen in the above example body.base has the same classes as footer.base but they are sorted differently. I did try using both Sorting non-standard attributes and Sorting classes in function calls to address this issue but couldn't get them to work properly.
On a side note the Tailwind Intellisense and hover tooltips does work within these
:ui
props like this:.vscode/settings.json
Prettier version: 3.0.3
prettier-plugin-tailwindcss version: 0.5.6
prettier.config.js:
I did use
tailwindAttributes
andtailwindFunctions
by themselves and together both withui
and:ui
and wasn't able to get results.I was able to recreate both of the demos from Sorting non-standard attributes and Sorting classes in function calls within the same codebase and they did work.
Beta Was this translation helpful? Give feedback.
All reactions