0.0.4 • Published 10 years ago

tfcss v0.0.4

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

TF-CSS

Combine CSS files and use variables.

Command Line Usage

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.

App Usage

Install using:

npm install tfcss

Example Usage

var tfcss = require('tfcss');
tfcss.bundle('config.json', function(err, css) {
	// Do something with bundled css...
});

Example Config

{
	"files": [
		"style1.css",
		"style2.css"
	],
	"values": {
		"dark": "rgb(32,32,32)",
		"medium": "rgb(64,64,64)",
		"light": "rgb(224,224,224)"
	}
}

Example CSS With Variables

div {
	background: $dark;
	color: $light;
}
0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago