Hacker News new | ask | show | jobs
by shubhamjain 1333 days ago
I feel us programmers should be open to breaking rules in favor of convenience. I don't see an issue to why you can't use `p:not(:first-child) { margin-top: 12px; }` just because you're using Tailwind (that particular rule gives a margin to every paragraph except the first one which is usually needed in articles). The most productive programmers I have seen frequently disregarded best practices if it suited the situation.
1 comments

You mean like this supported utility class `[&_p:not(:first-child)]:mt-[12px]`?