Re:What working with Tailwind CSS every day for 2 years look...
by themosaad on Tuesday November 29, 2022 @05:35PM
(#33794353)
I hope to work on a product where productivity isn't as essential as the quality of a design system to use such approach.
Saw the folks behind a CSS-in-JS library (Stitches) move to it recently[1]
However, they still saw the need for utility classes for cases where devs want to hack together something custom[2]
[1]: https://twitter.com/colmtuite/status/1572918908637650944 [2]: https://twitter.com/colmtuite/status/1572918911301218305
The problem with writing a lot of CSS is that you will eventually run in circles and repeat yourself on the same elements with only small differences. A design system lets you adjust it all at once through Variables, and as of recently - some of the more powerful Selectors and Pseudo-classes.
It also makes it easier to switch a design so you don't inherently lose all your work.
I don't have a strong opinion on Tailwind CSS because I don't use it but I am familiar with it. I know it hasn't been adopted inside CMS's all that much, but it is very popular when it comes to things like individual elements (cards, headers, etc.) because those individual elements will work universally across any Tailwind project.