Re:Tailwind Is a Leaky Abstraction
by EugeneOZ on Tuesday November 29, 2022 @10:06AM
(#33788438)
Disagree, an example with margins (the second example in the article) is not complicated or rare.
[ Parent
| on HN ]
Tailwind acknowledges the limitation [1] and also provides gap utilities [2]:
<div class="flex gap-x-2">
which translates to display: flex;
column-gap: 0.5rem;
[1]: https://tailwindcss.com/docs/space#limitations[2]: https://tailwindcss.com/docs/gap
Edit: formatting