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

feat: sort tailwind classnames in correct order #1123

Open
catosaurusrex2003 opened this issue Feb 2, 2025 · 2 comments
Open

feat: sort tailwind classnames in correct order #1123

catosaurusrex2003 opened this issue Feb 2, 2025 · 2 comments

Comments

@catosaurusrex2003
Copy link
Contributor

Description
format using https://www.npmjs.com/package/prettier-plugin-tailwindcss

more information -> https://tailwindcss.com/blog/automatic-class-sorting-with-prettier

Reasons

  1. More consistent and organized class naming
  2. Makes reading long classNames easier

Example
this unordered classes 👇
rounded uppercase px-2 no-underline border-orange-300 text-orange-500 border py-0 border-solid text-xs
gets converted to 👇
border-orange-300 text-orange-500 rounded border border-solid px-2 py-0 text-xs uppercase no-underline

Below is the image of the files which are affected due to this formatting
Image

@AST0008
Copy link

AST0008 commented Feb 2, 2025

Hey can i work on this? @catosaurusrex2003

@catosaurusrex2003
Copy link
Contributor Author

@AST0008 lets wait for others to validate if this change is really necessary. Then you can pick this issue up 👍.

@AceTheCreator should we go forward with this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants