Install Tailwind CSS with React or Next.js
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
1/** @type {import('tailwindcss').Config} */
2module.exports = {
3 content: [
4 "./app/**/*.{js,ts,jsx,tsx,mdx}",
5 "./pages/**/*.{js,ts,jsx,tsx,mdx}",
6 "./components/**/*.{js,ts,jsx,tsx,mdx}",
7 "./src/**/*.{js,ts,jsx,tsx,mdx}",
8 ],
9 theme: {
10 extend: {},
11 },
12 plugins: [],
13};
1@tailwind base;
2@tailwind components;
3@tailwind utilities;
npm run dev