CLI installation
The Tailwind CLI is useful when you want a simple setup without a framework. Install tailwindcss and @tailwindcss/cli, import Tailwind in an input CSS file, and run the CLI to generate the output CSS.
How the build works
Tailwind scans your source files for class candidates and generates the CSS needed for those candidates. The generated CSS is then linked from your HTML page.
Development versus production
Use watch mode during development. Your production build should generate the final CSS as part of the project's build process rather than relying on a development watcher.