rework-theming

0.0.1 • Public • Published

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);

Package Sidebar

Install

npm i rework-theming

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • ddprrt