(no title)
JasonCannon | 4 years ago
That app is done wrong. If you are using the same styles to represent a button you should use postcss and do
.myButtonClass { @extend: (80 tailwind classes here) }
JasonCannon | 4 years ago
That app is done wrong. If you are using the same styles to represent a button you should use postcss and do
.myButtonClass { @extend: (80 tailwind classes here) }
ggregoire|4 years ago
montroser|4 years ago
Some are big and some are small; some are bold and primary and some are muted and secondary; some have icons; some have shadows; some are disabled, etc, etc.
It's easy to make them identical. The challenge is to be as flexible as necessary in a mature application, while minimizing verbosity and complexity.
In my experience Tailwind hurts more than it helps here. It forces you to use your component system to abstract things which otherwise wouldn't warrant the extra level of indirection.
JasonCannon|4 years ago
jeremyjh|4 years ago
rattray|4 years ago
pier25|4 years ago
JasonCannon|4 years ago
https://tailwindcss.com/docs/reusing-styles
Although I realize in looking this up in the documentation to show you, it's actually @apply and not @extend you are supposed to use.
markdown|4 years ago
JasonCannon|4 years ago