1. @ckpack/vue-color
(vue3.0) 🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more
@ckpack/vue-color
Package: @ckpack/vue-color
Created by: ckpack
Last modified: Thu, 15 Jun 2023 09:01:51 GMT
Version: 1.5.0
Downloads: 88,165
Repository: https://github.com/ckpack/vue-color

Install

npm install @ckpack/vue-color
yarn add @ckpack/vue-color

vue-color

Modified based on https://github.com/xiaokaike/vue-color to support vue3.0

🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more

image

Demo

Use case

On demand

We can import components we actually need, making the project smaller than otherwise.

Import Directly
 <template>
  <Sketch v-model="colors"/>
</template>
<script setup>
import { ref } from 'vue';
import { Sketch } from '@ckpack/vue-color';

const colors = ref('#194D33A8'); // etc: { h: 150, s: 0.66, v: 0.30 }, { r: 255, g: 0, b: 0 }, '#194d33' 
</script>
Install on Demand Globally
 import { createApp } from 'vue';
import App from '@/App.vue';
import { Sketch, create } from '@ckpack/vue-color';

const app = createApp(App);
app.use(create({
  components: [Sketch],
}));
app.mount('#app');

Fully import

 import { createApp } from 'vue';
import App from '@/App.vue';
import VueColor from '@ckpack/vue-color';

const app = createApp(App);

app.use(VueColor);
app.mount('#app');

CHANGELOG

License

vue-color is licensed under The MIT License.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin