News for hackers. Stuff that matters.
Re:TailwindCSS v2.0 by thirdsun on Tuesday November 24, 2020 @08:08AM (#25198088)
On the surface Tailwind seems quite great and whenever I stumble upon it I like the idea of good defaults, but since I don't use React or a component-based UI framework I'd mostly work with Tailwind's @apply directive, I assume, and at that point I wonder why I shouldn't simply stick to

    .btn { padding: 4rem 2rem; border-radius: 2rem; }
rather than

    .btn { @apply px-4 py-2 rounded }


It simply feels like an additional, unnecessary layer and, frankly, somewhat wrong.

There are no comments on this comment yet.