Rapidly build modern websites without ever leaving your HTML.
open sourceMITself-hostablefree
Tailwind CSS is a utility-first CSS framework: you style elements with small classes such as flex, pt-4 and text-center in your markup, add dark: or a breakpoint in front of any utility, and the build removes every class you don't use, so most projects ship under 10 kB of CSS. Version 4 is configured in CSS (@theme for design tokens, @utility and @variant for your own), uses cascade layers, container queries and P3 colours, and runs as a Vite plugin, a PostCSS plugin, a CLI (also a standalone executable without Node.js) or a Play CDN. It is MIT-licensed and made by Tailwind Labs, which announced in September 2026 that it is joining Shopify; the official tools include the Tailwind CSS IntelliSense extension for VS Code and a Prettier plugin that sorts classes.
Ways to install
Package managers
Problems it solves
- I'm tired of inventing class names and maintaining huge stylesheets that only ever grow
- style components directly in the markup without switching between HTML and CSS files
- our production CSS bundle is hundreds of kilobytes of rules nobody uses
- add dark mode and responsive breakpoints to every element without writing media queries
- define our brand colours, fonts and spacing once as design tokens and use them everywhere
- a CSS framework that doesn't make every site look like the same Bootstrap template
- build CSS for a Rails or Laravel app without Node.js, using a single downloadable binary
- keep the order of long utility class lists consistent across the team automatically
- get autocomplete and linting for CSS class names in my editor
- use container queries, P3 colours and cascade layers without hand-writing modern CSS
- prototype a page in the browser with utility classes from a CDN before setting up a build
- my coding agent writes inline styles everywhere; give it a shared vocabulary of utility classes instead
Features
- utility classes for layout, spacing, typography, colour, transitions, gradients, filters, 3D transforms and grid
- dark: and breakpoint variants on any utility; container queries with @container
- unused CSS removed at build time; most projects ship under 10 kB of CSS
- CSS-first configuration: @theme design tokens as CSS variables, @utility and @variant for your own
- cascade layers, P3 colours and logical properties for RTL
- Vite plugin, PostCSS plugin, CLI and Play CDN
- standalone CLI executables for macOS, Linux and Windows that don't need Node.js
- official Tailwind CSS IntelliSense extension for VS Code (autocomplete, linting, hover previews)
- official Prettier plugin that sorts classes in the recommended order
- @plugin to load v3-style JavaScript plugins such as @tailwindcss/typography
Limitations
- Doesn't work with Sass, Less or Stylus: Tailwind CSS v4 isn't designed to be used with CSS preprocessors2
- Doesn't support older browsers: v4 depends on Chrome 111, Safari 16.4 and Firefox 128 or newer2
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what Tailwind CSS does.
- StyleX The expressive, type-safe, composable, predictable and themeable styling system for ambitious interfaces
- Panda CSS Universal, type-safe, CSS-in-JS framework for design systems
- Bootstrap The most popular HTML, CSS, and JS library in the world
- UnoCSS The instant on-demand atomic CSS engine
- Bulma Free, open source, and modern CSS framework based on Flexbox
- Open Props Expertly crafted web design tokens
