Hacker News new | ask | show | jobs
by yurishimo 1694 days ago
I'm not the person you were replying to, but I kind of treat @apply as an anti pattern. It exists purely to satisfy some a "need" for "clean code".

After a week or two w/ Tailwind full-time, the verbose syntax fades into the background and it's a problem in practice. I've been through a few teams who came into it very skeptical but all conceded it wasn't a problem after becoming acclimated to the paradigm.

My uncompiled CSS file is usually less than 50 lines, with the bulk of that being some sort of one-off animation or gradient syntax that Tailwind can't do out of the box.