https://github.com/mikevpeeren/next-typescript-tailwindcss-sass-starter
Use TypeScript, TailwindCSS & Sass to quick start your new Next.js app!!
https://github.com/mikevpeeren/next-typescript-tailwindcss-sass-starter
css html javascript nextjs nextjs-starter nextjs-template react sass starter starter-template tailwind tailwind-css tailwindcss template typescript vercel vercel-deployment
Last synced: 3 days ago
JSON representation
Use TypeScript, TailwindCSS & Sass to quick start your new Next.js app!!
- Host: GitHub
- URL: https://github.com/mikevpeeren/next-typescript-tailwindcss-sass-starter
- Owner: MikevPeeren
- License: mit
- Created: 2021-12-02T19:53:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-30T19:41:31.000Z (10 days ago)
- Last Synced: 2025-04-30T20:44:07.910Z (10 days ago)
- Topics: css, html, javascript, nextjs, nextjs-starter, nextjs-template, react, sass, starter, starter-template, tailwind, tailwind-css, tailwindcss, template, typescript, vercel, vercel-deployment
- Language: TypeScript
- Homepage: https://next-typescript-tailwindcss-sass-starter.vercel.app
- Size: 2.04 MB
- Stars: 39
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Next.js TypeScript TailwindCSS & Sass Starter
![]()
![]()
![]()
![]()
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
- โก๏ธ [Next.js 15.2](https://nextjs.org/) - React framework with App Router
- โ๏ธ [React 19.1](https://reactjs.org/) - JavaScript library for building user interfaces
- ๐งช [Vitest 3.0](https://vitest.dev/) - Next generation testing framework
- ๐ง [TailwindCSS v4.0](https://tailwindcss.com/) - Utility-first CSS framework
- โจ [TypeScript 5.8](https://www.typescriptlang.org/) - Strongly typed programming language
- ๐ [Sass 1.86](https://sass-lang.com/) - Professional grade CSS extension language
- ๐ [ESLint v9.23](https://eslint.org/) - Find and fix problems in JavaScript code
- ๐ฆ [Prettier 3.5](https://prettier.io/) - Opinionated code formatter
- ๐ถ [Husky 9.1](https://github.com/typicode/husky) - Git hooks to improve commits
- ๐งน [Lint Staged 15.5](https://github.com/okonet/lint-staged) - Run linters against staged git files
- ๐ [@next/bundle-analyzer](https://www.npmjs.com/package/@next/bundle-analyzer) - Analyze your project bundles## โก๏ธ Quick Start
[](https://vercel.com/new/project?template=https://github.com/MikevPeeren/next-typescript-tailwindcss-sass-starter)
## ๐ Getting Started
Run the following command to create a new project with this Starter:
```bash
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:
```bash
yarn dev
# or
npm run dev
```Open [http://localhost:3000](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.
```bash
# 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:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
## ๐ License
This project is licensed under the MIT License.