Replies: 1 comment 1 reply
-
Hey! Did you configure prettier to look at your Tailwind CSS configuration? See this part in the readme: https://github.com/tailwindlabs/prettier-plugin-tailwindcss?tab=readme-ov-file#specifying-your-tailwind-stylesheet-path |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Custom declared utility classes aren't sorted properly via auto sort plugin
prettier-plugin-tailwindcss
using CLI commandprettier --write .
.For example custom color
bg-mint-500
always ends up as the first option even though it should be next totext-orange-500
.This behaviour applies on CLI command and TW VSCode extension as well.
When I try to reproduce this same behaviour in TW playground, it gets sorted correctly ->
<div class="border bg-mint-500 text-xl text-orange-500"></div>
(^ color is linked properly and is registred by TW extension)
Reproduction
prettier --write .
Package versions
Beta Was this translation helpful? Give feedback.
All reactions