dioxus
dioxus copied to clipboard
Sort Tailwind classes with `dx fmt`
Feature Request
Tailwind provides an official prettier plugin that can automatically sort classnames: https://www.npmjs.com/package/prettier-plugin-tailwindcss
Of course, it only works for JS/TS files and not for Rust.
Implement Suggestion
dx fmt should provide an option for formatting Tailwind classnames in Rust files.
I'm going to put together an MR for this.
You could also integrate rustywind_core this is what leptosfmt does.