Show HN: A 1KB CSS-in-JS library with all the bells and whistles Posted by sunesimonsen on Monday December 07, 2020 @07:29AM from the show-hn dept. https://github.com/sunesimonsen/stylewars ( 6 comments | 6 points | on HN )
This is not a competitor to inline-styling via style-attributes, but more of an alternative to styled-components [1] or css-modules [2].
The big benefit with a solution like this is that it will work in browsers with no tooling at all. No transpiling or other code needed.
[1]: https://styled-components.com/
[2]: https://github.com/css-modules/css-modules
> Installation: npm install stylewars
so that was a lie?
import { css, classes } from "https://unpkg.com/[email protected]/dist/bundle.esm.min.js";