0.0.2 • Published 3 years ago

node-styl-theme v0.0.2

Weekly downloads
5
License
ISC
Repository
github
Last release
3 years ago

node-styl-theme

theming tool for therminal with node-styl and node-styl-rgb.

Exemple

const Theme= require('node-styl-theme');
let theme=Theme.c16m.get({
	$alias1:[255,0,0],
	exemple1:{
		front:'alias1',
		back:[0,0,255]
	}
});
let theme16=Theme.c16.get({
	$alias1:'green',
	exemple1:{
		front:'alias1',
		back:'red',
		style:['bold']
	}
});

console.log("___ "+theme.exemple1('world'));
console.log("___ "+theme16.exemple1('world'));

let themejson=Theme.c16m.load('./test-theme.json');
console.log("___ "+themejson.exemple1('world'));

with test-theme.json as

{
	"$alias1":[255,0,0],
	"exemple1":{
		"front":"alias1",
		"back":[0,0,255]
	}
}