Conversation
|
Keep note of #37049, but that one looks stalled so probably ok to go ahead here. This change needs intricate validation, I hope your AI is up to that task. |
No, it won't look good. |
Why not keep the class as |
|
|
|
Feasible steps for prefix-less would be:
I still would like to have prefix-less tailwind, so I welcome the change, but it needs to be done properly. |
Tailwind CSS v4 only supports prefix syntax as variants like tw:flex, which is incompatible with Gitea's current tw- utility classes. The review discussion on go-gitea#37049 and go-gitea#37260 also made it clear that prefix removal is not acceptable until class collisions with Fomantic are resolved first. Co-Authored-By: Codex (GPT-5) <codex@openai.com>
Rename bare Fomantic-style class families to fm-* so they no longer collide with prefixless Tailwind utilities. This adds a collision audit command and updates the Fomantic bridge/runtime classes accordingly. Co-Authored-By: Codex (GPT-5) <codex@openai.com>
Migrate Tailwind to the v4 Vite integration, switch the CSS entrypoint to the v4 import style, and remove the old utility prefix after the collision cleanup. This also keeps hidden-state behavior compatible with Fomantic by using gt-hidden and fm-hidden where needed. Co-Authored-By: Codex (GPT-5) <codex@openai.com>
98c230b to
b241074
Compare
thats a good plan - I tried to follow it |
|
still reviewing on myself but looks kinda good |
|
For step 1, clone tailwindcss main branch and make it look for all class patterns in that repo that it can create using our config, then let it search with those patterns in the codebase to identify the collissions. |
Co-Authored-By: Codex (GPT-5) <codex@openai.com>
|
@silverwind flaky db test or flaky ldap? https://github.com/go-gitea/gitea/actions/runs/24587209537/job/71899729295?pr=37260 |
|
Yes, probably a flake, open an issue for it. |
This upgrades the frontend from Tailwind CSS v3 to v4 and removes the
tw-utility prefix.tw-hiddenbehavior with a dedicatedgt-hiddenclass so hidden-state handling keeps working in places where Fomantic or other display utilities would conflict.I also tested it locally and it looked good
Created with help of Codex