Skip to content

feat: sort tailwind classnames in correct order #1123

@catosaurusrex2003

Description

@catosaurusrex2003

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions