This is a simple template that I'll use to generate new NextJS project easily without needing to copy paste stuff from other projects of mine.
Using:
- 🎨 Tailwind CSS + PostCSS with some plugin
- 💪 Strong typing support with TypeScript
- 💻 Linting support with ESLint + Prettier for making the code much more beautiful
- 🚀 Fast compilation with ESBuild
The template is setup so you can just start working without needing to worry much about your setup.
PostCSS are configured:
Default NextJS config with:
- CSS Nesting support
- CSS import support
- CSS minifier with cssnano
Tailwind are configured:
- JIT mode
- Purging on
componenets
,lib
, andpages
- Using class for dark mode (meaning changing the html class)
- Using a True Gray version for Gray color
- No extra plugins setup, you do it yourself.
NextJS and Babel are configured:
- Using
babel-plugin-typescript-to-proptypes
plugin to automatically convert Interface to PropTypes - Using 'esbuild-loader` to make build faster (also replaced Terser with esbuild-loader).
- Webpack 5
This project is bootstrapped with yarn, but you can use other package manager. The reason why I use yarn is because vercel deployment support.
- Use this template when creating new repository
- Clone it
- Run
yarn install
to install everything - Start coding!
This template is licensed with MIT License, you can change it to whatever you want.