This example shows how to use Tailwind CSS (v2.2) with Next.js. It follows the steps outlined in the official Tailwind docs.
In local :
- Create in root folder an .env.local file
and type your firebase credentials
NEXTAUTH_URL=http://localhost:3000
GOOGLE_CLIENT_ID=YOUR GOOGLE CLIENT ID
GOOGLE_CLIENT_SECRET=YOUR GOOGLE SECRET CLIENT KEY
npx create-next-app --example with-tailwindcss with-tailwindcss-app
# or
yarn create next-app --example with-tailwindcss with-tailwindcss-app
Deploy it to the cloud with Vercel (Documentation).