4 ms·
I am using Tailwind for the first time and really stuggle with the long class strings. I imagine i'll get used to it with time.
by momento 6y ago
I am using Tailwind for the first time and really stuggle with the long class strings. I imagine i'll get used to it with time.
- earthboundkid 6y agoHaving used Tailwind on two projects now, I do find that the class strings are "write only". One tip that helps is to write the classes from "outside in," e.g. first the margin, then the border, then padding, then properties affecting the inside of the element…
- smrq 6y agoHaving inherited a Tailwind project, I agree that the class strings are write-only.
- earthboundkid 6y agoTBF, regular CSS is also "write only". At least with Tailwind, there's CSS purge to try to delete some it before it gets into production.