The discussion addresses the limitation of enabling only one site customization at a time, a constraint that the UI misleadingly suggests is possible. sam proposes a spec to resolve this by adding a “position” field to the site_customization table, allowing users to order multiple customizations, and merging them into a single CSS file. The plan also involves moving the “suppress default style sheet” option to a hidden site setting. radq confirms this requires moving the override option to a site setting, which sam agrees to refine. Users like Onaldan and kkershaw express strong support for splitting large CSS files into modular components for easier management and feature toggling. However, TheLoneCuber highlights the frustration caused by the lack of clear warnings, noting they wasted hours troubleshooting because the platform penalizes the good practice of modular CSS. codinghorror initially argues against the complexity of multiple customizations, but sam defends the approach for long-term modularity, suggesting a compromise with “work in progress” and “live” states. TheLoneCuber reiterates that while modularity is valuable, users must be explicitly informed about current limitations. sam confirms the feature has been implemented. Finally, dictoon inquires about beta5 support and later clarifies dictoon that the feature works once CSS code is properly adapted.
At the moment you can not enable multiple site customizations at once, even though the UI misleads you to think you can.
Spec
Add a “position” field to the site_customization table
Allow people to order the customizations (highlight selected)
Amend the internals to include multiple customizations in the correct order (one file only for css)
Add a new hidden site setting “suppress_default_style_sheet” default false. Allow people to toggle it from this screen. Rip it out of the site customization model.
This just costs me 3 hours of troubleshooting: is it still the case that only one customisation can be enabled at a time? If so, can a simple notice be added on the existing customisation page to point out this bug, because I’m surely not the first or last who’ll fall victim to it?
And as @Sam points out, the UI does mislead you into thinking that multiple customisations work. So I was modulating my CSS, which, as it turns out, Discourse punishes you for [the good practice of].
As a new Discourse user I’ve been very impressed by the platform. But, I’ve spent ten times longer troubleshooting on meta.discourse.org than I’ve spent tweaking my own instance of it. And when you’re setting up a new Discourse and making many changes, it’s not always obvious what has caused a problem. So you search on Meta, find a topic that might be the cause, reply to it (which bumps it up to top of Meta, making others more likely to find it), only to later discover that that topic is totally unrelated to your problem and had the known problem been made known to everyone in the UI then we’d all be having a much better experience.
Why not tell all users what is already known — that only one customisation can be enabled at a time — instead of forcing them to fall into the trap and then find their own way out?
I gives zero option to work on a new design, I am happy to change it so there are 2 options though.
“work in progress” and “live”
I still think long term this spec is best because it allows users create more modular customisations. It is often easier to work with 10 css files than 1 css file that has everything.
I’m all for modularity, especially in Discourse customisations, and I would hate to see it disappear. Multiple customisations allow you to easily trial and/or troubleshoot mods with great[er] ease. I just think users should know that they can’t run more than one mod at once.
Another +1, would be nice to be able to split CSS into different files so that features/themes could be easily activated/deactivated while keeping a central base/foundation theme active.