Install dependencies
Install tailwindcss and its peer dependencies via npm, and then run the init command to generate both tailwind.config.js
and postcss.config.js
.
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Add the paths to all of your template files in your tailwind.config.js
file.
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
};
Add the @tailwind
directives for each of Tailwind’s layers to your ./styles/globals.css
file.
@tailwind base;
@tailwind components;
@tailwind utilities;
To deploy this project run
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Your Name - @twitter_handle - prathameshj792@gmail.com
Project Link: https://github.com/pratham0709/NETFLIX-Clone.git