Skip to content

[Feature Request]: Support Tailwind 4 #313

@wuifdesign

Description

@wuifdesign

Description

Currently only tailwind.config.js is supported for class sorting, but with tailwind 4 a new format was introduced. Would be nice to support it as you use a custom sorting mechanic and the prettier-plugin-tailwindcss is not working with this plugin.

Suggested Solution

Do something like https://github.com/tailwindlabs/prettier-plugin-tailwindcss?tab=readme-ov-file#specifying-your-tailwind-stylesheet-path to define a path to the css file and parse variables out of it.

"tailwindStylesheet": "./resources/css/app.css",

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions