News for hackers. Stuff that matters.
Re:Assembler CSS, a modern utility-first framework by andrewingram on Thursday August 12, 2021 @06:24AM (#28154430)
Reading the docs, the talk of "other CSS frameworks" seems to be primarily aimed at Tailwind; but fails to discuss the trade-offs.

The key design difference seems to be to use a runtime script and data/x attributes to allow customisation and perform style pruning, rather than using config files and build scripts. There are clear downsides to this (as well as upsides, such as faster ramp-up time), but they're not really being presented honestly.

From my perspective, it's hard to imagine someone adopting this as core tech for _websites_, because requiring a blocking script before any styles can load is an absolute deal-breaker for me. But perhaps people will find some utility from it for prototypes, and in environments (perhaps electron apps) which are less sensitive to blocking scripts.

Re:Assembler CSS, a modern utility-first framework by f311a on Thursday August 12, 2021 @06:29AM (#28154459)
I think modern Tailwind supports runtime generation.
Re:Assembler CSS, a modern utility-first framework by andrewingram on Thursday August 12, 2021 @06:50AM (#28154597)
Yeah, but using a JIT build tool, rather than a script tag. In production you'd still do the static build rather than using the JIT though.
Re:Assembler CSS, a modern utility-first framework by DLA on Thursday August 12, 2021 @08:53AM (#28155634)
It sure does in the more recent versions!