Marketplace: Not sure how to approach multiple templates and libraries

So I have ideas in mind of several templates that I would like to make, but they would all center around a design system that includes colors, spacing, shadows, transitions and typography.

Then using those exact components, I would like to create templates such as an authentication kit, a marketing site kit or a finance dashboard kit. Each kit would consist of several pages that ideally would all link up with the initial design system.

Is this possible with the way the marketplace is currently set up? If not, what would be the best way to approach something like this to make it easiest for the user? My concern is that all of the assets will be duplicated for each of the modules. If I built out a whole Admin kit that someone wanted to attach onto their existing authentication kit would they have to go through and change all of the colors everywhere and swap out all other design system elements?

Currently that’s how it is. I have solved this by creating an onAppLoad workflow, that sets an object with colors/properties on the window, then you can change how this workflow is set up. How it works is that I get the colors from the wwLib.getFrontWindow().my_object.{color/property}. This way I can have dynamic colors for each client where I use the design systems. While it’s not the best, or not even a great solution, it’s what we came up with since WeWeb didn’t provide a way to do this yet.

2 Likes