No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Dynamic theme change

    Framework
    4
    6
    2768
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cst_zf last edited by

      Can i change quasar’s theme by javascript or by device detecting?

      1 Reply Last reply Reply Quote 0
      • a47ae
        a47ae last edited by a47ae

        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

        C 1 Reply Last reply Reply Quote 1
        • C
          cst_zf @a47ae last edited by

          @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?

          1 Reply Last reply Reply Quote 0
          • M
            Max last edited by Max

            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

            C 1 Reply Last reply Reply Quote 0
            • C
              cst_zf @Max last edited by

              @Max i mean if we can do this handily or with the help of other library.

              1 Reply Last reply Reply Quote 0
              • mesqueeb
                mesqueeb last edited by

                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-stylus

                It works great!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post