DEV Community

Yasunori Tanaka
Yasunori Tanaka

Posted on

2 2

[WIP] Quasar

Quasar

Style

Quasar component and css style is almost same of Vuetify. If you are familiar with Vuetify, Quasar is easy to understand.

<q-layout view="hHh lpR fFf">
    // same of Vuetify's v-app-bar
    <q-header>...

    // same of Vutify's v-navigation-drawer
    <q-drawer>...

    // specify color with class
    <div class=text-blue bg-primary>
Enter fullscreen mode Exit fullscreen mode

Theme builder

You can create your project's theme with the theme builder.

Alt Text

After build, you will get your style. Below is the example in SASS.

$primary   : #027BE3
$secondary : #26A69A
$accent    : #9C27B0

$dark      : #1D1D1D

$positive  : #21BA45
$negative  : #C10015
$info      : #31CCEC
$warning   : #F2C037

$primary   : #f39800
$secondary : #f19c00
$accent    : #f17b38
Enter fullscreen mode Exit fullscreen mode

Set your them in Quasar option.

quasar-user-option.js

export default {
  config: {
    brand: {
      primary: "#f39800",
      secondary: "#f19c38",
      accent: "#f17b38",

      dark: "#1d1d1d",

      positive: "#55e700",
      negative: "#e70055",
      info: "#0055e7",
      warning: "#e7d400",
    },
  },
  plugins: {},
  lang: lang,
};

Enter fullscreen mode Exit fullscreen mode

Use Quasar with the option in Vue.

main.ts

import quasarUserOptions from "./quasar-user-options";

const app = createApp(App);
app.use(Quasar, quasarUserOptions);
Enter fullscreen mode Exit fullscreen mode

Layout builder

Quasar provides us common layout patterns. At first before/after we can generate Vue template with GUI.

Alt Text

The generated template is compatible with Vue Router. You just copy and paste it into your root Vue component.

Alt Text

PrimeVue

Style

<template>
  <div class=>
  <div>
    <Menubar :model="items">
      <template #start>
        asa
        <i style="color: var(--text-color)" class="pi pi-apple"></i>
      </template>
    </Menubar>
    <router-view></router-view>
  </div>
Enter fullscreen mode Exit fullscreen mode

Theme builder

Layout builder

we should

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay