Styling Upgrade
Is there an existing feature request for this?
- [x] I have searched the existing issues before opening this feature request.
Describe the feature you would like to see.
I think it would Profit the Panel If all twin.marco Stuff gets replaced with tailwindcss Logic since twin.marco Is outdated and No longer maintained, this would also make it easier for Users to make custom themes.
Describe the solution you'd like.
Like I already Said the solution would be probably to Just replace the twin.marco usage with tailwindcss logic.
Additional context to this request.
No response
I like the idea, but it might be too much work
Good idea actually
I like the idea, but it might be too much work
It will be much work but it will definitly pay off in my opinion
I would be surprised if they did, but even if they don't, do your own PR if you want to.
On classes alone I think twin.macro is nicer to work with for themes, though not really readable at all times.
The main cons to this as far as I can see are that:
- Lots of themes will basically need a rewrite
- Every modification that relies on twin will fall apart (which are quite a few)
- This will likely result in a wave of major package updates that will likely break even more third-party stuff
This is not an easy removal at all, and currently will probably cause more issues than it'll do good.
On classes alone I think twin.macro is nicer to work with for themes, though not really readable at all times.
The main cons to this as far as I can see are that:
* Lots of themes will basically need a rewrite * Every modification that relies on twin will fall apart (which are quite a few) * This will likely result in a wave of major package updates that will likely break even more third-party stuffThis is not an easy removal at all, and currently will probably cause more issues than it'll do good.
Wasnt this a problem for you kinda, if Im not mistaken you even had this as an issue in your blog
Wasnt this a problem for you kinda, if Im not mistaken you even had this as an issue in your blog
Sorta. Kicking out twin is not that feasible for Blueprint (outside of our scope and would cause the issues I listed earlier) and on the opposite side, standalone themes generally modify the Tailwind config for changing colors anyways.
I'm highly certain quite a few modifications/extensions will fall apart if twin is completely removed, as quite a few developers take the Pterodactyl codebase as an example for their modification's codebase, which uses twin in quite a few places.
On classes alone I think twin.macro is nicer to work with for themes, though not really readable at all times.
The main cons to this as far as I can see are that:
- Lots of themes will basically need a rewrite
- Every modification that relies on twin will fall apart (which are quite a few)
- This will likely result in a wave of major package updates that will likely break even more third-party stuff
This is not an easy removal at all, and currently will probably cause more issues than it'll do good.
Pterodactyl itself does not directly benefit from third-party themes or modifications, so it doesn’t make much sense to block internal improvements because of them. The core project should move forward based on what’s best for its own maintainability.
Theme creators are the ones who benefit from their themes, and it’s their responsibility to keep them updated when upstream changes happen. That’s a normal expectation in any open-source project.
Avoiding necessary changes just to protect third-party projects only slows down development.
(twin.macro has not received updates since January 19, 2024, while Tailwind CSS was updated just two weeks ago. In my opinion, it could even be considered obsolete at this point. There have been many changes and improvements in CSS since twin.macro’s last update, and sticking to an inactive tool only increases technical debt over time.)
owo
Pterodactyl itself does not directly benefit from third-party themes or modifications, so it doesn’t make much sense to block internal improvements because of them. The core project should move forward based on what’s best for its own maintainability.
I do personally feel like Pterodactyl benefits from its modding community, but I digress.
Theme creators are the ones who benefit from their themes, and it’s their responsibility to keep them updated when upstream changes happen. That’s a normal expectation in any open-source project.
Getting rid of Twin will have negative effect on a majority of the modifications, not just themes.
(twin.macro has not received updates since January 19, 2024, while Tailwind CSS was updated just two weeks ago. In my opinion, it could even be considered obsolete at this point. There have been many changes and improvements in CSS since twin.macro’s last update, and sticking to an inactive tool only increases technical debt over time.)
Twin is used on top of Tailwind. It is not a replacement for Tailwind and, in my testing, seems to work perfectly fine with the latest minor and patch version of Tailwind v3.
I do personally feel like Pterodactyl benefits from its modding community, but I digress.
Pterodactyl does not profit from plugins and themes. Normally, only the websites that sell them and their creators profit. It can benefit by gaining users, so you could say yes.
Getting rid of Twin will have negative effect on a majority of the modifications, not just themes.
That’s true, but it’s also worth noting that themes and addons already tend to break between releases, since most of them replace or modify entire files.
Twin is used on top of Tailwind. It is not a replacement for Tailwind and, in my testing, seems to work perfectly fine with the latest minor and patch version of Tailwind v3.
Agreed — Twin works on top of Tailwind and is compatible today. The motivation here is more about long-term sustainability: fewer abstractions, simpler builds, easier onboarding, and better future-proofing of the codebase. Moving closer to plain Tailwind would be a solid modernization step, even if done incrementally.
Good points from both; at the end of the day deprecated libraries are a vulnerability waiting to happen and one of the main principles of this software is staying on top of security concerns, which this issue directly addresses as well as making the UI quicker
This is planned for a future version, however it is a dramatic breaking change and not something we'd release in the 1.x branch.
See https://github.com/orgs/pterodactyl/discussions/5492 for additional detail.