A modern, fast, and user-friendly landing page built with cutting-edge frontend technologies. Perfect for developers who want to kickstart their projects with a solid foundation.
Check out the live demo: View Demo
- π± Responsive Design - Works seamlessly on desktop, tablet, and mobile
- π¨ Modern UI/UX - Clean and intuitive interface with smooth animations
- β‘ Lightning Fast - Optimized for speed with Next.js
- π― Type-Safe - Built with TypeScript for better development experience
- π¨ shadcn/ui Starter Set - Includes reusable primitives (button, badge, dropdown-menu, navigation-menu)
This project uses the standard shadcn theme setup with next-themes:
ThemeProviderwrapper insrc/app/layout.tsxwith:attribute="class"defaultTheme="system"enableSystemdisableTransitionOnChange
darkMode: ["class"]enabled intailwind.config.ts- CSS variables defined in
src/app/globals.cssfor light (:root) and dark (.dark) themes.
Semantic tokens available for Tailwind utilities include:
background,foregroundcard,card-foregroundpopover,popover-foregroundprimary,primary-foregroundsecondary,secondary-foregroundmuted,muted-foregroundaccent,accent-foregrounddestructive,destructive-foregroundborder,input,ringchart-1tochart-5
Example usage:
<section className="bg-background text-foreground border-border">
<h2 className="text-primary">Semantic theme token example</h2>
<p className="text-muted-foreground">
Automatically adapts to light/dark mode.
</p>
</section>- Clone the repository:
git clone https://github.com/anibalalpizar/nextjs-shadcn-landing.git- Install dependencies:
cd nextjs-shadcn-landing
npm installStart the development server:
npm run devBuild for production:
npm run buildimport { Button } from "@/components/ui/button"
function HeroSection() {
return (
<section className="space-y-6 rounded-2xl border bg-card p-6 shadow-sm">
<p className="text-sm font-medium uppercase tracking-[0.2em] text-muted-foreground">
Launch faster
</p>
<h1 className="text-3xl font-bold tracking-tight text-foreground">
Welcome to our landing page
</h1>
<p className="max-w-xl text-muted-foreground">
Start building something amazing.
</p>
<Button>Get Started</Button>
</section>
)
}Our landing page is built with modern frontend technologies:
- React framework for production
- Type-safe JavaScript
- Utility-first CSS framework
- Re-usable components
.
βββ src/
β βββ app/
β β βββ fonts/ # Font configurations
β β βββ layout.tsx # Root layout
β β βββ page.tsx # Landing page composition
β βββ components/
β β βββ sections/ # Landing sections + section subcomponents
β β βββ ui/ # shadcn/ui components
β β β βββ badge.tsx
β β β βββ button.tsx
β β β βββ dropdown-menu.tsx
β β β βββ navigation-menu.tsx
β β βββ theme-provider.tsx
β βββ lib/ # Utility functions
β βββ types/ # TypeScript type definitions
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
βοΈ If you found this project helpful, please give it a star!

