3 ms·
TailwindCSS can be abused to resemble inline styles, but part of TailwindCSS is the fact that you have some sort of design system you can quickly set up and bui
by cuddlecake 7y ago
TailwindCSS can be abused to resemble inline styles, but part of TailwindCSS is the fact that you have some sort of design system you can quickly set up and build upon. For example, I could define a color called "primary" and use it anywhere without caring what the actual color is.
Furthermore, styled buttons are such a common occurrence that TailwindCSS encourages users to extract common CSS patterns into component classes[0].
0: https://tailwindcss.com/docs/extracting-components https://tailwindcss.com/docs/extracting-components
- wishinghand 7y agoExtracting components? You mean like writing CSS classes? I'm so glad Tailwind is here to reinvent the wheel for us.
- cuddlecake 7y agoWell, you do write CSS classes, but those classes are based on your configuration. This is not a reinvention, it's a framework addressing certain issues in a certain way. It might seem counterintuitive at first, but to me it's a tool. I prefer it over SCSS (since I often rebuild in SCSS what TailwindCSS provides)