News for hackers. Stuff that matters.
Re:Htmx and Web Components: A Perfect Match by gedy on Thursday January 18, 2024 @01:26AM (#39038615)
To your example, recent Bootstrap has a mix of component and utility classes that lets you do both "alert-danger mx-0" or whatever.

I also avoids the giant size of Tailwind classes that requires that elaborate build/reduction process. You can just include Bootstrap from a CDN or whatever.

Re:Htmx and Web Components: A Perfect Match by arcanemachiner on Thursday January 18, 2024 @03:11AM (#39039252)
There's also daisyUI, which is sort of like Tailwind + Bootstrap: component-based, but made with Tailwind. Cuts down on the tag soup pretty nicely.
Re:Htmx and Web Components: A Perfect Match by gedy on Thursday January 18, 2024 @09:25AM (#39041995)
Yes DaisyUI is nice. Ironically, it convinced us not to move from Bootstrap, because we realized its components were almost 1:1 with Bootstrap. And that we actually don't want the infinite styling options that Tailwind offers, so that devs mostly use design system components. At that point, who cares where/what the CSS is?