UNPKG

2.13 kBMarkdownView Raw
1QColorizeMixin
2===
3
4![](https://img.shields.io/npm/v/q-colorize-mixin.svg?label=q-colorize-mixin)
5[![npm](https://img.shields.io/npm/dt/q-colorize-mixin.svg)](https://www.npmjs.com/package/q-colorize-mixin)
6
7QColorizeMixin 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).
8
9# Features
10
11Allows you to "skin" your component with customized text, background and border colors. You can use:
121. any color from the [Quasar Color Palette](https://quasar.dev/style/color-palette#Color-List),
132. any # color (ex: `#c0c0c0`),
143. rgb/rgba/hsl/hsla color (ex: `rgb(255,0,0)`),
154. any css named colors (ex: `ghostwhite`) or
165. any Quasar colors from css var (ex: `--q-color-red-10`)
176. any Quasar colors as `border-` (ex: `border-blue-grey-10`)
18
19This is a lot of choices!
20
21# Install
22To add this mix-in to your Quasar application, run the following (in your Quasar app folder):
23
24```bash
25yarn add q-colorize-mixin
26
27# or
28
29npm install q-colorize-mixin
30```
31
32# Uninstall
33To remove this mix-in from your Quasar application, run the following (in your Quasar app folder):
34
35```bash
36yarn remove q-colorize-mixin
37
38# or
39
40npm remove q-colorize-mixin
41```
42
43# Documentation and Examples
44Examples with code can be found [here](https://hawkeye64.github.io/q-colorize-mixin/examples).
45
46# Demo Project (source)
47Source for the demo application can be found [here](https://github.com/hawkeye64/q-colorize-mixin/tree/master/demo).
48
49# Building the Projects
50
51## Setup
52```bash
53$ yarn
54```
55
56## Developing
57```bash
58$ cd ui
59
60# start dev in SPA mode
61$ yarn dev
62```
63
64## Building package
65```bash
66$ cd ui
67
68$ yarn build
69```
70
71## Building Demo
72```bash
73# first time prep
74$ cd ui
75$ yarn link
76$ cd ../demo
77$ yarn link "q-colorize-mixin"
78
79# for interactive - browser opens automatically
80$ quasar dev
81
82# for build - goes to docs folder
83$ yarn build-demo
84```
85
86# Donate
87If you appreciate the work that went into this, please consider [donating to Quasar](https://donate.quasar.dev).
88
89# License
90MIT (c) Jeff Galbraith <jeff@quasar.dev>