q-colorize-mixin

Quasar color mixin
41,510 3
Install
npm install q-colorize-mixin@1.0.10
Latest Version:1.0.10
License:MIT
Last Updated:Mar 27, 2021
Links: GitHub  ·  npm
Maintainer: hawkeye64

QColorizeMixin

QColorizeMixin

QColorizeMixin is a Vue Mix-in library for components created with Quasar Framework. It is only for components that use a render function. It does not work with template formats found with SFC (single file components).

Features

Allows you to "skin" your component with customized text, background and border colors. You can use:

  1. any color from the Quasar Color Palette,
  2. any # color (ex: #c0c0c0),
  3. rgb/rgba/hsl/hsla color (ex: rgb(255,0,0)),
  4. any css named colors (ex: ghostwhite) or
  5. any Quasar colors from css var (ex: --q-color-red-10)
  6. any Quasar colors as border- (ex: border-blue-grey-10)

This is a lot of choices!

Install

To add this mix-in to your Quasar application, run the following (in your Quasar app folder):

yarn add q-colorize-mixin

# or

npm install q-colorize-mixin

Uninstall

To remove this mix-in from your Quasar application, run the following (in your Quasar app folder):

yarn remove q-colorize-mixin

# or

npm remove q-colorize-mixin

Documentation and Examples

Examples with code can be found here.

Demo Project (source)

Source for the demo application can be found here.

Setup

$ cd ui

$ yarn

Developing

# start dev in SPA mode
$ yarn dev

Building package

$ yarn build

Building Demo

# first time prep
$ cd ui
$ yarn link
$ cd ../demo
$ yarn link "q-colorize-mixin"

# for interactive - browser opens automatically
$ quasar dev

# for build - goes to docs folder
$ yarn build-demo

Donate

If you appreciate the work that went into this, please consider donating to Quasar or Jeff.

License

MIT (c) Jeff Galbraith jeff@quasar.dev

Related Packages

quasar-app-extension-storagedirective

A Quasar AE for a Vue Custom Directive for persistency of v-model vars

404
@apostrophecms/vue-color

Fork of vue-color that allows null values

9,228 0
vue-computed-dimensions

A mixin which allows component HTML dimensions (width, height, x and y positions...

7,109
vue-color-sketch

Color of Vue Components

1,882
@ckpack/vue-color

(vue3.0) 🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more

4,440,283 188

Version History

Version Released License
1.0.10 MIT
1.0.9 MIT
1.0.8 MIT
1.0.7 MIT
1.0.6 MIT
Pre-releases (10)
Version Released License
2.0.0-alpha.7 MIT
2.0.0-alpha.6 MIT
2.0.0-alpha.5 MIT
2.0.0-alpha.4 MIT
2.0.0-alpha.3 MIT