@yoshuawuyts do you know https://www.npmjs.com/package/csjs ? same guy did https://github.com/rtsao/styletron later, which reminds me of "generating tachyons"...
obv it's less flexible, but for the 90% of CSS it's good enough. This took an hour or so to build from scratch https://github.com/berlinjs/jsconf2017-special/blob/master/index.js …
-
-
i was just thinking if... instead of putting those "shortcuts" into the class name, they could be put into the template literal...
-
...template literal & they are just objects with the css properties they are referring to. It could then be optimized like styletron
End of conversation
New conversation -
-
-
But ok, I think i then understood aprox. how they are meant to work.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.