sylius/theme-bundle
Sylius Theme Bundle brings theme management to Symfony apps. Define and switch themes, organize templates and assets per theme, and build storefronts with clean overrides. Part of the Sylius ecosystem, with docs included and MIT licensed.
While you can't set two themes active at once, you can make use of multiple inheritance. Eg.:
{
"name": "vendor/child-theme",
"extra": {
"sylius-theme": {
"title": "Child theme",
"parents": ["vendor/first-parent-theme", "vendor/second-parent-theme"]
}
}
}
{
"name": "vendor/first-parent-theme",
"extra": {
"sylius-theme": {
"title": "First parent theme",
"parents": ["vendor/grand-parent-theme"]
}
}
}
{
"name": "vendor/grand-parent-theme",
"extra": {
"sylius-theme": {
"title": "Grandparent theme"
}
}
}
{
"name": "vendor/second-parent-theme",
"extra": {
"sylius-theme": {
"title": "Second parent theme",
}
}
}
Configuration showed below will result in given order:
Grandparent theme gets overrided by first parent theme. First parent theme and second parent theme get overrided by child theme.
How can I help you explore Laravel packages today?