Setup Tailwind 2.0 with Next.js in 5 Minutes

A simple guide on setting up a boilerplate Next.js application with Tailwind CSS 2.0.

thoughtstile
Feb 9, 2021

Step 1: Install Dependencies

npx create-next-app client &&
cd client &&
npm install tailwindcss@latest postcss@latest autoprefixer@latest &&
curl https://gist.githubusercontent.com/thoughtstile/b3acbd3310cd49dfe33958dff14c0273/raw/7a2c20c264bf5e1973a4503aa77bc73f9286d388/tailwind.config.js -o tailwind.config.js &&
curl…

--

--