• Stars
    star
    183
  • Rank 210,154 (Top 5 %)
  • Language
    Ruby
  • Created over 15 years ago
  • Updated over 13 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Color Tools and Theme Support for Compass and Sass

Compass Colors

This compass extension provides support for working with colors in Sass and generating color themes for use on your website.

Installing

sudo gem install compass-colors

To install a theme into your existing compass project, add the following to your compass configuration file:

require 'compass-colors'

Then run this command:

compass install colors/<Theme Name>

Where <Theme Name> is one of: basic, complementary, triadic, split_complement, analogous

The _theme.sass partial can then be imported into your stylesheets and the color constants can be used.

@import theme.sass    

Supported Color Themes

With all of these themes, you must pick a base color and the theme takes it from there:

  • Basic/Monochromatic (basic)
  • Complementary (complementary)
  • Triadic (triadic)
  • Split Complementary (split_complement)
  • Analogous (analogous)

Sass Functions Provided

  • lighten(color, percentage) - Create a color lighter by the percent amount provided.
  • darken(color, percentage) - Create a color darker by the percent amount provided.
  • saturate(color, percentage) - Increase the saturation of a color by the percent amount provided.
  • desaturate(color, percentage) - Decrease the saturation of a color by the percent amount provided.
  • hue(color) - Extract the hue from the color in degrees (0-360). Suitable to be passed as the first argument of hsl.
  • saturation(color) - Extract the saturation from the color in percent (0-100). Suitable to be passed as the second argument of hsl.
  • luminosity(color) - Extract the luminosity from the color in percent (0-100). Suitable to be passed as the third argument of hsl.
  • mix(color1, color2, percentage) - Create a new color by mixing two colors together. Percentage (0-100) is optional, and indicates how much of color2 should be mixed into color1.
  • grayscale(color) - Create a gray color by mapping the color provided to the grayscale.
  • adjust_hue(color, degrees) - Add the number of degrees provided to the hue of the color keeping luminosity and saturation constant. Degrees can be negative.
  • complement(color) - Returns the compliment of the color provided.

More Repositories

1

sass-globbing

Adds glob-based imports to Sass
CSS
441
star
2

sass-recipes

Sass mixin examples and recipes that you can use or modify to suit your needs. Send a request for commit access to add your own. Most of these mixins are now part of my Compass project
Ruby
374
star
3

sass-css-importer

Import CSS files as SCSS
Ruby
199
star
4

compass-rails-sample-application

Demonstrates how to configure a rails application to use Compass
Ruby
59
star
5

SCSS.tmbundle

Don't use this. Go to http://github.com/kuroir/SCSS.tmbundle instead
46
star
6

freebase

Ruby API for Freebase.com
Ruby
37
star
7

blueprint-sass

The blueprint stylesheet framework in sass. Development has moved to my project named Compass.
Ruby
32
star
8

compass-style.org

The Compass Stylesheet Framework's Website
Ruby
24
star
9

Compass-Layouts

Some layouts for compass
Ruby
21
star
10

extract-sass-vars

Extracts global variables from a Sass file into a json object
Ruby
19
star
11

presentations

Code and Slide decks for my presentations
CSS
19
star
12

chriseppstein.github.com

My OSS Development Blog
CSS
18
star
13

compass-validator

A CSS Validator that is used by the Compass CSS Framework.
Ruby
17
star
14

yui-compass-plugin

The YUI CSS Framework 2.7.0 for Compass
Ruby
16
star
15

sassdoc

Emit documentation for sass files in easy to read formats
Ruby
15
star
16

lame_stats

Histograms, Linear Regression, Normal Distribution Analysis, Counting Occurances. I'm sure someone has made a better stats module than this one.
Ruby
11
star
17

sass-archive-importer

Import sass, scss, and css files directly from a zip file without needing to unpack it.
Ruby
10
star
18

has_overrides

Simple, Object-Oriented Attribute Overriding for ActiveRecord Models.
Ruby
9
star
19

rocssetta

Convert between any stylesheet syntax
8
star
20

pygments-sass-lexer

A Sass Lexer for the Pygments Syntax Highlighter
Python
7
star
21

pack-mule

Send code from your rails project on a long journey, monitor it's progress, and get results back when it's done. Built on Beanstalk, Memcached, AsyncObserver, and Elock.
Ruby
7
star
22

stylesheet-refactorings

6
star
23

ruby-freebase

A ruby client for freebase
5
star
24

compass-merb-sample-application

Basic Changes required to a Merb Application to work with the Compass Sass Stylesheet Meta Framework
Ruby
5
star
25

bohconf

Materials for BohConf
Ruby
5
star
26

pywebmvc

A MVC Web Framework written in python for use with mod_python. It's designed in the spirit of struts.
Python
4
star
27

extract_sass_dependencies

a script that extracts sass dependency information
Ruby
4
star
28

polywritingprompts

What should I write about?
2
star
29

reproduce-composite-build-issue

This repo reproduces a typescript compilation issue.
TypeScript
1
star
30

w00t

w00t
Ruby
1
star
31

mongoid_embedded_doc_update_issue

a simple project to reproduce a mongoid bug
Ruby
1
star