Next.js Landing Page with Dark Mode - Startup
A free Next.js startup website template with dark mode, Tailwind CSS, and TypeScript, ready for SaaS or business sites.
By NextJSTemplates nextjstemplates/startup-nextjs 1,687 stars
Introduction
Startup is a free, open‑source landing page template built with Next.js, React, Tailwind CSS v4 and TypeScript. It includes dark‑mode support and a set of ready‑made sections such as hero, pricing, testimonials, blog pages and a video modal. The project is aimed at startup founders and SaaS developers who need a quick starting point for a business website.
What this project offers
- A complete Next.js application with a modern design.
- Dark‑mode toggle powered by next‑themes.
- TypeScript‑typed components and data models.
- Pre‑styled sections (hero, pricing, testimonials, blog, contact, etc.).
- Responsive layout (handled by Tailwind utilities).
Main features
- Dark mode (enabled by default).
- TypeScript support throughout the codebase.
- Hero section with background image and call‑to‑action.
- Pricing tables with multiple plans.
- Testimonials carousel.
- Blog list and detail pages.
- Video modal component for embedding promotional videos.
Technology stack
- Next.js 16.4.6 (React framework)
- React 19.3.1
- Tailwind CSS 4.3.5
- TypeScript 6.0.3
- PostCSS 8.5.33
- next‑themes for dark‑mode handling
- ESLint and Prettier for code quality
Requirements
- Node.js ≥ 20
- npm (comes with Node.js)
Installation
- Download the project
# The ZIP file is provided at /download/startup-landing.zip
unzip /download/startup-landing.zip -d startup-landing
cd startup-landing
- Install dependencies
npm install
- Run the development server (optional, to preview while developing)
npm run dev
Open http://localhost:3000 in a browser to see the site.
- Build the production version
npm run build
The build creates a .next folder that contains the compiled server‑side and client assets.
- Start the production server
npm start
The site will be available at http://localhost:3000.
If you prefer to serve the built files with a custom server (e.g., Docker, PM2), use the contents of the .next directory together with the next start command.
Configuration
- Tailwind configuration is in
tailwind.config.js(generated by the Tailwind CLI). - Next.js settings are in
next.config.js; remote image patterns are defined there. - TypeScript options are in
tsconfig.json. - Theme switching can be customized in
src/components/Common/ThemeSwitcher(if present) or by editing thenext-themesprovider insrc/app/providers.tsx.
Customizing the project
- Pages: Edit files under
src/app/(e.g.,src/app/about/page.tsxfor the About page). - Components: Reuse or modify components in
src/components/. Each folder groups related UI parts (e.g.,Hero,Pricing,Testimonials). - Styling: Global Tailwind styles are in
src/styles/index.css. Add custom utilities or extend the Tailwind config as needed. - Images: Place or replace images in
public/images/. Thepublicfolder is served statically.
Project structure
LICENSE
README.md
jsconfig.json
next-env.d.ts
next.config.js
package.json
postcss.config.js
public/
favicon.ico
images/
src/
app/
layout.tsx
page.tsx
providers.tsx
... (section pages)
components/
Header/
Footer/
Hero/
Pricing/
Testimonials/
Video/
video-modal.tsx
... (other UI parts)
styles/
index.css
types/
blog.ts
brand.ts
feature.ts
menu.ts
testimonial.ts
tsconfig.json
Tips
- Run
npm run lintto check for code style issues. - Use
npm run devwhile editing to get hot‑module reloading. - The dark‑mode toggle works automatically; you can set the default mode in the
next-themesprovider. - To add new pages, create a folder under
src/app/with apage.tsxfile; Next.js will route it automatically.
License and attribution
This project is licensed under the MIT License. See the LICENSE file for the full text.
Original repository: https://github.com/nextjstemplates/startup-nextjs
When redistributing or using the template, keep the license file intact and credit the original author as required by the MIT license.
Use this prompt with an AI coding assistant (Claude Code, Cursor, Copilot, ChatGPT and similar).
- Download the ZIP and put the project next to your own code.
- Fill in the bracketed parts, such as
[describe your stack]. - Paste the prompt into your assistant and review each change it proposes.
# Integrate Startup **Role** You are a senior frontend developer assisting me in adding the Startup Next.js template into my existing web application. **Project description** Startup is a free, open‑source Next.js landing‑page template built with Tailwind CSS v4, TypeScript, and React 19. It includes dark‑mode support, a hero section, pricing, testimonials, blog pages, and a video modal. The project is built with Next.js 16.4.6 and requires Node >=20. **Source project** - Repository: https://github.com/nextjstemplates/startup-nextjs - License: MIT - Framework: Tailwind CSS v4 - Build tooling & dependencies (from `package.json`): - `next` 16.4.6 - `react` ^19.3.1, `react-dom` ^19.3.1 - `tailwindcss` ^4.3.5, `@tailwindcss/postcss` ^4.3.5 - `postcss` ^8.5.33, `next-themes` ^0.4.6 - `typescript` ^6.0.3, `eslint` ^9, `prettier` ^3.10.1, `autoprefixer` ^10.6.2 - Scripts: `dev`, `build`, `start`, `lint` **Target project context** - Stack: `[describe your stack, e.g., Laravel 11 + Blade]` - UI insertion point: `[where the UI should go, e.g., inside a <div id="landing">]` - Existing CSS framework: `[e.g., Bootstrap 5, plain CSS, etc.]` **Integration objectives** - Bring over the landing‑page layout, header, hero, features, pricing, testimonials, blog list/detail pages, and video modal. - Preserve existing authentication, routing, state management, and data layers. - Keep dark‑mode toggle functional within the host app. **Required components** - `src/app/layout.tsx` (overall page wrapper) - `src/app/page.tsx` (home page) - `src/app/about/`, `src/app/contact/`, `src/app/pricing/`, `src/app/blog/`, `src/app/blog-details/` (content pages) - `src/components/Header/`, `Footer/`, `Hero/`, `Features/`, `Pricing/`, `Testimonials/`, `Video/`, `video‑modal.tsx`, `ScrollToTop/` (UI pieces) - `src/styles/index.css` (Tailwind entry) - `public/images/**` (all images used by the template) **Layout and styling requirements** - Prefix Tailwind utilities to avoid clashes, e.g., add `tw-` prefix in `tailwind.config.js` (`prefix: 'tw-'`). - Scope imported Tailwind CSS to a wrapper element that encloses the Startup UI (`<div class="tw-container">`). - Map any design tokens (colors, fonts) to the host app’s variables if they exist; otherwise keep the template’s defaults. **Asset management** - Copy `src/styles/index.css` into the host project’s stylesheet directory and import it where Tailwind is processed. - Copy the entire `public/images/` folder into the host app’s public assets folder, preserving the same relative paths. - Do not duplicate Tailwind, PostCSS, or React packages; rely on the host app’s existing installations if they match the required versions. - If the host uses a bundler (Webpack, Vite, etc.), add the template’s component files to the bundler’s entry points or import them as needed. **Routing and navigation** - Map the template’s pages to existing routes, e.g., - `/` → existing home (embed Startup home inside) - `/about` → host’s about page or a new sub‑route `/startup/about` - `/pricing` → host’s pricing route or `/startup/pricing` - `/blog` and `/blog/[slug]` → host’s blog routes or prefixed with `/startup`. - Keep the host’s URL structure unchanged; use Next.js `Link` components that point to the desired paths. **Responsive requirements** - The template is not marked as responsive in its metadata, but Tailwind’s default breakpoints are present. Verify layout on mobile, tablet, and desktop and add missing responsive utilities if needed. **Accessibility requirements** - Ensure all interactive elements have accessible names (`aria-label`, `role`). - Verify color contrast for both light and dark modes. - Confirm that the video modal traps focus and can be closed with `Esc`. **Compatibility requirements** - Node >=20, Next.js 16.4.6, Tailwind 4.3.5, React 19.3.1. - Run the template’s `npm run build` step to generate the `.next` output before copying any compiled assets. - Align TypeScript versions (`^6.0.3`) with the host project; adjust `tsconfig.json` includes if necessary. **Preserve the existing application** - First, inspect the current codebase before modifying any file. - Do not replace authentication, routing, state, or data layers. - Make only small, reviewable changes (add new files, update imports, adjust config). - Ask for confirmation before deleting or overwriting any existing file. **Testing and verification checklist** - [ ] Run the host app’s build and start scripts without errors. - [ ] Verify that the Startup UI appears in the designated area. - [ ] Check dark‑mode toggle works and respects the host’s theme setting. - [ ] Confirm all imported images load correctly. - [ ] Test navigation to each new page (home, about, pricing, blog list, blog detail, contact). - [ ] Validate responsive layout on at least three viewport sizes. - [ ] Run accessibility audit (e.g., axe) and fix any violations. - [ ] Ensure existing functionality (auth, API calls, state) remains unaffected. - [ ] Review bundle size; ensure no duplicate libraries are included. - [ ] Commit changes with clear messages and open a pull request for review.



