Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort Tailwind classes with dx fmt #3478

Open
musjj opened this issue Jan 1, 2025 · 0 comments
Open

Sort Tailwind classes with dx fmt #3478

musjj opened this issue Jan 1, 2025 · 0 comments
Labels
autoformatting Related to the autofmt crate cli Related to the dioxus-cli program enhancement New feature or request

Comments

@musjj
Copy link

musjj commented Jan 1, 2025

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.

@jkelleyrtp jkelleyrtp added enhancement New feature or request autoformatting Related to the autofmt crate cli Related to the dioxus-cli program labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoformatting Related to the autofmt crate cli Related to the dioxus-cli program enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants