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

    Css and reinventing framework ?

    Framework
    4
    11
    4033
    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.
    • druppy
      druppy last edited by

      Again, really framework, but I end up having some questions about some of the design goals in Quasar ?

      It seems like it uses 100% its own Css (stylus) framework, and I quess this is due to the fact the there is support for both IOS and Android/MDL. But what worry’s me is that all the work done in the CSS part of, lets say MDL, will not benefit Qursar, except if someone manually imported these.

      What is the reason for this choice regarding the CSS part of Quasar and are there any wish to start harmonizing the css towards MDL or other CSS frameworks, to benefit from other peoples hard work ?

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Hi,

        I’m going to give a high-level overview of why it’s best for Quasar to have its own CSS framework.

        1. Control of quality & timely fixes. Quasar’s CSS framework is done with performance in mind. Most of the external CSS frameworks have their own JS library that must be loaded. You can’t expect everything to fit in the most efficient way. Also see #2.
        2. Quasar has multiple themes (currently Material and iOS with more to come). Quasar components must work with multiple themes. Each CSS framework requires its own markup. MDL for example does not have all the components built in Quasar. Some other framework might have feature X but not feature Y. Quasar is the most complete framework out there. It would be a mess trying to integrate different frameworks. Performance & efficiency would be out of the question.
        3. Writing a framework with which you can simultaneously write a desktop responsive website & mobile apps is something that currently doesn’t exist at the moment (this was one of the reasons I started working on Quasar). Electron wrapper coming soon. These capabilities raise a lot of issues and require special CSS classes, like make a <div> visible only on Mobile but not on desktop etc etc etc. All external CSS frameworks are nowhere tweaked as Quasar’s to handle these many environments.
        4. Since every external CSS framework has its own markup, how would you be able to write same code to generate UIs that look native for Android and iOS simultaneously?

        I won’t get started to talk about the low level implementation cause the list would go on forever really 🙂 The reasons above just scratch the surface on why it’s better for Quasar to have its own CSS framework.

        1 Reply Last reply Reply Quote 2
        • druppy
          druppy last edited by

          Ok, thanks for taking you time to explain.

          I think I understand, and your arguments are worth considering, I just worry when things look like reinventing the wheel 🙂

          The special focus on for Quasar (platform themes), is a good argument, along with the logic normally found i other CSS (JQuery) libs make it hard to maintain a vue version of that logic part alone of the framework (like vue-strap and vue-mdl, that all take that approach) .

          Does all this not, on the other side, require a bit more documentation of the CSS parts too, or have you been using names and css concepts that resembles the classic frameworks, to keep the learning barrier low ?

          I think some of these arguments would be nice to have in some of the intro doc. Many developers are looking for new frameworks especially for vue2, and these arguments allong with the basic idea represent some of the philosophy behind Quasar.

          With a good community … this could be really solid 🙂

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

            Yes, documentation will be greatly improved after the API stabilizes and we’ll enter the first beta for v1.0 (happening soon). I’ve seen features that are under-used or not used at all and people trying to import external dependencies to have X feature (that is already in Quasar and working really well). It’s all documented, but people tend to not read documentation or skip steps. Also, the prerequisites I posted in the Getting Started are also overlooked so when reading documentation it’s really hard to understand how a Boolean Vue property can be used, or an event, and so on. Anyway, started rambling here. Main point is that yes, documentation will be greatly improved to focus on the most important use-cases.

            Thanks for sharing your thoughts!

            1 Reply Last reply Reply Quote 0
            • D
              davewallace last edited by davewallace

              Yes, thanks for that update, I wondered the same thing about documentation.

              Not having learned much practical Vue usage yet, but enjoying your implementation so far, I wondered if it would be possible to construct a single page containing available components to showcase, programmatically, the design principles being applied.

              If doing this by using exist infrastructure, might it reduce the documentation overhead as the framework matures?

              Just a thought, it was the first step I considered putting together myself so that I could understand themeing with Quasar in a visual way.

              I like that you’ve steered away from existing style frameworks to ensure optimisation is maintained and markup structure isn’t tethered to same-same ways of thinking. The technical debt incurred by this approach will be a burden until the merits of the decision are well laid out.

              EDIT: I have just now found and read through http://quasar-framework.org/components/list.html

              Awesome, absolutely awesome way of presenting all of the component information.

              1 Reply Last reply Reply Quote 0
              • rstoenescu
                rstoenescu Admin last edited by

                I wrote the Quasar Play App which showcases the usage of all components. Included it in the documentation website (the demo examples on the right are from this Quasar Play). You have the “View source” button or you can jump in and see the whole app code here: https://github.com/quasarframework/quasar-play

                1 Reply Last reply Reply Quote 1
                • H
                  hwiehen last edited by

                  @rstoenescu Hi,

                  I just wanted to follow up, with a question, on the responsive part.

                  The Components Guide shows all compontents in the context of a mobile screen. What would be the best way to see their style in a desktop context? I consider the responsive aspect really a significant differentiation to other frameworks in the eco-system. It might be beneficial to expose this in the Component Guide to show clearly it’s responsive capabilities.

                  Thank’s for Quasar. Great and impressive work.

                  1 Reply Last reply Reply Quote 0
                  • rstoenescu
                    rstoenescu Admin last edited by

                    Hi,

                    On each page in the doc website where there is a demo showing up there’s also a “view on desktop” button. This is so because of screen real estate reasons.

                    And yes, this is a major differentiating factor.

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      hwiehen @rstoenescu last edited by hwiehen

                      @rstoenescu Hi.

                      I can’t spot this “view on desktop” button on the docs page. Could you describe where to find it, please?
                      I attached a screenshot, how the docs page appears to me.

                      ![0_1479377637450_quasar-docs-page.png](Uploading 100%)

                      https://www.dropbox.com/s/py8dpgncs0839a7/quasar-docs-page.png?dl=0

                      rstoenescu 1 Reply Last reply Reply Quote 0
                      • rstoenescu
                        rstoenescu Admin @hwiehen last edited by

                        @hwiehen Zoom out until https://github.com/quasarframework/quasar-framework.org/issues/3 gets fixed.

                        0_1479410394997_Screenshot from 2016-11-17 21:18:26.png

                        1 Reply Last reply Reply Quote 0
                        • H
                          hwiehen last edited by

                          Found it. Thank you @rstoenescu .

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