Tailwind CSS 4 · Building CSS

Build and watch for changes

Scan your files for classes and rebuild the CSS whenever they change.

npx @tailwindcss/cli -i ./src/input.css -o ./src/output.css --watch

Official Tailwind CSS 4 documentation

More building css commands

All building css commands · Tailwind CSS 4 cheatsheet

Was this page helpful?