Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div id="q-app">
  <div class="q-pa-md">
      <q-toolbar class="bg-listtoolbar text-white shadow-15">
        <q-toolbar-title>
          <q-icon name="fas fa-user-friends" class="q-pl-md"></q-icon>
          <span class="q-pl-lg">LEADS</span>
        </q-toolbar-title>

        <q-space></q-space>
        <q-btn
          color="actionbutton"
          text-color="actionTextColor"
          ripple
          icon="far fa-user"
          label="ADD NEW LEAD"
        ></q-btn>
      </q-toolbar>
    </div>
  <div class="q-pa-md">
    <q-btn label="red" color="red" @click="click('red')"></q-btn>
    <q-btn label="blue" color="blue" @click="click('blue')"></q-btn>
   
  </div>
</div>
              
            
!

CSS

              
                // app brand styles
$actionbutton = #FFC107
$cancelbutton = #FFFFFF
$listToolbar = #31CCEC

:root
  --q-color-actionbutton $actionbutton
  --q-color-cancelbutton $cancelbutton
  --q-color-listtoolbar $listToolbar

// actionbutton - for action buttons
.text-actionbutton
  color $actionbutton
.bg-actionbutton
  background $actionbutton !important
  background: var(--q-color-actionbutton) !important
.text-actionbuttonTextColor
  color #FFFFFF

// cancelbutton - for cancel buttons
.text-cancelbutton
  color $cancelbutton
.bg-cancelbutton
  background $cancelbutton !important
  background: var(--q-color-cancelbutton) !important
.text-cancelbuttonTextColor
  color #000000

// listtoolbar - for q-list Toolbar
.text-listtoolbar
  color #31CCEC
.bg-listtoolbar
  background: $listToolbar !important
  background: var(--q-color-listtoolbar) !important
.text-listtoolbarTextColor
  color #FFFFFF


              
            
!

JS

              
                new Vue({
  el: '#q-app',
  data: function () {
    return {
      version: Quasar.version
    }
  },
  methods: {
  	click(color) {
      Quasar.utils.colors.setBrand('listtoolbar', color)
    }
	}
})
              
            
!
999px

Console