5 ms·
> If you have thousands you probably should start looking into extracting some components. This is confusing component reuse with design system reuse. Two com
by nailer 6y ago
> If you have thousands you probably should start looking into extracting some components.
This is confusing component reuse with design system reuse.
Two components may have completely different purposes, but they both have a certain rounding, palette, and other styles.
- cageface 6y ago@apply is your friend here.
- nailer 6y ago100% 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.
- cageface 6y agoThey specifically recommended using it in the documentation to solve exactly the problem you describe.