I've started breaking tailwind classes into multiple lines and feel like this is much easier to read than having all the classes on one line. Does anyone else do that? Any drawback to it?

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

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • tachyons

    Functional css for humans

  • If you feel tailwind is a bit much, I recommend tachyons.io. It's a bit tamer and there's a build that uses css variables. Pull it from https://github.com/allancole/tachyons-custom/tree/fix/issue-14-undefined-variables as the main repo is busted. BUT the idea is that you take it and build your own.

  • classnames

    A simple javascript utility for conditionally joining classNames together

  • Have you thought of using a library like classnames. Helps clean things up and conditionally apply classes in a lot more elegant fashion.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • tachyons-custom

    Tachyons with variables: for easy customization

  • If you feel tailwind is a bit much, I recommend tachyons.io. It's a bit tamer and there's a build that uses css variables. Pull it from https://github.com/allancole/tachyons-custom/tree/fix/issue-14-undefined-variables as the main repo is busted. BUT the idea is that you take it and build your own.

  • prettier-plugin-tailwindcss

    A Prettier plugin for Tailwind CSS that automatically sorts classes based on our recommended class order.

  • postcss-nested

    PostCSS plugin to unwrap nested rules like how Sass does it.

  • daisyui

    ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library

  • OP, have you used daisyui? https://daisyui.com/

  • claxed

    Classes with the same style of Styled-Components

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
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