• Stars
    star
    2,919
  • Rank 15,537 (Top 0.4 %)
  • Language
    TypeScript
  • Created over 3 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ”‹ Next.js + Tailwind CSS + TypeScript starter and boilerplate packed with useful development features

Next.js + Tailwind CSS + TypeScript Starter and Boilerplate

πŸ”‹ ts-nextjs-tailwind-starter

Next.js + Tailwind CSS + TypeScript starter packed with useful development features.

Made by Theodorus Clarence

GitHub Repo stars Depfu Last Update

Features

This repository is πŸ”‹ battery packed with:

  • ⚑️ Next.js 13
  • βš›οΈ 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-please workflow
  • πŸ‘· 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
  • πŸ‘€ Default Open Graph β€” 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:

  1. 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 πŸ˜„

    Use as template

  2. Using create-next-app

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

    npx degit theodorusclarence/ts-nextjs-tailwind-starter YOUR_APP_NAME
  4. Deploy to Vercel

    Deploy with Vercel

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.

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

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.

CleanShot.2021-12-04.at.18.54.07-trimmed.mp4

Check out the expansion pack repository for the commands

More Repositories

1

theodorusclarence.com

πŸ’  Personal website and blog made using Next.js, TypeScript, Tailwind CSS, MDX Bundler, and Prisma with PostgreSQL
MDX
664
star
2

notiolink

⚑ Self-hostable branded link shortener built with Next.js & Notion API
TypeScript
198
star
3

rhf-stepform

🦘Step form built using React Hook Form, Yup, Typescript, and Zustand
TypeScript
164
star
4

aether-design-system

πŸ”† Aether serves as the building block for some of my team projects.
TypeScript
134
star
5

og

πŸ‡ Open Graph Generator made using @vercel/og for personal use
TypeScript
116
star
6

expansion-pack

πŸ”‹ Useful stack expansion for ts-nextjs-tailwind-starter
TypeScript
102
star
7

vite-react-tailwind-starter

==== No longer actively maintained ==== Vite + React + Tailwindcss starter. React Router, and React Helmet preconfigured.
JavaScript
36
star
8

nextjs-tailwind-starter

A starter for Next.js and Tailwindcss, with Seo component.
JavaScript
32
star
9

rhf-input

React Hook Form Input Defaults
JavaScript
31
star
10

learn-auth-redirect-nextjs

Learning auth redirect on Next.js to prevent content flashing
JavaScript
31
star
11

dialog-manager

πŸ’¬ Dialog Manager using TypeScript, Zustand with Immer, and Tailwind CSS
TypeScript
25
star
12

recursive-component

TypeScript
19
star
13

lhokutang

πŸ’° App to track debt with your housemates
TypeScript
17
star
14

nextjs-with-auth-hoc

TypeScript
16
star
15

nextjs-fetch-usecase

Thorough explanation of how to choose between CSR, SSG, SSR, or ISR on Next.js
TypeScript
16
star
16

now-playing-spotify

JavaScript
13
star
17

learn-hover-radial-gradient

TypeScript
13
star
18

nextjs-csr-ssg-isr

Examples of 4 fetch methods in Next.js, explanation available in my blog https://theodorusclarence.com/blog/nextjs-fetch-method
TypeScript
13
star
19

react-patterns

TypeScript
10
star
20

git-emergency

πŸ”₯ save your work, then yourself
Shell
10
star
21

seasfor.us

Find beach clean-up events in your local coastal area
TypeScript
8
star
22

docs

πŸ“ Personal documentation about my best practices on development
TypeScript
8
star
23

Tailwindcss-Injector

Firefox Addons for Injecting Tailwindcss Classes from CDN
JavaScript
4
star
24

wa-helper

A WhatsApp helper to avoid saving number to your contacts.
JavaScript
4
star
25

ta-multistepform

Sandbox for final project: refactoring PPDB Jatim from CI to Next.js
TypeScript
4
star
26

ios-custom-tab-swipe-gesture

Swift
4
star
27

love4heroes

An app to send thank you cards to frontline workers. The mission of this app is to let people share gratitude for frontline workers.
JavaScript
4
star
28

chat-app

JavaScript
3
star
29

rhf-multiple-select

example for dependent select option
TypeScript
3
star
30

react-loading-state-pattern

πŸ”₯ Hassle free asynchronous pattern using React Hot Toast, and SWR
TypeScript
3
star
31

grafkom-pertemuan-2

Triangle, Circle with WebGL
JavaScript
2
star
32

test-issue-autolink

TypeScript
2
star
33

task-manager-api

JavaScript
2
star
34

sxceosleague

StudentsxCEOs League website repository. Created with Next.js and Tailwindcss
JavaScript
2
star
35

dotfiles

Shell
2
star
36

learn-msw

Learn MSW with Next.js to mock server and browser request
TypeScript
2
star
37

learn-replicache-prisma

TypeScript
2
star
38

expansion-pack-demo

Demo & testing repository for ts-nextjs-tailwind-starter expansion pack
TypeScript
2
star
39

petrolida-2021

This is a website for Petrolida 2021 by SPE ITS SC. Made with Next.js, Tailwindcss, and GSAP.
JavaScript
2
star
40

learn-react-image-magnify

TypeScript
1
star
41

git-tips

1
star
42

learn-release-please

Test repository for release-please github actions
TypeScript
1
star
43

demo-responsive

HTML
1
star
44

fp-sisop-A08-2021

C
1
star
45

learn-nextts-auth

TypeScript react context example for user authentication. Also has full-page loader to prevent content flash
TypeScript
1
star
46

theodorusclarence

1
star
47

jarkom-shift2-gns

Shell
1
star
48

excalidraw-blog

Excalidraw files for my blog
1
star
49

learn-scrollspy

Example code of Scrollspy effect, useful for table of contents.
TypeScript
1
star
50

progate-calculator

Assignment to make calculator.
JavaScript
1
star
51

responsive-website-build

SCSS
1
star
52

learn-nextjs-cloudinary-loader

JavaScript
1
star
53

ios-360-skybox

Swift
1
star