A Next.js 15 landing page built with TypeScript and Tailwind CSS.
First, install the dependencies:
npm installThen, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
app/- Next.js App Router directorylayout.tsx- Root layout with font configurationpage.tsx- Main landing pageglobals.css- Global styles and Tailwind directives
tailwind.config.ts- Tailwind CSS configuration with custom design systemnext.config.mjs- Next.js configuration.cursor/rules/index.mdc- AI coding rules for this project
- Heading font: Sora (H1: 56px, H2: 48px, H3: 40px)
- Body font: Inter (Body: 20px, Caption: 16px)
- deep-space-blue: #090909
- atomic-tangerine: #ff6b35
- amber-honey: #eca406
- cetacean-blue: #01091C
- oxford-blue: #061A4B
- anti-flash-white: #F2F2F2
This project follows a few basic guidelines to keep the codebase consistent:
-
Language & stack
- Next.js 15 with the App Router.
- TypeScript for all components and utilities.
- Tailwind CSS as the main styling solution.
-
Components
- Prefer small, focused functional components.
- Reusable UI lives under
src/components/. - Shared utilities live under
src/lib/.
-
Design system
- Use the colors and typography tokens defined in
tailwind.config.ts. - Prefer semantic naming and consistent spacing.
- Use the colors and typography tokens defined in
-
Commits & branches
- Use short, descriptive commit messages (inspired by Conventional Commits):
feat: …,fix: …,chore: …,docs: …. - Work on feature branches:
feat/...,fix/...,chore/....
- Use short, descriptive commit messages (inspired by Conventional Commits):
For more details, see CONTRIBUTING.md.