Stylus Variables

There are Stylus variables built into Quasar that you can change and/or use within devland should you wish to. This applies to apps built with Quasar CLI or Vue CLI only.


In your app’s *.vue files you can use the colors as $primary, $red-1, and so on.

<!-- Notice lang="stylus" -->
<style lang="stylus">
// "quasar-variables" is a Webpack alias injected by Quasar CLI
@import '~quasar-variables'

  color $red-1
  background-color $grey-5


Depending on whether you are using Quasar CLI or Vue CLI, you will notice that your project folder has src/css/quasar.variables.styl (Quasar CLI) or src/styles/quasar.variables.styl (Vue CLI).

You can freely override any of Quasar’s variables (see next section) in those files. For convenience, these files initially contain only the brand color-related variables.

As opposed to v0.x, Quasar is now very easy to customize without the need of tampering with the Stylus variables, so make sure that you really need to do that.

Variables list