-
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 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 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @kowyo I don't think there's easier way to do it. The new version requires the prefix I asked Claude to summarize the changes based on the
You can use above as a reference or maybe create a script to bulk replace. |
Beta Was this translation helpful? Give feedback.
-
Hi @imfing and community users, We have done the upgrade in HITSZ-OpenAuto/hoa-moe#369 For those who are interested in doing the upgrade:
From my experience, customizing a theme is very usual, but you should consider the compatibility when doing your customization, for example, you can define a custom class prefix like I have seen Hextra is doing a lots of works to make the customization easier, but still, breaking changes are unavoidable and make us frustrated for some time. Thank you for doing the great work. And I wish the outcome could be brightful. |
Beta Was this translation helpful? Give feedback.
Hi @imfing and community users,
We have done the upgrade in HITSZ-OpenAuto/hoa-moe#369
For those who are interested in doing the upgrade:
hx-
withhx:
, and always keep it at the front of the style if it is not, e.g.,md:hx:
should be corrected tohx:md:
ctrl + F
and find them.From my experience, customizing a theme is very usual, but you should consider the compatibility when doing your customization, for example, you can define a custom class prefix like
hoa-*
we are using, instead of copy and overwriting the entire script directly. If we have done so …