-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library of common child theme partials #1038
Comments
One solution, which I'll call "Store it in Largo": Files stored in Largo, with documentation and LESS files, but not included in Largo's LESS or in Largo's PHP PHP files would be added to child themes by LESS files would be included similarly, though this would be a Updating the files in Largo would therefore update the files in the child themes. |
The "Submodule hell" option: Create a parent repository, to track stable versions of components. Components are kept as separate repositories, logged in the parent repository as submodules. Child themes would include the components as submodules, and treat them normally as part of their own theme. Updating the component's files in the component's repository would do nothing in the child themes. We'd need to update each child theme's submodule commits. The parent repository would have no function except to track the "master" versions of submodules, and to serve as an index that tracks which submodules are used in which themes. |
A side effect of the "Store it in Largo" option is that we'd need to settle on common variable names for things such as colors, and use those across all child themes. |
A note on "Store it in Largo" and the Mailchimp signup form in the header: In Largo:
In the component folder:
|
I'm trying to think why there should be an action in the header instead of just a sidebar, and the conclusion I keep coming back to is:
|
"Library of common theme partials" becomes more like "Constellation of widgets implementing plugins". |
For WE-55, we're discussing where it would make sense to store a bunch of PHP, JS, LESS, CSS and associated documentation (.md) for common UI elements that aren't in Largo, but are used frequently in child themes.
Questions to answer:
This is open for general discussion, and all proposals are welcome.
The text was updated successfully, but these errors were encountered: