Modern, production-ready starter template for Next.js projects with TypeScript, TailwindCSS v4, and Sass. Includes essential developer tools for code quality and testing.
This starter provides:
Run the following command to create a new project with this Starter:
yarn create next-app my-app -e https://github.com/MikevPeeren/next-typescript-tailwindcss-sass-starter
# or
npx create-next-app my-app -e https://github.com/MikevPeeren/next-typescript-tailwindcss-sass-starter
Once the project and dependencies are finished installing, you can navigate to that directory and start up the development server with:
yarn dev
# or
npm run dev
Open http://localhost:3000 with your browser to see your new project!
yarn dev
- Starts the development serveryarn build
- Builds the app for productionyarn start
- Runs the built app in production modeyarn lint
- Runs ESLint for code lintingyarn test
- Runs Vitest test suiteyarn format
- Runs Prettier to format your codeyarn prepare
- Sets up Husky pre-commit hooksyarn precommit
- Runs Lint Staged for staged filesnext-typescript-tailwindcss-sass-starter/
โโโ app/ # Next.js App Router files
โ โโโ layout.tsx # Root layout component
โ โโโ page.tsx # Homepage component
โโโ __tests__/ # Test files
โโโ styles/ # Global styles
โ โโโ globals.scss # Global SCSS with Tailwind imports
โโโ public/ # Static assets
โโโ .husky/ # Husky git hooks
This starter uses Vitest and React Testing Library for testing. An example test is included in the __tests__
directory.
# Run tests
yarn test
This starter combines TailwindCSS and Sass for a powerful styling workflow:
styles
directoryTo learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
This project is licensed under the MIT License.