Svelte Themes
You can build a Shoppex theme with Svelte (for example,@sveltejs/vite-plugin-svelte).
The platform contract stays the same:
bun installbun run build- build output in
dist/index.html
Minimal SDK Wiring (Framework-Agnostic)
Optional: Initial Data Injection
If yourindex.html contains:
Svelte Store Pattern
Use Svelteβswritable stores to manage storefront data:
Cart Store with Event Listener
A reactive cart store that stays in sync across components:Next Steps
Cart & Checkout
Add to cart, coupons, and the full checkout flow.
Theme Settings
Load published settings and apply them via CSS variables.
Theme Config
Define sections and settings in
theme.config.ts.SDK Reference
Complete SDK method reference for themes.