Skip to content

Difficulties upgrading to Tailwind CSS v4 #664

@kowyo

Description

@kowyo

Hi, I want to ask about how to upgrade to Tailwind CSS v4.

Our project is based on Hextra but we have modified some components(html). So #632 cannot simply be done just by upgrading submodules.

I am not familiar with tailwind css. When I read the upgrade guide in https://tailwindcss.com/docs/upgrade-guide, I think there is a tool that can upgrade existing tailwind css syntax in html files automatically. But it does not upgraded as expected.

As #632 mentioned, I have also tried to replace hx- with hx:, however, it still breaks. As I observed, syntax like first:hx-mt-0 should be replaced with hx:first:mt-0, this cannot be done just by finding and replacing.

I wonder if changes in html in https://github.com/imfing/hextra/pull/632/files are automatically finished? Is there any convenient ways to achieve this?

Thank you!

Update: already WIP, but it is still broken now

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions