Coder Social home page Coder Social logo

jordanaustin / color-picker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juchar/color-picker

0.0 1.0 0.0 367 KB

<color-picker> is a themable Web Component providing the possibility to select a color using sliders, inputs or palettes.

License: Apache License 2.0

HTML 0.47% Shell 1.43% JavaScript 98.06% Batchfile 0.04%

color-picker's Introduction

<color-picker>

<color-picker> is a themable Web Component providing the possibility to select a color using sliders, inputs or palettes.

Build Status Bower version Published on Vaadin Directory npm version

<color-picker></color-picker>

Screenshot of color-picker

Installation

The Vaadin components are distributed as Bower and npm packages. Please note that the version range is the same, as the API has not changed. You should not mix Bower and npm versions in the same application, though.

The converted ES Modules are only published on npm, not pushed to GitHub repositories.

npm (ES Modules compatible version)

Install color-picker:

npm install @appreciated/color-picker
import "@appreciated/color-picker/color-picker.js"

Getting started

Vaadin components use the Lumo theme by default.

To use the Material theme, import the correspondent file from the theme/material folder.

Entry points

  • The component with the Lumo theme:

    theme/lumo/color-picker.js

  • The component with the Material theme:

    theme/material/color-picker.js

  • Alias for theme/lumo/color-picker.js:

    color-picker.js

Running demos and tests in a browser

  1. Fork the color-picker repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the color-picker directory, run npm install to install dependencies.

  4. Make sure you have polymer-cli installed globally: npm i -g polymer-cli.

  5. Run npm start, browser will automatically open the component API documentation.

  6. You can also open demo or in-browser tests by adding demo or test to the URL, for example:

Running tests from the command line

  1. When in the color-picker directory, run npm test

Following the coding style

We are using ESLint for linting JavaScript code. You can check if your code is following our standards by running npm run lint, which will automatically lint all .js files as well as JavaScript snippets inside .html files.

Big Thanks

Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs. Huge credits also go to the developers of TinyColor that is used for the internal color handling, released under the MIT license.

Contributing

To contribute to the component, please read the guideline first.

License

Apache License 2.0

Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.

color-picker's People

Contributors

juchar avatar appreciated avatar

Watchers

James Cloos avatar

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.