A ready-to-go SvelteKit blog starter template integrating Supabase, Tailwind CSS (with Typography and Forms), DaisyUI, and Docker (with Docker Compose). Itβs designed to help you quickly launch a production-ready blog with dynamic routes, markdown-style content formatting, and a seamless development workflow.
SvelteKit: Server-side rendering (SSR) and filesystem-based routing for lightning-fast pages.
Supabase: Backend-as-a-Service for authentication and database (PostgreSQL) integration.
Tailwind CSS: Utility-first styling with:
@tailwindcss/typography
for elegant prose formatting.@tailwindcss/forms
for consistent form element styles.DaisyUI: Prebuilt Tailwind component library for buttons, cards, navbars, alerts, and themes.
Dynamic Routing: File-based routing with [id]
folders for individual blog posts.
Docker & Docker Compose:
Environment Config: .env
file for Supabase credentials (excluded from Git via .gitignore
).
BlogPost
table (columns: id
, Title
, Desc
, Body
).git clone https://github.com/<your-username>/myblog-template.git
cd myblog-template
Copy the example env file and fill in your Supabase credentials:
cp .env.example .env
# Edit .env:
# VITE_SUPABASE_URL=https://xyz.supabase.co
# VITE_SUPABASE_ANON_KEY=your-anon-key
Start the live-reload development server in Docker:
docker-compose up --build
.svelte
, JS, and CSS files reload instantly.Build and run the SSR app in Docker:
docker-compose -f docker-compose.prod.yml up --build -d
myblog-template/
βββ src/
β βββ lib/
β β βββ supabaseClient.js # Supabase client setup
β βββ routes/
β βββ +layout.svelte # Global layout with navbar & footer
β βββ +page.svelte # Home landing page
β βββ blog/
β βββ +page.js # Fetch list of posts
β βββ +page.svelte # Render list of posts (cards)
β βββ [id]/
β βββ +page.js # Fetch single post
β βββ +page.svelte# Post detail with `prose` styling
βββ app.css # Tailwind base, components, utilities
βββ tailwind.config.js # Tailwind + DaisyUI + plugin config
βββ postcss.config.cjs # PostCSS with Tailwind wrapper
βββ Dockerfile # Production Dockerfile
βββ Dockerfile.dev # Dev Dockerfile with live reload
βββ docker-compose.yml # Compose for dev
βββ docker-compose.prod.yml # Compose for prod
βββ .env.example # Example environment variables
βββ README.md # This file
git checkout -b feature/my-feature
)git commit -m "Add my feature"
)git push origin feature/my-feature
)