1.0.5 • Published 7 months ago

styledas v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

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.

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago