[Prettier Plugin] [v4] Sort order of custom utilities sorted to the front #14361
-
package.json: "dependencies": {
"next": "14.2.8",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@tailwindcss/postcss": "4.0.0-alpha.23",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.8",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwindcss": "4.0.0-alpha.23",
"typescript": "^5"
}
} I was testing out the latest alpha release of v4 the other day and just wanted a sanity check. I added a few variables to my @theme {
--width-8xl: 90rem;
--color-neon-pink: oklch(71.7% 0.25 360);
} Now, in my page.tsx in Nextjs, if I do Thankfully, I am testing the waters in a non-critical project, but I just wanted to be aware of any type of conflicts due to the sort order ahead of time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey! At the moment at least you need to configure the path to your CSS file when using v4 with the Prettier plugin: tailwindlabs/prettier-plugin-tailwindcss#249 Hopefully something we can make automatic at some point though if we can crack it. IntelliSense should detect your CSS file automatically though and report the conflicts — are you on the latest version of the extension? |
Beta Was this translation helpful? Give feedback.
Hey! At the moment at least you need to configure the path to your CSS file when using v4 with the Prettier plugin:
tailwindlabs/prettier-plugin-tailwindcss#249
Hopefully something we can make automatic at some point though if we can crack it.
IntelliSense should detect your CSS file automatically though and report the conflicts — are you on the latest version of the extension?