Tailwind CSS
by Tailwind Labs · Framework · also known as Tailwind
Utility-first CSS framework from Tailwind Labs that styles markup with composable class names and generates only the CSS a project uses
Overview
Tailwind CSS is a CSS framework developed by Tailwind Labs and released under the MIT license. Instead of pre-designed components, it provides a vocabulary of small utility classes (spacing, color, typography, layout, responsive and state variants) that are composed directly in markup; a build step scans source files and emits only the classes actually used, so stylesheets stay small regardless of the utility catalog.
Version 4 rewrote the engine for speed and moved configuration from a JavaScript file to CSS itself, using native cascade layers, custom properties and a Vite plugin or PostCSS integration. Tailwind is the styling layer assumed by shadcn/ui and many Next.js templates, and the company sells Tailwind Plus (templates and component examples) as a commercial product separate from the open-source framework. Objections to Tailwind concern readability of long class strings, the learning of its naming scheme, and the need for a build pipeline; framework-specific gotchas, such as the interaction of @layer base with component libraries, appear in migration notes. Prettier and editor plugins mitigate class ordering and discovery.
Capabilities
- Utility classes for layout, spacing, color and typography
- Responsive, dark-mode and state variants
- Build-time scanning that emits only used CSS
- CSS-based configuration and design tokens (v4)
- Vite plugin and PostCSS integration
- Editor IntelliSense extension
Typical workflows
- Style a Next.js or Vite application without writing custom CSS files
- Define a design system through theme tokens in CSS
- Use shadcn/ui components built on Tailwind utilities
Strengths
- Small production stylesheets
- Consistent design constraints through tokens
- MIT license with broad framework support
Limitations
- Long class strings reduce markup readability
- Requires a build step
- Major version migrations change configuration format
Prerequisites
- Node.js or Bun with Vite, PostCSS or a framework integration
Who it is for
- Front-end developers
- Designers working in code
- Teams using component libraries built on Tailwind
Alternatives & comparison
shadcn/ui is not a substitute but a component layer that depends on Tailwind; plain CSS, CSS Modules or CSS-in-JS libraries are the alternatives at the styling level, trading Tailwind's constraints and tooling for conventional stylesheets.
- shadcn/ui
Collection of accessible React components built on Radix primitives and Tailwind CSS that are copied into a project's source rather than installed as a dependency
Open sourceOpen source - SwiftUI
Apple's declarative UI framework for building interfaces in Swift that run across iOS, iPadOS, macOS, watchOS, tvOS and visionOS
ProprietaryFree
Sources & verification
Primary sources consulted for this record. Claims are tied to the fields each source supports; the automated link checker re-verifies every URL on a schedule.
- Licensehttps://github.com/tailwindlabs/tailwindcss/blob/main/LICENSEchecked Nov 1, 2026
Supports: license_spdx, source_model
- Official documentationchecked Nov 1, 2026
- Official sitechecked Nov 1, 2026
- Confidence
- High
- Reviewed
- Nov 1, 2026
- Links
- Verified · Nov 2, 2026
Spotted an error?
More in Web frameworks & UI
FastAPI
Sebastián Ramírez (tiangolo) and FastAPI contributors · API development & tooling
Python web framework for building HTTP APIs from type-annotated functions, with automatic validation through Pydantic and generated OpenAPI documentation
Next.js
Vercel · Web frameworks & UI
React framework from Vercel for full-stack web applications with file-based routing, server components, server-side rendering, static generation and API route handlers
Node.js
OpenJS Foundation · Programming languages & runtimes
Server-side JavaScript runtime built on the V8 engine, governed by the OpenJS Foundation, with npm as its package ecosystem
React
Meta Open Source / React team · Web frameworks & UI
Component-based JavaScript library for building user interfaces, created at Meta, with hooks, a declarative rendering model and server components
TypeScript
Microsoft · Programming languages & runtimes
Statically typed superset of JavaScript from Microsoft that compiles to plain JavaScript and powers editor tooling across the web ecosystem
Express
OpenJS Foundation · Web frameworks & UI
Minimal, unopinionated web framework for Node.js with routing and middleware, the long-standing default for HTTP servers in the Node ecosystem