svelte-docs-starter Svelte Themes

Svelte Docs Starter

A modern documentation template built with Svelte 5, MDSvex, and TailwindCSS. Create beautiful, accessible documentation with features like automatic navigation, dark mode, search, and more.

Documentation Template

A modern documentation template built with Svelte 5, MDSvex, and Tailwind CSS.

Template Preview

Overview

Create beautiful, modern documentation sites with minimal setup. This template combines the power of Svelte 5 with the flexibility of Markdown to deliver a superior documentation experience.

Features

  • šŸ“š MDSvex Integration - Write documentation in Markdown with Svelte components
  • šŸŽØ Modern Design - Built with Tailwind CSS and shadcn/ui components
  • šŸŒ™ Dark Mode - Automatic dark mode with system preference detection
  • šŸ” Search - Built-in search functionality powered by FlexSearch
  • šŸ“± Responsive - Mobile-first design that works on all devices
  • šŸ“‘ Auto-Navigation - Automatic documentation structure generation
  • šŸ“– Table of Contents - Dynamic table of contents for each page
  • āš” Fast - Optimized for speed and performance
  • šŸ”’ Type Safe - Full TypeScript support

Quick Start

  1. Click the green "Use this template" button
  2. Create a new repository
  3. Clone your repository:
    git clone https://github.com/yourusername/your-repo-name.git
    
  4. Install dependencies:
    cd your-repo-name
    npm install
    
  5. Start the development server:
    npm run dev
    

Project Structure

your-project/
ā”œā”€ā”€ src/
ā”‚   ā”œā”€ā”€ content/          # Documentation markdown files
ā”‚   ā”œā”€ā”€ lib/
ā”‚   ā”‚   ā”œā”€ā”€ components/   # Core components
ā”‚   ā”‚   ā”‚   ā”œā”€ā”€ document/ # Document-related components
ā”‚   ā”‚   ā”‚   ā”œā”€ā”€ home/     # Home page components
ā”‚   ā”‚   ā”‚   ā””ā”€ā”€ ui/       # UI components
ā”‚   ā”‚   ā”œā”€ā”€ hooks/        # Custom hooks
ā”‚   ā”‚   ā”œā”€ā”€ types/        # TypeScript type definitions
ā”‚   ā”‚   ā”œā”€ā”€ config.ts     # Site configuration
ā”‚   ā”‚   ā”œā”€ā”€ index.ts      # Library exports
ā”‚   ā”‚   ā””ā”€ā”€ utils.ts      # Utility functions
ā”‚   ā”œā”€ā”€ routes/           # SvelteKit routes
ā”‚   ā”œā”€ā”€ app.css          # Global styles
ā”‚   ā”œā”€ā”€ app.d.ts         # TypeScript declarations
ā”‚   ā””ā”€ā”€ app.html         # HTML template
ā””ā”€ā”€ static/              # Static assets

Writing Documentation

Place your markdown files in the src/content directory. The folder structure will automatically generate the navigation.

---
title: Getting Started
description: Learn how to use this template
---

# Getting Started

Write your documentation here...

Customization

Themes

Modify the theme in src/app.css or use pre-built themes from shadcn-svelte.

Components

Customize components in src/lib/components to match your brand.

Configuration

Update site settings in src/lib/config:

export const siteConfig = {
    title: 'Your Documentation',
    description: 'Your site description',
    // ...other settings
};

Development

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

Deployment

This template can be deployed to any static hosting platform:

  • Vercel
  • Netlify
  • GitHub Pages
  • Cloudflare Pages

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - use this template for any project.

Acknowledgments

Support

Need help with your documentation? Contact us.

Top categories

Loading Svelte Themes