Re:Vanilla JavaScript support for Tailwind Plus
by interstice on Sunday July 27, 2025 @06:35AM
(#44700284)
Isn't this abstraction essentially just.. creating classes?
Re:Vanilla JavaScript support for Tailwind Plus
by gloosx on Monday July 28, 2025 @02:49AM
(#44707940)
Such a pleasure to see a nice tailwind abstraction, at some point inlining starts looking just a bit too much, luckily there is a solution ;)
/\* tailwind.css \*/
.card-container {
@apply flex flex-col md:flex-row items-center justify-between
w-full max-w-screen-xl px-6 md:px-12 py-8
bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-700
rounded-lg shadow-md space-y-6 md:space-y-0 md:space-x-8
text-sm text-gray-700 dark:text-gray-300 font-medium tracking-tight leading-relaxed
hover:bg-gray-50 dark:hover:bg-gray-800 transition-all duration-300 ease-in-out;
}
<div class="group card">
</div>