Ts nextjs tailwind starter
๐ Next.js + Tailwind CSS + TypeScript starter and boilerplate packed with useful development features
๐ ts-nextjs-tailwind-starter Next.js + Tailwind CSS + TypeScript starter packed with useful development features. Made by Theodorus Clarence The project is written primarily in TypeScript, first published in 2021. It has gained significant community traction with 3,418 stars and 614 forks on GitHub. Key topics include: absolute-imports, boilerplate, boilerplate-template, eslint, github-actions.
Next.js + Tailwind CSS + TypeScript Starter and Boilerplate
<div align="center"> <h2>๐ ts-nextjs-tailwind-starter</h2> <p>Next.js + Tailwind CSS + TypeScript starter packed with useful development features.</p> <p>Made by <a href="https://theodorusclarence.com">Theodorus Clarence</a></p> </div>Features
This repository is ๐ battery packed with:
- โก๏ธ Next.js 14 with App Router
- โ๏ธ React 18
- โจ TypeScript
- ๐จ Tailwind CSS 3 โ Configured with CSS Variables to extend the primary color
- ๐ Pre-built Components โ Components that will automatically adapt with your brand color, check here for the demo
- ๐ Jest โ Configured for unit testing
- ๐ Absolute Import and Path Alias โ Import components using
@/prefix - ๐ ESLint โ Find and fix problems in your code, also will auto sort your imports
- ๐ Prettier โ Format your code consistently
- ๐ถ Husky & Lint Staged โ Run scripts on your staged files before they are committed
- ๐ค Conventional Commit Lint โ Make sure you & your teammates follow conventional commit
- โฐ Release Please โ Generate your changelog by activating the
release-pleaseworkflow - ๐ท Github Actions โ Lint your code on PR
- ๐ Automatic Branch and Issue Autolink โ Branch will be automatically created on issue assign, and auto linked on PR
- ๐ฅ Snippets โ A collection of useful snippets
- ๐ Open Graph Helper Function โ Awesome open graph generated using og, fork it and deploy!
- ๐บ Site Map โ Automatically generate sitemap.xml
- ๐ฆ Expansion Pack โ Easily install common libraries, additional components, and configs.
See the ๐ feature details and changelog ๐ for more.
You can also check all of the details and demos on my blog post:
Getting Started
1. Clone this template using one of the three ways
-
Use this repository as template
Disclosure: by using this repository as a template, there will be an attribution on your repository.
I'll appreciate if you do, so this template can be known by others too ๐

-
Using
create-next-appbashpnpm create next-app -e https://github.com/theodorusclarence/ts-nextjs-tailwind-starter ts-pnpmIf you still want to use pages directory (is not actively maintained) you can use this command
bashnpx create-next-app -e https://github.com/theodorusclarence/ts-nextjs-tailwind-starter/tree/pages-directory project-name -
Using
degitbashnpx degit theodorusclarence/ts-nextjs-tailwind-starter YOUR_APP_NAME -
Deploy to Vercel
2. Install dependencies
It is encouraged to use pnpm so the husky hooks can work properly.
bashpnpm install
3. Run the development server
You can start the server using this command:
bashpnpm 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.
Find all comments with !STARTERCONF, then follow the guide.
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.
Projects using ts-nextjs-tailwind-starter
<!-- TEMPLATE - [sitename](https://sitelink.com) ([Source](https://github.com/githublink)) - [sitename](https://sitelink.com) -->Are you using this starter? Please add your page (and repo) to the end of the list via a Pull Request. ๐
Expansion Pack ๐ฆ
This starter is now equipped with an expansion pack.
You can easily add expansion such as React Hook Form + Components, Storybook, and more just using a single command line.
Check out the expansion pack repository for the commands
App Router Update
Due to App Router update, the expansion pack is currently outdated. It will be updated in the future. You can still use them by copy and pasting the files.
Contributors
Showing top 12 contributors by commit count.
