Setting up Next.js with Tailwind
Published ....
Last modified ....
Share this post on BlueskySee discussion on Bluesky
I've started to use Tailwind with my personal projects as a replacement for Vanilla Extract, and I've found myself copying my tailwind settings/setup across a few different projects as I'm refreshing their setups.
Since I often need to jump back into the Tailwind docs and find their Next.js setup instructions I figured I'd share my settings here (some of which might be opinionated), which should make it easier to run this process in different projects.
1. Install Dependencies:
yarn add tailwindcss postcss autoprefixer daisyui @ds-pack/daisyui
2. Setup Tailwind Config:
Create the following tailwind.config.js file:
let path =