styledas
v1.0.5
Published
A feature limited css preprocessor
Downloads
9
Readme
styles
A feature limited preprocessor.
I want a css preprocessor which have some feature limited css, like:
.user {
color: black;
&:hover {
color: red;
}
}
so will have enough performance to support runtime requirements. That is all.
Usage
let { styledas } = require('styledas');
let str = `.u{
color: black;
&:hover {
color: red;
}
}`;
console.log(styledas(str)); // .u{color:black;}.u:hover{color:red;}
Which feature support util now?
You can check it under the test directory. It is still developing.
Credits
This repo was highly inspired by styled-components
and stylis
which are both awesome web tools.