DEV Community

Discussion on: Tailwind isn't the answer

Collapse
 
rangercoder99 profile image
RangerCoder99 • Edited

I wonder why not just use something like "@apply font-bold py-2 px-4 rounded;" in your css file? It would be a lot less typing than Pollen. Class soup problem sold... if you want shorter lines just use another @apply line! The huge thing about Tailwind, is speed... test out multiple css styles with just hitting a few keys thanks to auto complete.

Collapse
 
madeleineostoja profile image
Madi Ostoja • Edited

Because for all the benefit of saving a couple of keystrokes you're introducing a whole new DSL and preprocessor requirement, and by using @apply you're also ditching of the benefit of atomic stylesheets that Tailwind gives you, since it literally just copies and pastes those style rules into your CSS