Open Source

Tailwind CSS

A utility-first CSS framework that generates only the classes you use. It polarizes developers, but teams that adopt it consistently report faster UI development and more consistent styling across large codebases.

Overview

Tailwind CSS is a utility-first CSS framework that provides low-level utility classes for building custom designs directly in HTML. Instead of writing custom CSS or using pre-built components, you compose designs by applying utility classes like flex, pt-4, text-center, and rotate-90 directly to HTML elements.

The approach is deliberately different from component frameworks like Bootstrap. Rather than providing pre-styled components that you customize, Tailwind provides building blocks that you compose. This gives more design flexibility but requires more upfront decisions. The PurgeCSS integration ensures that only the classes you actually use are included in the production build, keeping file sizes small.

Key Features

  • Utility classes for every CSS property
  • Responsive design with breakpoint prefixes
  • Dark mode support with dark: prefix
  • JIT compiler for instant class generation
  • Customizable design tokens via config file
  • Official component library (Tailwind UI)
  • Plugins for forms, typography, and aspect ratio

Use Cases

For teams building custom designs, Tailwind eliminates the context switching between HTML and CSS files. Styles are applied directly in the markup, which makes it faster to iterate on designs and easier to understand what styles are applied to a given element without hunting through CSS files.

For design systems work, Tailwind's configuration file serves as a single source of truth for design tokens colors, spacing, typography, and breakpoints. Changes to the config propagate consistently across the entire codebase, which is harder to achieve with custom CSS.

Pricing

Tailwind CSS is free and open source. Tailwind UI, the official component library, is a one-time purchase starting at 149 dollars for personal use.