Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krasimir/hazard

Producing UI with CSS in JavaScript! The next because-we-can thing :japanese_ogre:
https://github.com/krasimir/hazard

Last synced: 3 days ago
JSON representation

Producing UI with CSS in JavaScript! The next because-we-can thing :japanese_ogre:

Awesome Lists containing this project

README

        

# Hazard

Producing UI with CSS in JavaScript! The next because-we-can thing :japanese_ogre:

## Installation

`npm i hazard`

## Simple usage

```js
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);
/*

*/
```