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

    Can I import Quasar variables in my custom component style?

    Framework
    2
    2
    1636
    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.
    • M
      mariaczi last edited by mariaczi

      Hi,

      I decided to move one step forward and I am working on component for my project, but I want to share it in the future with all of you.
      It is (or WILL be 🙂 ) Image Picker which an be used for any elements which you want to associate picture with.

      I need of course to style it in line with quasar. What is the best way to do that?
      How can I use Quasar e.g. $primary color etc ? Also, how can I apply Quasar button styles to be consistent with framework? Can I anyhow import it or I have to copy full style?

      I suppose I should use Stylus but I do not know how to properly import Quasar theme to be able to use Quasar classes etc.

      I will appreciate any help.

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

        Have a look at http://forum.quasar-framework.org/topic/19/how-to-use-the-stylus-theme-variables-from-inside-components 😉

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