-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Themes in UF4 #597
Comments
As with the current V4.0-alpha release, a theme doesn't need to merge multiples sprinkles anymore. Twig's namespace can be used instead. The theme list and UI for the user theme still need to be done. Available themes should be listed in the |
That would work for templates, but what about assets? |
Right, assets. As long as the assets build actually pick up the sprinkles not in the main |
My idea is have a |
To be clear, the current problem is more related to assets overlap between multiple sprinkles/themes. Let's say my
Let's say It could be that the build system load them in different path inside On the other hand, if (That's what I mean when I say it could work, but not 100% foolproof) |
And so we would enforce rules in the build system that would prevent overwriting of base assets. So, if a theme attempted to overwrite |
...and so it's the dev job to make sure his theme work with the rest of the system and fix the conflicts? I'm not sure this is a nice solution in the long term where I could download two UF "theme" from the internet. Fixing a conflict from an existing theme/sprinkle could be a pain... |
True, but ultimately the issues can be resolved with the appropriate design choices. For instance, to prevent conflicts with static assets, have theme specific assets inside a folder named after the theme (eg: Of course, there would still be the issue of conflicts with vendor assets, like a bootstrap v4 based theme would conflict with the core Sprinkles own bootstrap v3. So I see you point. |
I have a general idea how I want to handle themes in UF. Spoiler alert, it involves |
In reference to #818, the second "official" UF theme could be Bootstrap 4 based... |
Per my discussion with @lcharette in chat, we've decided that the best way to go forward with themes, is to simply define a "dynamic theme" as a series of Sprinkles from which to dynamically add paths to templates, assets, and locales. Please note that there might be some overlap with "static themes", which would simply be additional Sprinkles that are loaded on top of the rest of the Sprinkles in the
SprinkleManager
ctor inindex.php
.We've also discussed the difference between a "community theme" - a Sprinkle or Sprinkles that is generic enough that it could be useful to other developers doing other UF-based projects, and "site themes" which are highly specific to a particular project's layout and functionality, and so would not be useful to the wider community.
The text was updated successfully, but these errors were encountered: