OK, so Wappler recompiles SASS and overwrites the default BS CSS file.
I haven’t thought this out in detail because I normally write my own SASS and insert the compiled style sheet(s) after the default BS CSS file – like Wappler does with custom stylesheets.
To show the client a different theme, I simply comment the linked stylesheet out or temporarily change the css file name so the webpages can’t find it and it defaults to the main stylesheet.
Anyway, it’s not a big deal, I just thought I’d ask in case I was missing a way to do this in Wappler but…. if I were to imagine how this might be done, I’d imagine:
you create one theme via Wappler’s BS Theme Manager (bootstrap.min.css)
you’d attach a custom style sheet and apply a different BS Theme to it.
You’d build a toggle switch/button on your webpage that comments-out the second css file link (and turns it back on again). If you had more than 2 themes, it would toggle through each theme in a loop.
I see it working in a similar way to websites that give you the option to view the website in ‘day’ or ‘night’ mode.
Having said that, I’m not sure if this would be used enough to warrant putting it in as a feature request, I was simply checking out if there was an automatic way of doing what I normally do manually.
Thanks @Teodor and @bpj