6 ms·
One thing that has been an absolute deal breaker for me is adding variants for components. Say I have a button component with different variants, these variant
by mierz00 4y ago
One thing that has been an absolute deal breaker for me is adding variants for components.
Say I have a button component with different variants, these variants change styles across multiple elements in the component.
Using scss and BEM this is incredibly simple, add a parent class and I can modify nested elements easily. But using tailwind I have to make an mess of things to get this working or recreate the component.
I’d love to hear how anyone solves this issue.