Dynamic theme change
-
Can i change quasar’s theme by javascript or by device detecting?
-
I think there is a recent thread on the forum where it is stated that due to how the webpack build works it is not possible at the moment to change the theme at runtime.
Edit: Here is the link to the other conversation: http://forum.quasar-framework.org/topic/535/css-platform-detection/2
-
@a47ae i remember that jquery-ui can load the theme dynamicly. is there any difficult to use the same technology to reload the theme in progressive web app?
-
there has been some talk about this feature…but currently its not on top priority… so assume for now switching themes easily on demand is not possible
-
@Max i mean if we can do this handily or with the help of other library.
-
You can Dynamically change the default Quasar theme with a special Stylus mixin.
The creation of the mixin and the usage both explained towards the end of this thread:
http://forum.quasar-framework.org/topic/1756/transform-scss-mixins-to-stylusIt works great!