Skip to content
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

Dynamic Theme Switching Support #1184

Open
dchambers opened this issue Jan 21, 2015 · 1 comment
Open

Dynamic Theme Switching Support #1184

dchambers opened this issue Jan 21, 2015 · 1 comment

Comments

@dchambers
Copy link
Contributor

Unlike BladeRunner, BladeRunnerJS doesn't support dynamic theme switching within the user interface. This is mostly because we now support static-file-export, which requires a client-side rather than a server-side solution to dynamic theme switching. We do however support application theming, but where the theme is chosen in development, which is only really useful for applications that want to support easy white-labelling.

@minlokchan minlokchan added this to the Post 1.0 milestone Jan 29, 2015
@AndyLyons
Copy link

I was asking @andyberry88 about this earlier. We're trying to do theme switching on the mobile app and ran into problems here. We want to be able to switch themes via a URL parameter for demos, but can't as the theme CSS is currently generated and linked into the document at build time via the css.bundle tag.

We have a workaround for now by doing a find/replace at run time for the linked CSS files and replacing the theme name with the one specified on the URL parameter, however this relies on the "ct-css" folder which seems to contain all the bundled themes rather than just the one specified in the css.bundle tag.

It would be nice if BRJS made this easier to manage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants