0.0.1 • Published 10 years ago

rework-theming v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

rework-theming

Digs through your stylesheet and creates a theme with different values. See SMACSS by Jonathan Snook for more details on this technique.

Installation

$ npm install rework-theming

Usage

Example Rework code:

'use strict';

var fs    = require('fs'),
  rework  = require('rework'),
  hwb     = require('rework-theming');

var css = fs.readFileSync('css/main.css', 'utf8').toString();

var output = rework(css)
  .use(theming({
  	theme: '.theme',
  	values: [
		{ original: 'blue', replacement: 'black' }
  	]
  }))
  .toString();

fs.writeFileSync('dist/main.output.css', output);