Skip to content

alexandr-g/nextjs-tailwind-starter

Repository files navigation

A minimalist NextJS + TailwindCSS starter

An example uses a minimum setup for NextJS in combination with Tailwind for styling. You can clone or fork a repository to play around or use it for your needs.

Screenshot 2020-05-20 at 17 38 47

Demo

Visit https://nextjs-tailwind-example.now.sh/ for live demo

Available Scripts

In the project root directory you can run:

  • npm run dev - runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

  • npm run build - builds the app for production.

  • npm start - serves npm run build output on the http://localhost:3000

Notes

  • Alternatively to direct dependency on autoprefixer, you could install and add postcss-preset-env plugin in the postcss.config.js file.

  • To remove unused CSS, this example uses Tailwind CSS purge option.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •