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.
let { styledas } = require('styledas');
let str = `.u{
color: black;
&:hover {
color: red;
}
}`;
console.log(styledas(str)); // .u{color:black;}.u:hover{color:red;}
You can check it under the test directory. It is still developing.
This repo was highly inspired by styled-components
and stylis
which are both awesome web tools.