Re:Tailwind Is a Leaky Abstraction
by mierz00 on Thursday December 01, 2022 @02:58AM
(#33813557)
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.
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.