Learning Tailwind CSS
npm init -y // This initializes the directory as a NodeJs project
npm install -D tailwindcss postcss autoprefixer vite // installs required packages
npx tailwindcss init -p
Create a CSS file "input.css", add it to your html and edit it with this content: @tailwind base; @tailwind componenets; @tailwind utilities;
In your tailwind.config.js file replace content:[], with content:["*"].
Add "start":"vite" to your scripts in package.json
Run npm run start command to start a dev server