supersym / roots-css

terse, modular & powerful css library

Home Page:http://roots.cx/css

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Roots CSS

Roots css is a terse, feature-rich css library built on top of stylus. It's a child of the roots build system, but is totally old enough to live on it's own. It can be integrated as a plugin for stylus or included manually.

Detailed documentation for roots-css can be found here!

Usage

Roots-css is already integrated into roots by default, and it's super easy to use it there. Definitely the easiest way if you are setting up a project that uses stylus anyway, and it comes with jade and coffeescript already ready out of the box. However, if you do want to include it yourself, here's how to make it happen with stylus/express:

var connect = require('connect')
  , stylus = require('stylus')
  , roots = require('roots-css');

var server = connect();

function compile(str, path) {
  return stylus(str)
    .set('filename', path)
    .use(roots());
}

server.use(stylus.middleware({
    src: __dirname
  , compile: compile
}));

You should have access to all the roots mixins once this is done. Whoo!

About

terse, modular & powerful css library

http://roots.cx/css


Languages

Language:CoffeeScript 64.8%Language:JavaScript 31.2%Language:Shell 4.1%