rework-theming
v0.0.1
Published
Searches for certain patterns and creates a theme css afterwards
Downloads
3
Readme
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);