• Eyron@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    13 hours ago

    You’re not wrong.

    Realistically, there’s a bit of a nuance. Many modern web apps have different components that aren’t HTML. You don’t need HTML for a component. And those non-HTML components can provide the consistency they need. Sometimes, that’s consistency for how to get the data. Sometimes, that’s consistency for how to display the data. For displaying, each component basically has its own CSS, but it doesn’t need to. A CSS class isn’t required.

    Tailwind isn’t meant to be a component system, It’s meant to supplement one. If you’re writing CSS’s components, it looks horrible. If you’re writing components at CSS that needs a foundation of best practices, it works pretty decent. They’re still consistency. They’re still components. They’re just not centered around HTML/CSS anymore. It doesn’t have to be.

    Sematically, it is still worse HTML. Realistically, it’s often faster to iterate on, easier to avoid breakage: especially as the project becomes larger. Combine that with the code being more easily copied and pasted. It can be a tough combo to beat. It’s probably just a stepping stone to whatever’s next.

    • TrickDacy@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      13 hours ago

      Many modern web apps have different components that aren’t HTML

      What do you mean by this? Web Components?

      I am not sure I understand the second paragraph either. I get that if you’re doing things well, TW class names can be applied in a non-insane way. Still rubs me the wrong way as a concept though.