next-typescript-tailwindcss-sass-starter Tailwind Templates

Next Typescript Tailwindcss Sass Starter

Use TypeScript, TailwindCSS & Sass to quick start your new Next.js app!!

Next.js TypeScript TailwindCSS & Sass Starter

License Next.js Version React Version TailwindCSS Version

Modern, production-ready starter template for Next.js projects with TypeScript, TailwindCSS v4, and Sass. Includes essential developer tools for code quality and testing.

โœจ Features

This starter provides:

  • App Router - Next.js 15.2 with the latest App Router architecture
  • Modern React - Uses React 19.1 with latest features and optimizations
  • Type Safety - Full TypeScript integration with strict type checking
  • Modern Styling - TailwindCSS v4.0 with Sass support for advanced styling
  • Testing Ready - Vitest and React Testing Library pre-configured
  • Code Quality - ESLint, Prettier, Husky, and Lint-Staged for high-quality code
  • Performance Analysis - Bundle analyzer for optimizing your app's size
  • Developer Experience - Hot reloading, organized project structure

๐Ÿงฐ Tech Stack

โšก๏ธ Quick Start

๐Ÿš€ Getting Started

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!

๐Ÿ“ Available Scripts

  • yarn dev - Starts the development server
  • yarn build - Builds the app for production
  • yarn start - Runs the built app in production mode
  • yarn lint - Runs ESLint for code linting
  • yarn test - Runs Vitest test suite
  • yarn format - Runs Prettier to format your code
  • yarn prepare - Sets up Husky pre-commit hooks
  • yarn precommit - Runs Lint Staged for staged files

๐Ÿ“‹ Project Structure

next-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

๐Ÿงช Testing

This starter uses Vitest and React Testing Library for testing. An example test is included in the __tests__ directory.

# Run tests
yarn test

๐Ÿ’… Styling

This starter combines TailwindCSS and Sass for a powerful styling workflow:

  • TailwindCSS for utility-first CSS
  • Sass for more complex styling needs
  • Organized global styles in the styles directory

๐Ÿ› ๏ธ Development Tools

  • ESLint: Configured with Next.js recommended rules
  • Prettier: Maintains consistent code style
  • Husky: Runs checks before commits
  • Lint Staged: Runs linters against staged git files

๐Ÿ“š Learn More About Next.js

To 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!

๐Ÿ“„ License

This project is licensed under the MIT License.

Top categories

Loading Svelte Themes