This repository is a starter template for building Obsidian plugins with Svelte 5, Vite, Bun, and Tailwind CSS.
bunvitesveltetailwindcss CLItsc + svelte-checkInstall dependencies:
bun install
Start watch mode:
bun run dev
Run only the Tailwind watcher:
bun run dev:css
Create a production build:
bun run build
Run linting:
bun run lint
Run Svelte diagnostics:
bun run svelte-check
obsidian-svelte-templatemain.js and styles.css at the plugin rootsrc/tailwind.cssesbuild pipeline has been replaced with vite build.main.js.src/tailwind.css to the release artifact styles.css.<style> blocks.The build still generates Obsidian's required top-level artifacts:
main.jsmanifest.jsonstyles.css