Vue Themes
Vue works out of the box as a Shoppex theme framework — same Vite build pipeline, same SDK, just Vue components instead of React. The platform contract stays the same:bun installbun run build- build output in
dist/index.html
Minimal Scripts
Yourpackage.json must have scripts like:
devbuild
Minimal SDK Wiring (Framework-Agnostic)
This is the important part: initialize the SDK, then fetch storefront data.shop, products, and groups in your components.
Initial Data Injection (Optional)
If you want Shoppex to injectwindow.__SHOPPEX_INITIAL__, add the placeholder:
useStore() Composable (Composition API)
A reusable composable for loading storefront data:
Cart Reactivity
Use theshoppex:cart-changed custom event to keep cart state 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.