Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexandr-g/nextjs-tailwind-starter

Unofficial minimalistic NextJS + Tailwind CSS starter kit
https://github.com/alexandr-g/nextjs-tailwind-starter

nextjs nextjs-tailwind postcss tailwind tailwind-css tailwindcss

Last synced: 17 days ago
JSON representation

Unofficial minimalistic NextJS + Tailwind CSS starter kit

Awesome Lists containing this project

README

        

# A minimalist NextJS + TailwindCSS starter

An example uses a minimum setup for [NextJS](https://nextjs.org/) in combination with [Tailwind](https://tailwindcss.com/) 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](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](https://preset-env.cssdb.org/) plugin in the `postcss.config.js` file.

- To remove unused CSS, this example uses Tailwind CSS [`purge` option](https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css).