This is a Next.js starter, styled using Tailwind.
I primarly use this starter myself when creating new NextJS projects, but feel free to use and alter it to your own use.
- PurgeCSS (to remove unused CSS)
- CSSNano (to minify production build)
- TailwindUI (extension to the Tailwind framework)
Clone this repository:
git clone https://github.com/techmaus/nextjs-starter-tailwind.git
npm install
npm run dev
Open http://localhost:3000 with your browser to see the result.
npm run build && npm run start
Open http://localhost:3000 with your browser to see the result.
npm run analyze
- See what ESLint & Prettier can fixnpm run fix
- Run ESLint & Prettier with the--fix
option
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
To learn more about Tailwind: