Skip to content

πŸ”° Next.js + TS + Tailwind CSS starter template packed with useful features

License

Notifications You must be signed in to change notification settings

aulianza/next-tailwind-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

78 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

next-tailwind-starter

πŸ”° Next.js + TS + Tailwind CSS starter template packed with useful features


image

Introduction

Introducing a simple Next.js with Typescript and Tailwind CSS starter template. This custom-made template has been carefully designed to simplify complex configurations and time-consuming setups, allowing developers (me; especially) to focus on my work effortlessly.

If you find this amazing creation valuable, you're invited to use it for your own projects. I warmly welcome any helpful feedback or suggestions you may have. You can easily make your own version by copying or downloading this code repository and contribute your own fantastic ideas by submitting a Pull Request.

Features

This repository is packed with:

  • πŸŽ‰ Next.js 13.4
  • βš›οΈ React 18
  • πŸ”° TypeScript
  • πŸ’  Tailwind CSS 3
  • πŸ›’ Jest β€” Configured for unit testing
  • 🧿 Absolute Import and Path Alias β€” Import components using @/ prefix
  • πŸ“ ESLint β€” Find and fix problems in the code, also will auto sort the imports
  • ✨ Prettier β€” Format your code consistently
  • 🐢 Husky & Lint Staged β€” Run scripts on your staged files before committed
  • πŸ“Œ Conventional Commit Lint β€” Make sure to follow conventional commit
  • ♻️ Snippets β€” A collection of most useful snippets
  • 🌚 Dark Mode & Light Mode - Switch theme just one click

Getting Started

1. Clone this template using one of the three ways:

  1. Use this repository as template

  2. Using create-next-app

    npx create-next-app -e https://github.com/aulianza/next-tailwind-starter project-name
  3. Using degit

    npx degit aulianza/next-tailwind-starter YOUR_APP_NAME
  4. Deploy to Vercel or Netlify, etc

    Deploy with Vercel Deploy to Netlify

2. Install dependencies

It is encouraged to use yarn so the husky hooks can work properly.

yarn install

3. Run the development server

You can start the server using this command:

yarn dev

Open http://localhost:3000 with your browser to see the result. You can start editing the page by modifying src/pages/index.tsx.

4. Change defaults

There are some things you need to change including title, urls, favicons, etc. Don't forget to change the package name in package.json

5. Commit Message Convention

This starter is using conventional commits, it is mandatory to use it to commit changes.


License

Licensed under the MIT license.