npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

color-picker-fork

v0.0.1

Published

A color picker component library

Downloads

7

Readme

Vue 3 Color Picker

A colour selective component for Vue 3. Fast and with small package size. Gradient and Solid in one! No dependency! Fully customisable!

Live Demo

gradient solid1

Install

NPM Install

 npm i @cyhnkckali/vue3-color-picker

Yarn Install

  yarn add @cyhnkckali/vue3-color-picker

Import

Import where you want to use it
import {Vue3ColorPicker} from '@cyhnkckali/vue3-color-picker';

Import the style file into your main.js file

import '@cyhnkckali/vue3-color-picker/dist/style.css'

Use/Examples

<script setup>
import {Vue3ColorPicker} from '@cyhnkckali/vue3-color-picker';
</script>

<template>   

    <Vue3ColorPicker v-model="value" mode="solid" :showColorList="false" :showEyeDrop="false" type="RGBA"/>

    <Vue3ColorPicker v-model="value" mode="gradient" :showColorList="false" :showEyeDrop="false"/>

</template>

Options

| Parameter | Type | Description | | :-------- | :------- | :------------------------- | | v-model | string | default ''| | mode | string | solid or gradient default gradient| | theme | string | light or dark default light| | type | string | Return colour value type HEX8 RGBA RGB HEX default HEX8| | inputType | string | Input type of colour values RGB HSL HSV CMYK default RGB| | disabled | boolean | default false | | local | object | default { angle: '', positionX: '', positionY: '' } | | colorListCount | number | Determines how many colours to keep in the colour list default 18| | showColorList | boolean | default true | | showEyeDrop | boolean | default true Supports Chrome and Edge only | | showAlpha | boolean | default true | | showInputMenu | boolean | default true | | showInputSet | boolean | default true | | iconClasses | object | default { linear: '', radial: '', ruler: '', eyeDroper: '', inputMenu: '', save: '', delete: '' } |

CSS Colour Variables

| Variables Name | Hex | Dark Hex | :----------------- | :--------------------------- | :-------------------------------------- | | --cp-container-bg | #FFF #FFF |#212529 #212529 | | --cp-ps-color | #707070 #707070 | | --cp-act-color| #5983fc #5983fc | | --cp-range-border | #f7f7f7 #f7f7f7| | --cp-input-menu-bg | #F5F5F5 #F5F5F5|#242629 #242629|
| --cp-border-color | #e5e5e5 #e5e5e5| #43474b #43474b| | --cp-range-shadow | #4c86f3 #4c86f3| | --cp-label-color | #787878 #787878| | --cp-container-shadow| #58585881 #58585881|#2b262696 #2b262696| | --cp-font-color | #141414 #141414|#e7e7e7 #e7e7e7| | --cp-button-color | #F5F5F5 #F5F5F5|#1a1d20 #1a1d20|

Roadmap

  • Widget type to add