Hacker News new | ask | show | jobs
by cageface 1890 days ago
@apply is your friend here.
1 comments

100% agreed that sharing styles with @apply is exactly how to solve this.

However Tailwind tells users they shouldn't be doing this, encouraging them to paste the same mixins on every element they want them.

They specifically recommended using it in the documentation to solve exactly the problem you describe.