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

    Theme Builder Presets

    Framework
    2
    10
    283
    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.
    • digiproduct
      digiproduct last edited by

      Are there any alternate presets available for the Theme Builder?

      I searched the forum, but didn’t find any mention of the Theme Builder that might point me in the right direction.

      I also tried a Google search but that didn’t find anything either.

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        What do you mean by alternate presets?

        Scott

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

          @s-molinari

          Alternate Preset = a set of predefined colours.

          For example, the “Standard” Preset …

          Primary #027BE3
          Secondary #26A69A
          Accent #9C27B0
          Positive #21BA45
          Negative #C10015
          Info #31CCEC
          Warning #F2C037

          It might be useful to provide a few other “presets” … eg, Bright, Muted, Shades of grey … and so on.

          I’m not good with colours as I suffer from red/green colour-blindness.

          It would be good to provide a few alternative starting points.

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            Ah. Ok. I would imagine it wouldn’t be too hard to build presets into the Theme Builder. In fact, I could imagine something like a simple color picker and based on the selection, the colors are generated automatically with some built in design rules. But, if this idea were to be suggested in the quasar repo on Github as an improvement, it would definitely be going to the bottom of the already huge to-do list and won’t be looked at until sometime after v1.0 goes final. I’m sure you understand. 😄

            Scott

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

              @s-molinari I understand that completely…

              I actually wondered if this could become a component QThemeBuilder … with instructions on how we could use the “export” as an “import” … so that individual users of our finished projects to use their own custom colour themes.

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by s.molinari

                Just be aware, and maybe you already know this, but that method of styling/ theming isn’t really dynamic or possible during runtime. Each theme would need a rebuild of the application and in a multi-tenant application, might not be totally feasible. What you’d need to do is build out your own components doing something similar as to what the Theme Builder does itself via dynamic class declarations like

                :class="`bg-${color} text-${dark[color] === true ? 'white' : 'black'}`"
                

                Scott

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

                  @s-molinari A page in the docs explaining something like that was exactly what I meant by “with instructions on how we could use the export as an import”

                  You’ve just explained exactly how we could achieve it … many thanks,

                  1 Reply Last reply Reply Quote 0
                  • s.molinari
                    s.molinari last edited by s.molinari

                    Um. Well, not as an import. 😄 But yeah, dynamic styling is possible, it just adds overhead. One should think about implementing dynamic styling wisely. That’s also the reason why dynamic styling (other than the dark prop and other minor styling props) is not completely built into Quasar. There is just too much to cover and being opinionated here will only cause major headaches for the development of Quasar and even the applications that are built with it. I’m sure there are other reasons, like avoiding bloat and lower performance too. That’s just my take also.

                    Scott

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

                      @s-molinari I agree with you regarding all those points … however, as Quasar grows, and extends it’s reach, I think run-time styling will be an issue many deveolers might wish to consider at some stage … but, yes, it should definitely be an optional thing rather than a built-in thing.

                      1 Reply Last reply Reply Quote 0
                      • s.molinari
                        s.molinari last edited by

                        It’s definitely possible and definitely optional. 😄 The way it should be.

                        Scott

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