Component partial grouping / theme framework identifiers #164
Replies: 3 comments 8 replies
-
That would add quite a bit of complexity. How do you cope with differences in frameworks versions (i.e. bootstrap 3/4/5, uikit 2/3)? |
Beta Was this translation helpful? Give feedback.
-
How is this handled by other projects, i.e. WordPress? |
Beta Was this translation helpful? Give feedback.
-
@bennothommo it's clear, but I really don't think this is the framework's role to do this. It's always been clear that component partials are there mainly as a placeholder for demonstration purpose and should be replaced. To be frank, I really doubt plugin authors will start writing partials for multiple css frameworks. |
Beta Was this translation helpful? Give feedback.
-
One of the common problems I've encountered with plugin components is that the plugin author has written the default components in a different front-end framework and thus the partials are using classes and styling that might not work for another given front-end framework. I've also seen this mentioned a fair few times by the community as well.
Currently, the default workflow with this is generally to expect the theme developer will either override the component partial with their own, or at least define the component's HTML in their own CMS templates. While this is fine in most cases when people are making bespoke themes for their projects, it might be a point of friction for people who want to simply purchase themes and install plugins that the theme developer didn't cater for.
I propose that we could implement a partial grouping system which would work with a set of framework identifiers and allow plugin authors to develop partials for common front-end frameworks that, when used in conjunction with the theme specifying that same framework identifier, will allow the component to deliver the partials for that framework and making the plugin components more "drop-in".
The proposed workflow would be as follows:
bootstrap
,tailwind
, etc.) in the component configuration. One of the frameworks must be specified as a default.theme.yaml
file, can specify that their theme is a given framework identifier, matching the framework they used to build the theme.Proposed identifiers
bootstrap
: Bootstraptailwind
: Tailwind CSSspectre
: Spectre.CSSfoundation
: Foundation CSSsemantic
: Semantic UIbulma
: Bulmauikit
: UIKitBeta Was this translation helpful? Give feedback.
All reactions