svelte-vite-tailwind-template Svelte Themes

Svelte Vite Tailwind Template

SvelteKit Template - A modern, lightning-fast Svelte template built with SvelteKit, TypeScript, and Tailwind CSS. Perfect for building your next web application with a beautiful blue-purple gradient design theme.

SvelteKit Template

A modern, lightning-fast Svelte template built with SvelteKit, TypeScript, and Tailwind CSS. Perfect for building your next web application with a beautiful blue-purple gradient design theme.

Features

  • 🟠 Svelte 5 - Truly reactive framework with runes
  • šŸš€ SvelteKit - Web development framework for Svelte
  • šŸ“˜ TypeScript - Type safety and enhanced developer experience
  • šŸŽØ Tailwind CSS - Utility-first CSS framework
  • šŸŒ™ Dark Mode - Built-in dark mode support
  • šŸ“± Responsive - Mobile-first responsive design
  • ⚔ Vite - Next-generation frontend tooling
  • šŸŽÆ Production Ready - Optimized build configuration

Project Structure

svelte-vite-tailwind-template/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ lib/
│   │   └── components/   # Reusable components (Header, Footer)
│   ā”œā”€ā”€ routes/           # File-based routing
│   │   ā”œā”€ā”€ about/        # About page
│   │   ā”œā”€ā”€ services/     # Services page
│   │   ā”œā”€ā”€ contact/      # Contact page
│   │   ā”œā”€ā”€ +layout.svelte  # Root layout
│   │   └── +page.svelte    # Home page
│   ā”œā”€ā”€ app.css           # Global styles with Tailwind directives
│   └── app.html          # HTML template
ā”œā”€ā”€ static/               # Static assets
└── svelte.config.js      # SvelteKit configuration

Getting Started

Prerequisites

  • Node.js 18+ and npm

Installation

  1. Clone the repository:

    git clone https://github.com/ishansasika/svelte-vite-tailwind-template.git
    cd svelte-vite-tailwind-template
    
  2. Install dependencies:

    npm install
    
  3. Start the development server:

    npm run dev
    
  4. Open your browser and navigate to http://localhost:5173

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run preview - Preview production build
  • npm run check - Run svelte-check for type checking
  • npm run check:watch - Run svelte-check in watch mode

Pages

  • Home - Landing page with hero, features, stats, and CTA sections
  • About - Mission, tech stack, values, and team information
  • Services - Service offerings with color-coded cards
  • Contact - Contact form and information

Customization

Colors

The template uses a blue-purple gradient theme. To customize the colors, modify the Tailwind classes in the components:

  • Primary gradient: from-blue-600 to-purple-600
  • Background gradients: from-blue-50 to-purple-50

Update the logo letter in Header.svelte and Footer.svelte:

<span class="text-white font-bold text-xl">S</span>

Branding

Replace "SvelteKit" with your brand name in:

  • src/lib/components/Header.svelte
  • src/lib/components/Footer.svelte
  • src/routes/+layout.svelte (title tag)

Technologies

License

MIT License - feel free to use this template for your projects!

Author

Created with ā¤ļø by Ishan Sasika

Top categories

Loading Svelte Themes