News for hackers. Stuff that matters.
Re:HTML Web Components by Xeamek on Tuesday November 14, 2023 @07:32AM (#38262516)
That file has like, 60 lines. Calling it a "wall of HTML soup" is a bit disingenuous. But if you REALLY have that much aversion to code, there is no inherent reason why you couldn't split it even more. CSS being miles away is again, just a matter of taste. No inherent reason why you could't use Tailwind for example.
Re:HTML Web Components by morbicer on Tuesday November 14, 2023 @07:50AM (#38262675)
> why you could't use Tailwind for example

To have even more HTML soup? No thanks. Luckily I live in a world of better DX. With styled-components my CSS primitives are typechecked. Hell even with SCSS and CSS modules I have more sane and IDE supported experience.

Re:HTML Web Components by Xeamek on Tuesday November 14, 2023 @08:34AM (#38263095)
But this styling lives in your component file, doesn't it? So it makes just as much "wall of [code] soup there as it makes it here". Tailwind was just an example pointing out you don't need a separate your code across entirely different directories, not recommendation of specific technology