A Next.js boilerplate with modular architecture and strict conventions.
yarn devOpen http://localhost:3000 to see the result.
features/: Page-specific componentscomponents/ui/: Reusable components (Button, Icons, etc.)components/layout/: Layout components (Header, Footer)components/shared/: Components shared between features
hooks/: Reusable business logic (performance, scroll, animations, etc.)
layout/: Specific layouts (default.tsx)
providers/: Global contextsperformance.provider.tsx: Performance managementsmooth-scroll.provider.tsx: Smooth scrollroot.tsx: Root provider
- CSS Variables:
styles/tailwind.css - Global Spacing: Variables
--x-default,--y-defaultwith variants (half, double) - Padding/Margin:
padding-x-default,margin-y-double-default, etc. - Colors and fonts: Declared in
:rootand@theme
styles/abstracts/: Mixins and keyframesstyles/base/: Reset, fonts, Lenisstyles/components/: Typography and componentsstyles/main.scss: Main entry point
- Typography: Classes
.h1,.h2,.h3,.p1,.p2,.p3in_typography.scss - Fonts: Font declarations in
_fonts.scss - Global Variables: SCSS for typography, Tailwind for spacing
- Mixins:
_mixins.scss - Animations:
_keyframes.scss
yarn format # Format code
yarn check # Check without fixing
yarn lint # Linter- Automatic formatting with ESLint
- Prettier for CSS property ordering
- Husky for Git hooks
yarn dev # Development with Turbopack
yarn build # Production build
yarn start # Production server
yarn format # Format with ESLint
yarn check # Check code- Next.js 15 with Pages Router
- React 19 + TypeScript
- GSAP for animations
- Lenis for smooth scroll
- Tailwind CSS 4 + SCSS
- ESLint + Prettier for code quality