HStyle
A component styling lib.
Features
- Support all CSS features
- Readable class names
- Collision-free
- Easy to learn
- Lightweight
Usage
import style styleObj from "hstyle";// Use string template form:const className = style` /* & will be replaced with the real class name: */ & { color: blue; } /* Write anything as if you are writing CSS: */ @media all and (max-width: 600px) { ul&>li::before { /* && will be converted to & */ content: "&&"; } } /* The real class name will be returned. */`;// Use the returned class name later: { return <ul => propschildren </ul> ;}// Use object form:const anotherClassName = ;
Changelog
See CHANGELOG.md.