Producing UI with CSS in JavaScript! The next because-we-can thing ๐น
npm i hazard
var hazard = require('hazard')();
var result = hazard.fromJSON({
header[title="My Title"]: {
padding: '10px'
}
});
console.log(result.css.text);
/*
.hd1{padding:10px;}
*/
console.log(result.html.text);
/*
<header class="hd1" title="My Title"></header>
*/