Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Theme Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Important changes

SyliusThemeBundle changes the way vanilla Symfony works a lot. Templates and translations will never behave the same as they were.

Templates

Changed loading order (priority descending):

  • Application templates:
    • <Theme>/templates (NEW!)
    • <Project>/templates
  • Bundle templates:
    • <Theme>/templates/bundles/<Bundle name> (NEW!)
    • <Project>/templates/bundles/<Bundle name>
    • <Bundle>/Resources/views

Translations

Changed loading order (priority descending):

  • <Theme>/translations (NEW!)
  • <Project>/translations
  • <Bundle>/Resources/translations

Assets

Theme assets are installed by sylius:theme:assets:install command, which is supplementary for and should be used after assets:install.

The command run with --symlink or --relative parameters creates symlinks for every installed asset file, not for entire asset directory (eg. if AcmeBundle/Resources/public/asset.js exists, it creates symlink public/bundles/acme/asset.js leading to AcmeBundle/Resources/public/asset.js instead of symlink public/bundles/acme/ leading to AcmeBundle/Resources/public/). When you create a new asset or delete an existing one, it is required to rerun this command to apply changes (just as the hard copy option works).

Assetic

Nothing has changed, ThemeBundle is not and will not be integrated with Assetic.

Go back to the documentation's index

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dakiquang/laravel-oauth-refresh-lock
woda/laravel-worktrees
dalefranks/ramasite
faghy/laracashbook
roundly-consulting/google-places-for-laravel
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
andydefer/laravel-notification
adachsoft/cli-process-tester
jhaskell13/laraflow
sebastienheyd/boilerplate-media-manager
ccast/tagixo-primix
pretendtrue/laravel-builder
sawmainek/laravel-scout-tntsearch-driver
tomshaw/laravel-calendar-table
dibakar/laravel-ownership
adachsoft/changelog-linter