About Chroma
Chroma is a Sass library that manages a project's color names, color variations, and color schemes.
USAGE
Full documentation is available at http://johnalbin.github.io/chroma/. But here are some quick examples to give you an idea of what Chroma can do.
; // Define the default color scheme. ; // Add colors to the default color scheme. ; // Create a "functional" color scheme that inherits from the default color scheme. ; // Add colors to the functional color scheme. ; // Create an "alternate" color scheme that inherits from the "functional" color scheme. ; // Add colors to the alternate color scheme. ; // Set which color scheme should be used by default when calling the color() // function. ; .example-ruleset
Install
Install using one of the following methods:
- Install with npm:
npm install --save-dev chroma-sass
- Install with Bower:
bower install --save-dev chroma
- Install with Ruby Gem:
gem install chroma-sass
and, if using Compass, addrequire "chroma-sass"
to your config.rb file. - Install with Bundler and Ruby Gem:
bundle inject chroma-sass '~> 1.0'
See Chroma’s online documentation for more information.
REQUIREMENTS
- LibSass 3.2.5 or later
- or Ruby Sass 3.4.0 or later
LICENSE
Available under the GPL v2 license. See LICENSE.txt.