News for hackers. Stuff that matters.
Re:Don't use Tailwind for your Design System by manxman on Wednesday January 11, 2023 @10:02AM (#34339167)
I don’t think it’s about “documents” versus “components”. It’s about consistency and maintainability.

Keep the local styling for the component local to its place in your repository - absolutely. Give it sensible defaults - for sure. But if you’re using it in something complex where the overall design may evolve it’s a maintainability nightmare to hardcode the styling at the component level and/or designing by classname.

I get why initial development is faster BUT… if you want to make a simple style change on a 100 component site - do you really want to be editing a load of components for every change down the line?

There are no comments on this comment yet.