Tailwind CSS for frontend teams: From settings to rules

This page summarizes the projects mentioned and recommended in the original post on dev.to

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. clsx

    A tiny (239B) utility for constructing `className` strings conditionally.

    To make class-based Tailwind easy to use, we used the clsx library to help manipulate class names. However, using clsx and Tailwind together often doesn't work as intended.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. tailwind-merge

    Merge Tailwind CSS classes without style conflicts

    So the library I use is tailwind-merge, which is a class that eliminates conflicts between classes when using Tailwind. So I created the following utility function.

  4. prettier-plugin-tailwindcss

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

    Since this was a problem that many people had already encountered, there was already a solution. The first thing I found was Tailwind's official Prettier plugin, which ensures that class names are always ordered according to a certain rule. Best of all, it's auto-correcting, so I don't accidentally miss something or commit a different order.

  5. eslint-plugin-tailwindcss

    ESLint plugin for Tailwind CSS usage

    However, after a little more searching, we found this plugin, which is maintained by the community and has slightly more rules than the official plugin's class name ordering rules. Again, most of the rules support auto-correction. Here are the rules the team chose to use

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

  • Tailwind is overrated

    3 projects | /r/webdev | 25 Oct 2021
  • Top Free Flowbite Dashboard Templates for Developers in 2025

    4 projects | dev.to | 7 Mar 2025
  • How to detect classes contained in ruby gems in Tailwind 4

    5 projects | dev.to | 5 Mar 2025
  • Flowbite: A Beginner’s Guide to UI Components for Tailwind CSS

    4 projects | dev.to | 22 Feb 2025
  • Tailwind V4 Is Finally Out

    11 projects | news.ycombinator.com | 22 Jan 2025

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?