Code Monkey home page Code Monkey logo

chrome-color-picker's Introduction

chrome-color-picker

A color picker inspired by chrome's dev tools color picker (or spectrum color picker)

Preview

Demo Image

Note: The color highlight or marker is not part of this package, to obtain that functionality we use pigments

Simple Usage

  • Open the dialog using the shortcut key or using the context menu
  • Press Escape to close it.
    or
  • Press Enter to update the color

Features

Pick Colors in these formats

  • HEX
  • RGB
  • RGBa
  • HSL
  • HSLa

Integrated Palette

  • Use the palette with the picker as done in dev tools.
  • Contains the material design palette by default.
  • Click any palette swatch to select it.
  • Double click any material palette swatch to expand it (except black or white swatch).

Slide using scroll

You can use the mouse wheel to scroll on the sliders and the main canvas to change the values. You can also do the following:

  • Use ctrl + wheel to increment more value.
  • Use shift + wheel to slide from left to right or vice-versa on the main slider (or canvas).
  • Similarly Use ctrl + shift + wheel to increment more value.

Note: ctrl also means cmd in unix based operating systems like linux or OS X

Supports multiple cursors

When you have multiple cursors it inserts the color in each of their locations

Note: this feature is still not stable so feel free to point out any issues with it

Powered by

The plugin uses the following projects (or their sources) or technologies in some manner:

Feel free to use the source code of the converted files as long as you adhere to their respective licenses.

Customise the key binding to your taste

Open your keymap file and add this line to it:

'atom-workspace':
  'your-keybinding': 'chrome-color-picker:toggle'

Note: Your keybinding can be e.g ctrl+alt+c and also make sure to disable the default keybinding from the package's settings or resolve it using the keybinding resolver

The commands that are supported currently are:

  • chrome-color-picker:toggle - triggers dialog open/close
  • chrome-color-picker:close - triggers dialog close
  • chrome-color-picker:save - triggers the color to be updated back to the editor

More keys (cannot be modified)

  • Press escape to close the dialog
  • Press enter to update the color

Purpose to create

This implementation was built from ground up to:

  • Aid web developers to work with colors more easily and in a friendly environment
  • To learn about the hsv color model
  • Learn more of coffeescript

FAQs

  1. I am seeing strange settings which I'm not able to edit

Solution

  1. Open the developer tools in atom (View > Developers > Toggle Developer Mode or Using ctrl + alt + i)

  2. Enter this command in the developer tools console atom.config.unset('chrome-color-picker') and restart atom

  1. How do I know which settings override which ones?

Solution

  • Although there is no guide (yet) for the specificity of settings or which settings are above which ones. But you can know about some of them here

Feel free to update the wiki with your findings.

  1. Do you mind feature requests or suggestions?

Solution
They are always welcome, even if they are present in the milestone

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, Material Design Lite is maintained under the Semantic Versioning guidelines. Sometimes we screw up, but we'll adhere to those rules whenever possible.

License

This project is licensed under an MIT License.

The list of all 3rd party licenses along with the main License can be found here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.