tfcss

Combine CSS files and use variables.

TF-CSS

Combine CSS files and use variables.

Install using:

npm install tfcss -g

Note: sudo may be needed.

Create a json file in the format of Example Config below.

Run using:

tfcss config.json -o bundle.css

Where config.json is your config file and bundle.css is the file to be outputted.

Note that config.json and bundle.css are the default values, so if you would like to use those exact names you only need to type:

tfcss

from the directory where config.json is located.

Install using:

npm install tfcss
var tfcss = require('tfcss');
tfcss.bundle('config.json', function(err, css) {
    // Do something with bundled css...
});
{
    "files": [
        "style1.css",
        "style2.css"
    ],
    "values": {
        "dark": "rgb(32,32,32)",
        "medium": "rgb(64,64,64)",
        "light": "rgb(224,224,224)"
    }
}
div {
    background: $dark;
    color: $light;
}