sveltekit-blog-starter Svelte Themes

Sveltekit Blog Starter

SvelteKit blog starter with Markdown support, Tailwind CSS, and SSG.

SvelteKit Blog Starter

A minimal, beautiful blog template built with SvelteKit, MDsveX, and Tailwind CSS.

✨ Features

  • šŸ“ MDsveX — Write blog posts in Markdown with Svelte component support
  • šŸŽØ Tailwind CSS — Utility-first styling with @tailwindcss/typography
  • šŸŒ™ Dark Mode — System-aware with manual toggle
  • šŸ” SEO Ready — Meta tags, Open Graph, and structured data
  • šŸ“” RSS Feed — Auto-generated at /rss.xml
  • ⚔ Fast — SvelteKit's file-based routing and SSG/SSR support
  • šŸ“± Responsive — Looks great on all devices
  • šŸ·ļø Tags — Categorize posts with tags

šŸš€ Quick Start

# Clone the repo
git clone https://github.com/kszongic/sveltekit-blog-starter.git
cd sveltekit-blog-starter

# Install dependencies
npm install

# Start dev server
npm run dev

Open http://localhost:5173 to see your blog.

šŸ“ Project Structure

src/
ā”œā”€ā”€ posts/              # Markdown blog posts
│   ā”œā”€ā”€ hello-world.md
│   └── getting-started.md
ā”œā”€ā”€ routes/
│   ā”œā”€ā”€ +layout.svelte  # Root layout
│   ā”œā”€ā”€ +page.svelte    # Homepage (recent posts)
│   ā”œā”€ā”€ blog/           # Blog listing + [slug] pages
│   ā”œā”€ā”€ about/          # About page
│   └── rss.xml/        # RSS feed endpoint
└── lib/
    ā”œā”€ā”€ components/     # Header, Footer, BlogLayout
    └── posts.js        # Post loading utility

āœļø Writing Posts

Add a .md file to src/posts/:

---
title: My Post Title
description: A brief description for SEO and previews
date: '2024-02-01'
tags:
  - webdev
  - svelte
published: true
layout: blog
---

Your content here. **Markdown** and Svelte components both work!

Set published: false to hide a draft.

šŸŽØ Customization

  • Colors — Edit CSS variables in src/app.css
  • Typography — Customize in tailwind.config.js
  • Layout — Modify components in src/lib/components/
  • Site info — Update titles in +layout.svelte and rss.xml/+server.js

🚢 Deployment

Works with any SvelteKit adapter:

npm run build

Deploy to Vercel, Netlify, Cloudflare Pages, or any Node.js host.

šŸ“„ License

MIT — use it however you like.


⭐ Star this repo if you find it useful!

Top categories

Loading Svelte Themes