Re:Building React and Vue Support for Tailwind UI
by cageface on Tuesday April 13, 2021 @10:54AM
(#26793005)
@apply is your friend here.
[ Parent
| on HN ]
Re:Building React and Vue Support for Tailwind UI
by nailer on Tuesday April 13, 2021 @01:14PM
(#26795617)
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.