Re:Incomplete List of Mistakes in the Design of CSS
by e12e on Tuesday November 21, 2023 @09:01PM
(#38373665)
I think "regrets putting it in there" is a bit strong - I'd be interested in a quote.
That said, the documentation does lean heavily away from @apply:
https://tailwindcss.com/docs/reusing-styles#extracting-class...
> If you’re going to use @apply, use it for very small, highly reusable things like buttons and form controls — and even then only if you’re not using a framework like React where a component would be a better choice.
Personally I think @apply is a useful tool - and I'm not sold on it being always evil.
Re:Incomplete List of Mistakes in the Design of CSS
by henbruas on Wednesday November 22, 2023 @02:35AM
(#38376122)
Re:Incomplete List of Mistakes in the Design of CSS
by Karellen on Wednesday November 22, 2023 @04:41AM
(#38377096)
The most authoritative form of documentation that part of a system is considered a serious design flaw and should not be used in new code, is on xitter?
I'm sure new users of the system will find that. Great job everyone.
FFS
Re:Incomplete List of Mistakes in the Design of CSS
by ReleaseCandidat on Wednesday November 22, 2023 @02:39AM
(#38376156)
There is a Twitter post saying putting it in was a mistaken and that he wouldn't do it again.
https://twitter.com/adamwathan/status/1559250403547652097
Please link to something that supports this claim, because it's not the first time I've seen it made on HN, but only found it on HN