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

    Webstorm autocomplete stylus variables

    Framework
    3
    4
    258
    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.
    • R
      rup last edited by rup

      Hi,

      Any idea how to achieve autocompletion of Quasar Stylus variables?

      Would be amazing for the <style> section, so, we can use directly the variables like $spaces, $breakpoints or colors in the styles.

      I tried and it only works with:

      <style lang="stylus" scoped>
        @import '~src/css/quasar.variables.styl';
        .cls { color:  $primary;  }
      </style>
      

      E.g. it autocompletes `$primary".

      But not with ~quasar/dist/quasar.styl nor ~quasar/src/css/variables.styl.

      So, my workaround is to just copy ~quasar/src/css/variables.styl to src/css/quasar-variables.styl and then include them from quasar.variables.styl at the end @import 'quasar-variables.styl'. At least getting autocompletion in webstorm.

      Any better suggestion?

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

        @panstromek might be able to help more here.

        Scott

        1 Reply Last reply Reply Quote 0
        • R
          rup last edited by

          @panstromek any help?

          1 Reply Last reply Reply Quote 0
          • P
            panstromek last edited by

            I was thinking about solving this somehow in ide-helper, yea. But I didn’t get to it in the end. I get autocomplete from project files even without import though, so the easiest thing you can do is to just copy the file with variables into some ignored folder in the project (that’s probably what I would do with the ide-helper anyway, just automatically).

            86c4640d-f4a2-42d9-82b4-21000ccef2a0-image.png

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