All Projects → xiaokaike → Vue Color

xiaokaike / Vue Color

Licence: mit
🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more http://vue-color.surge.sh

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Vue Color

Gimpshop Reloaded
✏️ GIMP mod to make it similiar to Adobe's product. Best free alternative to Photoshop
Stars: ✭ 81 (-96.43%)
Mutual labels:  photoshop
Ui Dna
programmable and semantically UI design tool for Photoshop
Stars: ✭ 126 (-94.44%)
Mutual labels:  photoshop
Nglemp
Best Photoshop CC 2019-2021 plugin.
Stars: ✭ 150 (-93.39%)
Mutual labels:  photoshop
Psd Parser
Photoshop Document Parser for .Net
Stars: ✭ 87 (-96.16%)
Mutual labels:  photoshop
React Color
🎨 Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
Stars: ✭ 10,287 (+353.57%)
Mutual labels:  photoshop
Sweetercolor
A color extension for Swift with Photoshop blending.
Stars: ✭ 129 (-94.31%)
Mutual labels:  photoshop
Minipaint
online image editor
Stars: ✭ 1,014 (-55.29%)
Mutual labels:  photoshop
Wiki
A wiki about ExtendScript features, tricks, workarounds, magic and rainbow unicorns
Stars: ✭ 161 (-92.9%)
Mutual labels:  photoshop
Dawnbringer Palettes
Limited color palettes by DawnBringer in various formats.
Stars: ✭ 112 (-95.06%)
Mutual labels:  photoshop
Psdinfo
Inspect PSD files from the command line
Stars: ✭ 144 (-93.65%)
Mutual labels:  photoshop
Libqpsd
PSD (Photoshop Document) & PSB (Photoshop Big) Plugin for Qt/C++ (Qt4/Qt5)
Stars: ✭ 90 (-96.03%)
Mutual labels:  photoshop
Bjango Actions
A collection of Photoshop actions, Photoshop scripts, Hazel rules, macOS workflows and other random things for screen designers and developers.
Stars: ✭ 1,407 (-37.96%)
Mutual labels:  photoshop
Ag Psd
Javascript library for reading and writing PSD files
Stars: ✭ 135 (-94.05%)
Mutual labels:  photoshop
Mydailylearn
🚀 Important commands, Code Snippets, Basics on different topics learning daily 🎉!
Stars: ✭ 87 (-96.16%)
Mutual labels:  photoshop
Psd2unityimporter
An advanced PSD importer tool for Unity
Stars: ✭ 155 (-93.17%)
Mutual labels:  photoshop
Photoshop deep cleaner
photoshop metadata deep clean script. PSD文件垃圾清理
Stars: ✭ 46 (-97.97%)
Mutual labels:  photoshop
Photoshop Python Api
Python API for Photoshop.
Stars: ✭ 126 (-94.44%)
Mutual labels:  photoshop
Icondrop
Get access to 2 million+ design resources right inside Adobe Xd, Figma, Sketch, Microsoft Office, G Suite and many more.
Stars: ✭ 174 (-92.33%)
Mutual labels:  photoshop
Photoshopcclinux
Photoshop CC v19 installer for Gnu/Linux
Stars: ✭ 2,894 (+27.6%)
Mutual labels:  photoshop
Psd Templates Requirements
Требования, пожелания и рекомендации к PSD (и не только) макетам
Stars: ✭ 140 (-93.83%)
Mutual labels:  photoshop

vue-color

npm

Color Pickers for Sketch, Photoshop, Chrome & more with Vue.js(vue2.0).

Live demo

intro

Installation

NPM

$ npm install vue-color

CommonJS

var Photoshop = require('vue-color/src/Photoshop.vue');

new Vue({
  components: {
    'Photoshop': Photoshop
  }
})

ES6

import { Photoshop } from 'vue-color'

new Vue({
  components: {
    'photoshop-picker': Photoshop
  }
})

Browser globals

The dist folder contains vue-color.js and vue-color.min.js with all components exported in the window.VueColor object. These bundles are also available on NPM packages.

<script src="path/to/vue.js"></script>
<script src="path/to/vue-color.min.js"></script>
<script>
  var Photoshop = VueColor.Photoshop
</script>

Local setup

npm install
npm run dev

Usage

var colors = {
  hex: '#194d33',
  hex8: '#194D33A8',
  hsl: { h: 150, s: 0.5, l: 0.2, a: 1 },
  hsv: { h: 150, s: 0.66, v: 0.30, a: 1 },
  rgba: { r: 25, g: 77, b: 51, a: 1 },
  a: 1
}
// or
var colors = '#194d33'
// or
var colors = '#194D33A8'
// or 
var colors = { h: 150, s: 0.66, v: 0.30 }
// or 
var colors = { r: 255, g: 0, b: 0 }
// etc...

new Vue({
  el: '#app',
  components: {
    'material-picker': material,
    'compact-picker': compact,
    'swatches-picker': swatches,
    'slider-picker': slider,
    'sketch-picker': sketch,
    'chrome-picker': chrome,
    'photoshop-picker': photoshop
  },
  data () {
    return {
      colors
    }
  }
})

colors accepts either a string of a hex color '#333' or a object of rgb or hsl values { r: 51, g: 51, b: 51 } or { h: 0, s: 0, l: .10 }, whatever tinycolor2 accepts as an input.

<!-- suppose you have the data 'colors' in your component -->
<material-picker v-model="colors" />
<compact-picker v-model="colors" />
<swatches-picker v-model="colors" />
<slider-picker v-model="colors" />
<sketch-picker v-model="colors" />
<chrome-picker v-model="colors" />
<photoshop-picker v-model="colors" />

OR

<chrome-picker :value="colors" @input="updateValue"></chrome-picker>

In some cases you can give the component a predefined set of colors with the property presetColors (for Sketch only) or palette (for Compact and Grayscale), by simply passing it an array with the color values as strings in any css compatible format.

<sketch-picker 
  @input="updateValue"
  :value="colors"
  :preset-colors="[ 
    '#f00', '#00ff00', '#00ff0055', 'rgb(201, 76, 76)', 'rgba(0,0,255,1)', 'hsl(89, 43%, 51%)', 'hsla(89, 43%, 51%, 0.6)'
  ]"
></sketch-picker>

<compact-picker 
  @input="updateValue"
  :value="colors"
  :palette="[ 
    '#f00', '#00ff00', '#00ff0055', 'rgb(201, 76, 76)', 'rgba(0,0,255,1)', 'hsl(89, 43%, 51%)', 'hsla(89, 43%, 51%, 0.6)'
  ]"
></compact-picker>

License

vue-color is licensed under The MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].