Git Product home page Git Product logo

spectrum's Introduction

Spectrum

alt text

Developed by @bgrins, taken over by @seballot

Basic Usage

Head over to the Documentation Website for more information.

<script src='spectrum.js'></script>
<link rel='stylesheet' href='spectrum.css' />

<input id='colorpicker' />

<script>
    $("#colorpicker").spectrum({
        color: "#f00"
    });
</script>

npm

Spectrum is registered as package with npm. It can be installed with:

npm install spectrum-colorpicker2

Using spectrum with a CDN

<script src="https://cdn.jsdelivr.net/npm/spectrum-colorpicker2/dist/spectrum.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/spectrum-colorpicker2/dist/spectrum.min.css">

Download

Download latest version

Building Spectrum Locally

If you'd like to run the development version, spectrum uses Grunt to automate the testing, linting, and building. Head over to http://gruntjs.com/getting-started for more information. First, clone the repository, then run:

npm install -g grunt-cli
npm install

# runs jshint and the unit test suite
grunt

# runs jshint, the unit test suite, and builds a minified version of the file.
grunt build

Internationalization

If you are able to translate the text in the UI to another language, please do! You can do so by either filing a pull request or opening an issue with the translation. The existing languages are listed at: https://github.com/seballot/spectrum/tree/master/src/i18n

spectrum's People

Contributors

ahmadazimi avatar akhoury avatar andersk avatar bgrins avatar bjarnef avatar brenopolanski avatar duereg avatar fabienwnklr avatar fotrino avatar jholt456 avatar ji-yeonpark avatar laplacesdemon avatar liesislukas avatar liitii avatar marcandre avatar matriphe avatar maurojs10 avatar micnigh avatar misol avatar mlocati avatar ncovercash avatar nedk avatar peterdavehello avatar royvelich avatar sameer711 avatar seballot avatar stevensnoeijen avatar teobais avatar wallenium avatar wickynilliams 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.