How to create Next Js project with Typescript and tailwindcss
We can create next app with yarn include –typescript in the end if we want tsx files.
yarn create next-app rentalapp --typescript
cd rentalapp
yarn add -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
by executing npx tailwind creates 2 config files
tailwind.config.js
|
|
and finally we should insert bellow snippet into globals.css
styles/globals.css
|
|
yarn dev