News for hackers. Stuff that matters.
Re:Tailwind CSS and the death of web craftsmanship by yawnxyz on Wednesday August 02, 2023 @03:21PM (#36975766)
I have a bunch of projects (micro sites) that all use the same style, so I just import all my utility classes, so .Card looks the same across projects. Using SCSS and nesting helps me keep things like colors and other "attributes" organized across projects.

The problem I'm solving for is NOT having to find/replace every tailwind-spam across several projects/components/frameworks if I want to add a new "color" property to a .Card, or change the padding, or whatever. I just change the source utility, then link to the file (with Git / package.json linking), so the one change can be applied across projects.

If I followed what the founder and docs said, I'd have to spend every waking hour find/replacing text across all my projects.

Re:Tailwind CSS and the death of web craftsmanship by vehemenz on Wednesday August 02, 2023 @03:24PM (#36975824)
I'd say you're doing things correctly then. In my experience, site/application-wide refactoring or restyling is much less common than adding or fixing components. You can't really optimize for both.