Building Agnostic Components with CVA and TailwindDesign/UX
Is Tailwind great? Yes. But does it have any weak points? Using Tailwind offers numerous advantages: However, it has a clear downside compared to traditional CSS approaches: code repetition. To mitigate this, Tailwind’s documentation suggests using components wherever possible. Another drawback: lost semanticsFor instance, applying the class btn--lg to an element implies using a “large”… Read more