1.0.1 • Published 6 years ago
stdstyle v1.0.1
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);