Skip to content

Add built-in Tailwind class formatter support #137

@leaked

Description

@leaked

First of all, thanks for maintaining the Phoenix Tailwind package.

I would like to suggest adding optional Tailwind class formatting/sorting support to the package.

Currently, the package provides excellent editor integration, but formatting and consistent ordering of Tailwind classes still require external tooling. It would be very useful if the extension could optionally sort and format Tailwind utility classes automatically.

A good example of this approach is:
canonical_tailwind

Having this functionality built directly into the official package could provide several benefits:

  • Consistent Tailwind class ordering across Phoenix projects
  • Better out-of-the-box developer experience
  • Reduced dependency on additional editor extensions or external tools
  • Easier onboarding for new Phoenix developers

Ideally, this could be optional/configurable so users who already use other formatting tools can keep their existing workflow.

Thanks again for the great work on the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions