Replies: 5 comments 12 replies
-
From a maintainer perspective I wonder, what could we do, to make maintaining such themes easier. Would it be sufficient, to allow enriching templates/blocks with class elements? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I guess everybody has already noticed the hyvä M2 theme where tailwind is used. From my point of view, the way they did it is the only way to take profit out of it. Adding tailwind classes on to of the existing will add complexity, but it does not remove any. The m1 html is even More outdated than luma - I can’t imagine how that should bring any benefit.
Personally, i would like to see a new template total build from scratch with tailwind - and probably alpine JS just like hyvä for OpenMage. But that’s a hard pice of work to do, and nobody will use this in existing installations, cause it will break nearly every extension available.
In M2 there is some potential that extension devs will adapt there work if hyvä growth bigger, for OpenMage i am not to sure this could happen.
From a bigger view, if OpenMage derives to a more future proof code base, get rid of Zend1 for example, a theme like this without prototype and a small and modern html base could be very attractive for smaller customers. A lot of work.
Diplom Wirtschaftsinformatiker (FH)
… Am 21.09.2021 um 00:53 schrieb Daniel Fahlke ***@***.***>:
From a maintainer perspective I wonder, what could we do, to make maintaining such themes easier.
Getting rid of all the inline styles in not so much of an issue. But using css-framework specific class basically means, such a theme needs to overwrite nearly all of the templates.
For itself, this sounds not like a big issue, but we already had cases, where we needed to change/fix things in template files. And this usually would need to be applied to all themes, which did overwrite the same files.
It sounds wrong to need to overwrite the whole template for just adding class elements.
So I wonder, is there maybe an alternative we could establish for such themes?
Would it be sufficient, to allow enriching templates/blocks with class elements?
Do we need something more abstract, which allows to add classes or even more by html manipulation on block level?
(like add class "grid" to "div>div" of block "list.phtml")
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Through the OpenMage project we try to take Magento 1 further, to be compatible with the new variants of PHP, MySQL, but we have never discussed about themes that are aging and require replacements. At first I rejected Tailwind CSS which seemed complicated and I didn't like loading the html elements with classes but the few tutorials on YouTube made me curious to dig deeper and realize that this option is worth taking account. The intention of the discussion was not to change the current functionality of OpenMage but to assess whether Tailwind CSS could be added to OpenMage as a separate theme for Frontend/Backend in the near future. There are some people who have asked for the implementation of Bootstrap for Backend, but as one who has used this framework and many others like Foundation intensely for a long time, I can say that it is not a very good idea. There are notable differences between Bootstrap and Tailwind CSS, which are very well explained if you search the Internet. The way Tailwind CSS was conceived as a first utility offers flexibility check its documentation here https://tailwindcss.com/docs/utility-first, Such a tool in the hands of an advanced UI/UX developer will lead to noticeable visual improvements in a new theme. I am at the evaluation stage for using it with OpenMage because a client asked me for a solution to replace the actual theme and there are very few updated themes on the market. Many of them have already remained anchored at the level of 2014 - 2017. Anyone with experience in creating new themes using modern technologies can express an opinion here. |
Beta Was this translation helpful? Give feedback.
-
@addison74 I am considering building this since quite some time, but would also like to do a few more breaking changes at the same time. So far, OpenMage has kept me back on the things I wanna do and I was thinking of forking OpenMage. I have 3 pages worth of ideas for the future of OpenMage, but am still looking for funding/livelyhood. |
Beta Was this translation helpful? Give feedback.
-
Is there any reason to not start a new theme as a separate repo? An integration into OpenMage would be easy if it can be shown that this is possible and a great improvement, as log this will not break the legacy theme.
I would really like to be part of a development like this.
|
Beta Was this translation helpful? Give feedback.
-
Until this year I used in Magento Bootstrap 3 and 4 Frameworks and I was very happy with the results. Mainly the responsive grid then the other components such as cards, buttons. In February I started evaluating Tailwind CSS and I can say that using it every day I got to appreciate it more and more. Tailwind is used in the class attribute of an html element. Also it gives you the ability to create more custom styles. It's absolutely fantastic. The Magento styles.css file is entirely removed.
It would be an interesting project if we could clean all the RWD and Base phtml files from inline styles and classes, Then add Tailwind to the html elements. At the end with Purgecss the final css file will be dramaticaly reduced to only the classes used in phtml files. What I really like is that I no longer have to create in the style file media sections for each screen size, also in the class of an element I can define the behavior for each resolution. Who is interested in playing with Tailwind can do so online here: https://play.tailwindcss.com/.
Bootstrap is still a popular framework, but not as flexible as Tailwind. Bootstrap themes tend to be similar. I don't dispute its advantages, the speed with which I can create visual elements in a page, but things are evolving and I think Tailwind is a winner. The debate is only about how you see the classes of an html element. Either you do it in a file as before, or inline. Then how easy can you make the changes. My personal opinion so far is that changes are much faster with Tailwind
Beta Was this translation helpful? Give feedback.
All reactions