3 ms·
If you dislike walls of class names, you could consider using Tachyon's style abbreviations like we do in Truss: https://github.com/homebound-team/truss https:
by stephen 4y ago
If you dislike walls of class names, you could consider using Tachyon's style abbreviations like we do in Truss:
https://github.com/homebound-team/truss https://github.com/homebound-team/truss
- atsjie 4y agoFrom that link: `<div css={Css.mx2.black.ifSm.mx1.$}>...</div>;` That must be one of the most horrid things I've ever seen done to CSS.
- wstuartcl 4y agoYep, that looks like what a few seconds of my vim typing looks like but tossed into source code. Ill take the wall of tailwind any day over that.
- stephen 4y agoYou're not wrong re vim. :-) Definitely use whatever you like, but just like vim bindings, which look "omg wtf" to newbies but then become "cannot live without" once you learn them, once you learn the Tachyons-style abbreviations, I/we find that they fade into the background/become 2nd nature, and the succinctness ROI is worth it. But happy to have you disagree/stick with TW.