npx create-next-app@latest --typescript
First, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
- Install Tailwind CSS with Next.js
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
npx tailwindcss init -p
- FIX:
- Documentation
npm install @headlessui/react @heroicons/react
- Heroicons Library
npm install @tailwindcss/forms
// tailwind.config.js
module.exports = {
// ...
plugins: [
// ...
require('@tailwindcss/forms'),
],
};