Giter Club home page Giter Club logo

colorkit's Introduction

Colorkit

Built on Compass and Sass, Colorkit provides a sensible default color library along with additional functions and mixins that make generating harmonious color schemes a breeze.

Checkout the Colorkit Codepen to play with a live version, or read the docs.

##Installation: Install the Colorkit gem (you may need to run as sudo depending on your Ruby environment).

gem install colorkit

Run compass create specifying your project's directory (run compass create --help for further instructions).

compass create my_project_name -r colorkit --using colorkit

To use Colorkit in an existing project edit your project's config.rb file adding:

require 'colorkit'

##What Is It? Colorkit includes a color library, the core mixins and functions, and your project specific color pallet.

###Color Library Colorkit's default color library is based off the primary colors red, yellow, and blue keywords defined in SVG and referenced in the Level 3 CSS Color Module. Secondary and tertiary colors are derived in equal parts using Sass's color functions. Each of these key-colors are then used in Colorkit's tint-stack, tone-stack, and shade-stack functions to produce a value stack for each. The color swatches are given a variable named based of the BEM naming methodology, as defined here, in the form of:

$color-name--value-name

example:

$red-orange--shade-3;

###Mixins and Functions Colorkit includes mixins and functions for creating color schemes, color stacks, and experimenting entire pallets by automatically generating class names to use with the pallet template. Checkout the documentation for further information.

###Color Pallet The color-pallet.scss partial is the main settings file for using Colorkit and integrating it into your project. This is where you'll want to set all your color variables. Be sure to @include towards the top of your project's main stylesheet to be sure these variables are available project wide.

###Credit Color-stack functions were borrowed from Snugug's excellent toolkit which has now been moved over to the Team Sass GitHub.


### License © Kwale Design - Original source code dual licensed under [MIT license](http://www.opensource.org/licenses/mit-license.php) / [GPL2 license](http://www.gnu.org/licenses/gpl-2.0.html).

Bitdeli Badge

colorkit's People

Contributors

bitdeli-chef avatar kwaledesign avatar

Stargazers

 avatar

Watchers

 avatar  avatar

colorkit's Issues

Docs site

also update gemspec to include URL to docs site

restructure stylesheets/ directory

as is, you must use: @import "colorkit/colorkit"; to include colorkit in your project.

Remove the redundant colorkit file in the stylesheets/ directory to simplify

Add conditional logic to color-scheme-pallet mixin

color-scheme-mixin needs an additional argument to specify which color schemes to generate

i.e:
$scheme: all; that takes the values: monochromatic, analogous, complementary, split-complementary, triadic, tetradic, or quadradic which would limit the css output to only the specified scheme ('all' by default).

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.