All Projects → easylogic → codemirror-colorpicker

easylogic / codemirror-colorpicker

Licence: MIT license
colorpicker with codemirror

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
SCSS
7915 projects

Projects that are alternatives of or similar to codemirror-colorpicker

vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (-22.12%)
Mutual labels:  palette, style
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+139.82%)
Mutual labels:  palette, colorpicker
kaleidoscope
🍀 A small collection of creative nodes to generate color palette and store values for Blender
Stars: ✭ 99 (-12.39%)
Mutual labels:  palette, addon
colorgrab
A cross-platform color picker
Stars: ✭ 80 (-29.2%)
Mutual labels:  palette, colorpicker
glitz
Lightweight CSS-in-JS library with high performance written in TypeScript
Stars: ✭ 42 (-62.83%)
Mutual labels:  style
Google-4-TbSync
This provider add-on adds Google synchronization capabilities to TbSync. Only contacts and contact groups are currently managed, using Google's People API.
Stars: ✭ 36 (-68.14%)
Mutual labels:  addon
SubServers-2
SubServers – The Minecraft Server Management Platform
Stars: ✭ 80 (-29.2%)
Mutual labels:  addon
addon-zwavejs2mqtt
Z-Wave JS to MQTT - Home Assistant Community Add-ons
Stars: ✭ 68 (-39.82%)
Mutual labels:  addon
wow-api-docs
An in-game graphical browser for Blizzard's API Documentation
Stars: ✭ 16 (-85.84%)
Mutual labels:  addon
djangocms-style
django CMS Style is a plugin for django CMS that allows you to create a HTML container containing classes, styles, ids and other attributes.
Stars: ✭ 39 (-65.49%)
Mutual labels:  addon
djangocms-file
django CMS File is a set of plugins for django CMS that allow you to add files to your site You can either choose a single file or an entire folder.
Stars: ✭ 30 (-73.45%)
Mutual labels:  addon
CodeMirror-Swift
CodeMirror-Swift is a lightweight wrapper of CodeMirror for macOS and iOS
Stars: ✭ 71 (-37.17%)
Mutual labels:  codemirror
Prestyler
Elegant text formatting tool in Swift 🔥
Stars: ✭ 36 (-68.14%)
Mutual labels:  style
QSvgStyle
QSvgStyle is a themeable SVG style for Qt5 applications
Stars: ✭ 66 (-41.59%)
Mutual labels:  style
react-native-highlighted-text
A React Native component to individually style texts inside a text
Stars: ✭ 18 (-84.07%)
Mutual labels:  style
inbedby7pm
My other theme was for Night Owls like myself. This theme was requested for by the "In Bed by 7pm" crowd
Stars: ✭ 125 (+10.62%)
Mutual labels:  palette
Anki-Night-Mode
Enabling studying at night with Anki - without eye strain
Stars: ✭ 72 (-36.28%)
Mutual labels:  addon
laravel-blueprint-pestphp-addon
A PestPHP addon for Laravel Shift's Blueprint
Stars: ✭ 30 (-73.45%)
Mutual labels:  addon
lsdpatch
LSDj Patcher
Stars: ✭ 114 (+0.88%)
Mutual labels:  palette
KAM
The ACE Advanced Medical System is nice, but we can do it better, even on a more realistic way and bring it on another level with these addons.
Stars: ✭ 19 (-83.19%)
Mutual labels:  addon

Colorpicker With CodeMirror

This project was created to implement a color picker. It implemented basic functions for color and implemented image filters.

https://colorpicker.easylogic.studio/

License: MIT

NPM

Sample Image

Install

npm

npm install codemirror-colorpicker

bower

bower install codemirror-colorpicker 

How to use (for browser)

<link rel="stylesheet" href="https://github.com/codemirror-colorpicker/dist/codemirror-colorpicker.css/>
<script src="https://github.com/codemirror-colorpicker/dist/codemirror-colorpicker.min.js"></script>

How to use (for require, nodejs)

after npm install

script

require( 'codemirror-colorpicker' );

or 

// es6
import 'codemirror-colorpicker/dist/codemirror-colorpicker.css'
import 'codemirror-colorpicker' 

style

<link rel="stylesheet" href="https://github.com/node_modules/codemirror-colorpicker/dist/codemirror-colorpicker.css">

ColorPicker Options for CodeMirror

Set option - View mode

{
  colorpicker : true
}

Set option - Edit mode (open color picker)

{
  colorpicker : {
      mode : 'edit'
  }
}

Support short cut (for popup color picker)

It can open color picker on current cursor.

{
  colorpicker : {
      mode : 'edit'
  },
  extraKeys : {
        // when ctrl+k  keys pressed, color picker is able to open. 
        'Ctrl-K' : function (cm, event) {
            cm.state.colorpicker.popup_color_picker();
       }
  }
}

Support custom color paletts (since v1.5)

You can set custom color paletts (ex : material, ...).

{
  colorpicker : {
      mode : 'edit',
      colorSets: [
        { name : 'Material', colors : [ '#ffff', 'rgba(255, 255, 0, 0.5)' ] },
        { name : 'My Colors', colors : [ 'red', 'blue', 'white' ] },
        { name : 'Input Colors', edit: true  },   // editable 
      ]
  }
}

Support color scale for palette

{
  colorpicker : {
      mode : 'edit',
      colorSets: [
        { name : 'Scale Colors', scale: ['red', 'yellow', 'black'], count : 5  }, 
      ]
  }
}

Support Sketch Style

{
  colorpicker : {
      mode : 'edit',
      type: 'sketch'
  }
}

Support Box Style

{
  colorpicker : {
      mode : 'edit',
      type: 'box'
  }
}

Support only Palette Style

{
  colorpicker : {
      mode : 'edit',
      type: 'palette'
  }
}

Developments

local dev

git clone https://github.com/easylogic/codemirror-colorpicker
cd codemirror-colorpicker
npm install 
npm run dev 
open localhost:10001 

build

npm run build 

License : MIT

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].