Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 686 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 686 Bytes

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.