1 | QColorizeMixin
|
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 |
|
7 | 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).
|
8 |
|
9 | # Features
|
10 |
|
11 | Allows you to "skin" your component with customized text, background and border colors. You can use:
|
12 | 1. any color from the [Quasar Color Palette](https://quasar.dev/style/color-palette#Color-List),
|
13 | 2. any # color (ex: `#c0c0c0`),
|
14 | 3. rgb/rgba/hsl/hsla color (ex: `rgb(255,0,0)`),
|
15 | 4. any css named colors (ex: `ghostwhite`) or
|
16 | 5. any Quasar colors from css var (ex: `--q-color-red-10`)
|
17 | 6. any Quasar colors as `border-` (ex: `border-blue-grey-10`)
|
18 |
|
19 | This is a lot of choices!
|
20 |
|
21 | # Install
|
22 | To add this mix-in to your Quasar application, run the following (in your Quasar app folder):
|
23 |
|
24 | ```bash
|
25 | yarn add q-colorize-mixin
|
26 |
|
27 | # or
|
28 |
|
29 | npm install q-colorize-mixin
|
30 | ```
|
31 |
|
32 | # Uninstall
|
33 | To remove this mix-in from your Quasar application, run the following (in your Quasar app folder):
|
34 |
|
35 | ```bash
|
36 | yarn remove q-colorize-mixin
|
37 |
|
38 | # or
|
39 |
|
40 | npm remove q-colorize-mixin
|
41 | ```
|
42 |
|
43 | # Documentation and Examples
|
44 | Examples with code can be found [here](https://hawkeye64.github.io/q-colorize-mixin/examples).
|
45 |
|
46 | # Demo Project (source)
|
47 | Source 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
|
87 | If you appreciate the work that went into this, please consider [donating to Quasar](https://donate.quasar.dev).
|
88 |
|
89 | # License
|
90 | MIT (c) Jeff Galbraith <jeff@quasar.dev>
|