estelle,
@estelle@front-end.social avatar

A mini-blog post:

Tailwind CSS: 5 best-practices

  1. Use CSS
  2. Do not use Tailwind
  3. Exclude Tailwind from your code base
  4. Learn CSS, specificity, inheritance and the cascade, and
  5. Don't use Tailwind
alper,
@alper@rls.social avatar

@estelle To me it seems unlikely that enough people will learn enough CSS to make a difference here. This seems like an elitist position.

estelle,
@estelle@front-end.social avatar

@alper thinking developer experience is more important than user experience and that current ease trumps future tech debt seems like an entitled position.

dams,
@dams@disabled.social avatar

@estelle I never seen CSS like a very complicated language to learn. I'm not saying that I a tremendous CSS writers or a 'know it all CSS' guy.

But did someone elaborate on what concepts are complicated In CSS?

alcinnz,
@alcinnz@floss.social avatar

@dams @estelle I get the impression what drove webdevs to Tailwind is when they're fighting their teammates selector specificity. At which point the cascade becomes unpredictable.

That said with Cascade Layers being supported everywhere, this should not be a problem anymore...

thomasfuchs,
@thomasfuchs@hachyderm.io avatar

@estelle @ayush this, nothing to add

kagan,
@kagan@wandering.shop avatar

@estelle I feel like at least 80% of the problems people have with CSS come from them not having done #4.

davidcelis,
@davidcelis@xoxo.zone avatar

@kagan @estelle what about people like me? i'm primarily a backend developer with a full time job, partner, hobbies, etc. and i just don't have the time to learn all of the nuances of CSS, especially given the speed at which frontend seems to evolve.

Tailwind let me feel comfortable redesigning my personal site completely from scratch so much faster than i otherwise would've been able to do.

css,
@css@front-end.social avatar

@davidcelis @kagan @estelle

You don't have to learn all the nuances of CSS. I work with CSS everyday since years and I probably know only 40% of it and I can tell you that knowing only 5% is enough.

As a side note, Tailwind is CSS so using it implies you know what you are doing which also implies you know CSS. Unless you are randomly adding a ton of class names in a hope that it will work like you want (yes, many are doing this unfortunately)

kaiserkiwi,
@kaiserkiwi@corteximplant.com avatar

@estelle Best Blogpost. 10/10 👏

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • tacticalgear
  • thenastyranch
  • ethstaker
  • everett
  • Durango
  • rosin
  • InstantRegret
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • mdbf
  • slotface
  • GTA5RPClips
  • kavyap
  • JUstTest
  • tester
  • cubers
  • cisconetworking
  • ngwrru68w68
  • khanakhh
  • normalnudes
  • provamag3
  • Leos
  • modclub
  • osvaldo12
  • megavids
  • anitta
  • lostlight
  • All magazines