Live data from Hacker News

Building React and Vue Support for Tailwind UI

blog.tailwindcss.com

121–122 of 122 posts

Re: Building React and Vue Support for Tailwind UI

#121
post #117

Earlier quoted context omitted.

@apply is your friend here.

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.
Post reply on HN