0.5.1 • Published 10 years ago

xcss-object-model v0.5.1

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

xcss-object-model

An immutable object model for CSS. A part of xCSS.

Installation

Install via npm:

% npm install xcss-object-model

Usage

Compose a stylesheet and call .toCSS() method to get CSS:

var xcss = require('xcss-object-model');

var stylesheet = xcss.stylesheet;
var rule = xcss.rule;

var style = stylesheet(null,
  rule('body', {
    backgroundColor: 'red'
  }),

  rule('div', {
    width: '12px'
  })
)

var css = style.toCSS();
0.5.1

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago