zstyl
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

.github/workflows/test.yml

zstyl

A CSS in JS framework like styled-component for zheleznaya.

how to use

import { h, render } from "zheleznaya";
import { styled } from "zstyl";

const Header = styled<{
  color: string;
}>`
  display: flex;
  justify-content: center;
  background: ${({ color }) => color}

  &:hover {
    background: #000;
  }

  div.inner {
    height: 200px;
    
    span {
      color: yellow;
    }
  }
  
  @media (max-width: 720px) {
    display: inline-flex;
  }
`;

render(
  <Header>
    <div class="inner">200px height</div>
  </Header>
);

Readme

Keywords

none

Package Sidebar

Install

npm i zstyl

Weekly Downloads

8

Version

0.2.3

License

MIT

Unpacked Size

148 kB

Total Files

45

Last publish

Collaborators

  • kojiro.ueda