Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

yeah, this is a tricky area for us LoB enthusiasts: tailwinds is an example of LoB, but also I think sometimes it devolves into inlining implementation[1]. My gut reaction is to want a well named CSS class on the element instead, which feels like the equivalend of defining a function elswhere, but calling it on the element in question, thereby preserving LoB (to an extent)

On the other hand, I know a lot of very smart folks who like the tailwinds approach, and I do acknowledge the difficultly of naming CSS classes, that the function metaphor breaks down due to the fact that CSS classes have non-encapsulated effects on child elements, etc.

Interesting case to think about.

[1] - https://htmx.org/essays/locality-of-behaviour/#surfacing-beh...



tailwind bad




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: