3 ms·
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 se
by andrewingram 5y ago
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.
- f311a 5y agoI think modern Tailwind supports runtime generation.
- andrewingram 5y agoYeah, 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.
- DLA 5y agoIt sure does in the more recent versions!