Clrs
Include the http://www.clrs.cc palette as scss variables in your Rails apps.
Repackaged from: https://github.com/mrmrs/colors.
Installation
Add this line to your application's Gemfile:
gem 'clrs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install clrs
You will then need to require the stylesheet in your application.scss:
@import "clrs";
Or, in your application.css:
*= require clrs;
Usage
Now you have access to the following variables:
$navy: #001f3f;
$blue: #0074d9;
$aqua: #7fdbff;
$teal: #39cccc;
$olive: #3d9970;
$green: #2ecc40;
$lime: #01ff70;
$yellow: #ffdc00;
$orange: #ff851b;
$red: #ff4136;
$maroon: #85144b;
$fuchsia: #f012be;
$purple: #b10dc9;
$white: #ffffff;
$silver: #dddddd;
$gray: #aaaaaa;
$black: #111111;
Additionally, there are background-color and color classes:
/* Backgrounds */
.bg-navy { background-color: $navy; }
.bg-blue { background-color: $blue; }
.bg-aqua { background-color: $aqua; }
/* ... */
/* Colors */
.navy { color: $navy; }
.blue { color: $blue; }
.aqua { color: $aqua; }
/* ... */
NOTE: You must require the clrs stylesheet before other stylesheets using the above scss variables.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request