Metadecidim
Sign in

Process

Co-creating the roadmap 2025–2027

not yet on protocol

Easier theming e.g. for Bootstrap UI framework

Currently all Decidim’s UI functionality is quite attached to the underlying UI framework, Foundation. However, in some cases it seems it would be useful to be able to use other UI frameworks with Decidim, too.

For example at City of Helsinki they have developed their own UI framework that gives developers easy access to the City of Helsinki branding assets and make it easy to apply to new projects. For existing projects

I believe the end goal at Helsinki would be that they can make changes to the UI library in one place and eventually the change will roll out to all the services they have. Helsinki has a bunch of digital services you can check at (in Finnish):
https://digi.hel.fi/projektit/

I have attached a more detailed explanation in this proposal about the problems with the current version of Decidim to be able to easily swap the UI framework.

Documents

5 comments

  1. How do you see this feature? It could be great to have more styling options, but I don't think we can stop relying on Foundation.

    0 votes up 0 votes down
    1. I agree that it's not easy to accomplish and would require a lot of refactoring on the codebase. The biggest issue is that the markup in all components/views is quite attached to Foundation which also caused the amount of overrides when we did the first iteration in trying to switch the UI framework.

      I haven't fully thought out the technicalities on this but one option would be to extract all the framework specific layout to their own partials. I wrote a quick (not fully thought out) example of this idea just to demonstrate this:
      https://gist.github.com/ahukkanen/17c6c8aebde176cfa8b8805f349dfdf0

      I emphasize that it's not an easy change and it would need quite a lot of effort and some amount of funds for development work and commitment from the community in order to achieve this.

      I just put this proposal here to get some feedback whether this would be even feasible to implement in Decidim. In case this gets support (and funds), we can think about the technical details further.

      0 votes up 0 votes down
      1. We were thinking at OSP that it could be interesting to enhance de number of scss variables one could modify to give further personalization possibilities. This is less aggressive than switching UI framework and maybe we could build whole themes on top of it.

        3 votes up 0 votes down
        1. The variables direction is also good but I can tell that you can never fulfill 100% of the use cases with only variables. Currently we have customized the Foundation theme for their use (even beyond the variables, some actual customizations) but it's still not 100% pixel-to-pixel with their layout. And every time they update their UI framework, we need to double that work to Decidim.

          For current use it is probably OK but for long term maintenance it may become an issue.

          1 votes up 0 votes down
    2. BootStrap is not totally necessary for us. We could probably convince our organizations to implement similar UI framework with Foundation (not right now, but on the long run). Enchacing the number of sccs variables and building themes would be very helpful (even though it does not cover all our customization needs).

      0 votes up 0 votes down

Sign in with your Atmosphere account to comment.