Installation via Tailwind CLI
Tailwind CSS Project setup using a Tailwind CLI
✅ Steps to follow to complete Tailwind CSS Setup Successfully
Start by initializing the project using npm
`npm init -y`
This command creates a package.json file in our project directory
Install
tailwindcss
via npmCreate your
tailwind.config.js
file.Add the paths to all of your template files in your
tailwind.config.js
file.Add the Tailwind directives to your CSS
src/index.cssStart the Tailwind CLI build process Run the CLI tool to scan your template files for classes and build your CSS.
Start using Tailwind in your HTML
Last updated
Was this helpful?