1.0.0-alpha.0 • Published 7 months ago

powerstyl v1.0.0-alpha.0

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

powerstyl

Style with template strings.

Inspired by a widely used package?

npm i powerstyl
import { createScoped } from "powerstyl";

const div = createScoped<HTMLDivElement>`div``color: red;`;

div();

class MyElement extends HTMLElement {}
customElements.define("my-element", MyElement);
const myElement = createScoped(MyElement)`color: green;`;

myElement();
<head>
  <style>
    [data-ps="0.qcif5jua27"] {
      color: red;
    }
  </style>
  <style>
    [data-ps="0.fep56v6qx1u"] {
      color: green;
    }
  </style>
</head>
<body>
  <div data-ps="0.qcif5jua27"></div>
  <my-element data-ps="0.fep56v6qx1u"></my-element>
</body>
1.0.0-alpha.0

7 months ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago