Skip to content

Repository files navigation

πŸš€ Shadcn/ui landing

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.

Node.js JavaScript

🌐 Live Demo

Check out the live demo: View Demo

Deploy with Vercel

✨ Features

  • πŸ“± 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)

πŸŒ— Theme Provider + Semantic Tokens

This project uses the standard shadcn theme setup with next-themes:

  • ThemeProvider wrapper in src/app/layout.tsx with:
    • attribute="class"
    • defaultTheme="system"
    • enableSystem
    • disableTransitionOnChange
  • darkMode: ["class"] enabled in tailwind.config.ts
  • CSS variables defined in src/app/globals.css for light (:root) and dark (.dark) themes.

Semantic tokens available for Tailwind utilities include:

  • background, foreground
  • card, card-foreground
  • popover, popover-foreground
  • primary, primary-foreground
  • secondary, secondary-foreground
  • muted, muted-foreground
  • accent, accent-foreground
  • destructive, destructive-foreground
  • border, input, ring
  • chart-1 to chart-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>

πŸ› οΈ Installation

  1. Clone the repository:
git clone https://github.com/anibalalpizar/nextjs-shadcn-landing.git
  1. Install dependencies:
cd nextjs-shadcn-landing
npm install

πŸš€ Usage

Start the development server:

npm run dev

Build for production:

npm run build

πŸ’» Code Examples

Component Usage

import { 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>
  )
}

πŸ› οΈ Tech Stack

Our landing page is built with modern frontend technologies:

  • Next.js - React framework for production
  • TypeScript - Type-safe JavaScript
  • Tailwind CSS - Utility-first CSS framework
  • shadcn/ui - Re-usable components

πŸ“Š Project Structure

.
β”œβ”€β”€ 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

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

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!

About

πŸš€ Free and open-source landing page template built with Next.js and Shadcn UI.

Topics

Resources

Stars

20 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages