Professional boilerplate for high-performance web animations and scalable frontend architecture featuring Vite, ESLint 9, and SASS Modules.
-
Powered by Vite.
-
Pre-configured with GSAP and @gsap/react for optimized animation lifecycles.
-
SASS Modules.
-
Strict Quality Gates:
- Husky-powered pre-commit hooks running ESLint 9 and Stylelint.
-
Pre-defined path aliases (
@/*) and atomic folder structure.
src/
├── assets/ # Static assets (fonts, images)
├── components/ # Atomic UI components (with .module.scss)
├── hooks/ # Custom React & GSAP hooks
├── styles/ # Global SCSS (reset, base, variables, mixins)
├── utils/ # Helper functions & math utilities
└── main.tsx # Application entry point
- Core: React 18, TypeScript 5, Vite
- Animation: GSAP, @gsap/react
- Styles: SASS Modules, OKLCH, PostCSS
- Quality: ESLint 9, Stylelint, Husky
-
Clone the repository:
git clonehttps://github.com/kolonatalie/react-ts-gsap-starter-kit.gitcd react-ts-gsap-starter-kit -
Install:
npm install
-
Run:
npm run dev
This starter kit includes a pre-built Example component located in src/components/Example. It serves as a live demonstration of:
- GSAP Reveal Animation: Using
useGSAPhook and scoped selectors. - Fluid Typography: Implementation of
clamp()and OKLCH color system. - SASS Modules: Scoped styling with the 7-1 pattern.
To start with a blank slate: Simply delete the src/components/Example folder and clear the App.tsx file.
npm run dev |
Starts Vite dev server at http://localhost:3000 |
npm run build |
Runs Type-check (tsc) and builds the project with Vendor Splitting (React, GSAP into separate chunks). |
npm run preview |
Locally previews the production build |
npm run lint |
Audits JS/TS and SCSS for errors. |
npm run lint:fix |
Automatically fixes linting and styling issues. |
Created by kolonatalie • Connect: LinkedIn | Portfolio
