Install Tailwind CSS In NextJS
Go through this:
Code
npm install -D tailwindcss postcss autoprefixer && npx tailwindcss init -p
Update `tailwind.config.js` with:
Code
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
Setup `styles/global.css` with just this:
Code
@
{ @
900; @
300; @
6; @
; @
;}
@
@
@
@
400;}
@
3 ; @
;}
@
2 ; @
;}
@
; @
;}
}
restart:
Code
netlify dev