Is it okay to split long lists of class names across multiple lines? Why don't you?

This page summarizes the projects mentioned and recommended in the original post on /r/tailwindcss

Our great sponsors
  • Onboard AI - ChatGPT with full context of any GitHub repo.
  • WorkOS - The modern API for authentication & user identity.
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • Tailwind CSS

    A utility-first CSS framework for rapid UI development.

    But from what I can see in other repositories, this isn’t how it’s usually/supposed to be done. In response to someone asking about automating this, people seem to suggest utilities like clsx/tailwind-merge, but that just seems like overkill. I don’t get why what I’ve shown isn’t sufficient if that’s all you’re using those libraries to do.

  • classnames

    A simple javascript utility for conditionally joining classNames together

    Use classnames and you can comma delimited your class names where needed.

  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at app.getonboardai.com.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts