chainss

A Chainable CSS creation module for nodejs

npm install chainss
9 downloads in the last month

ChainSS

Installation

npm install chainss --save

A chainable CSS creation module for nodejs.

Example

var ChainSS = require('chainss');
var ss = new ChainSS('span.test');
var css = ss.fontSize('14px').lineHeight('1.4em').getCSS();

Produces

span.test { 
    font-size : "14px";
    line-height: "1.4em";
}

Creating CSS for multiple selectors

var ChainSS = require('chainss');
var list = new ChainSS.SelectorList();
list = list.add('span.test')
        .add('.selector')
        .style('span.test', { fontSize: '14px'})
        .style('.selector', { display: 'block'})
var css = list.getCSS();

Produces

span.test {
    font-size : "14px";
}

.selector {
    display : "block";
}
npm loves you