1.0.1 • Published 6 years ago

stdstyle v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Framework agnostic CSS-in-JS library

Basic Stylis.js wrapper that exposes helper functions to render CSS in JS.

Instalation

npm i stdstyle

Usage

import { css } from "stdstyle";

const className = css`
  color: green;

  &:hover {
    color: red;
    cursor: pointer;
  }

  @media (max-width: 600px) {
    & {
      display: none;
    }
  }
`;

const element = document.getElementById("#container");
element.classList.add(className);