Theme Development
A Shoppex theme is a standalone frontend app that renders a storefront UI. You can choose the UI framework:- React
- Vue
- Svelte
- Anything else that can build to static files
- Themes are built with a Vite-style build pipeline
- The build output must be a
dist/folder withdist/index.htmland assets - Themes use the Shoppex Storefront SDK for data (store, products, cart, checkout handoff)
If you want to build themes with Vue/Svelte/etc: totally fine. Just keep the build contract the same (
bun run build β dist/).Theme vs SDK (one sentence)
Theme = UI/UX. SDK = data + cart + checkout behavior.Start Here
Most people should start with one of these goals:- I want AI to help me customize a theme Start with Build and Customize a Theme with AI
- I want to run a theme locally first Start with Quickstart
- I want to edit a real hosted theme locally and sync it back Start with Hosted Theme Sync
- I want the technical platform details Read Theme Control Plane and the reference pages after that
pull/push, start with Hosted Theme Sync. For deep integration or tooling, use the advanced pages.
Most Common Journeys
Customize with AI
Best path for beginners using Claude Code or Codex. Inspect first, change one thing, validate, preview, then publish.
Run Locally First
Start a reference theme on localhost, then come back to the AI guide once you want to edit safely.
Sync A Hosted Theme
Pull a real hosted Shoppex theme into a local folder, edit it in your own tools, then push a validated draft back.
Go Deeper
Learn the shared system behind inspect, apply, validate, preview, publish, CLI, and MCP.
More Topics
- AI Workflows β Advanced CLI and MCP-driven theme editing
- Core Contract β The framework-agnostic rules your theme must satisfy
- Build Pipeline β How Shoppex builds, injects data, and deploys to the edge
Reference Theme In This Repo
Our reference implementations are Vite + React:themes/defaultthemes/classic
themes/default/src/main.tsxthemes/default/index.html
Source Of Truth (Architecture)
If you need the βbig pictureβ:- the theme contract is documented here under Core Contract, Runtime & SDK, and Build Pipeline
- the serving infrastructure is intentionally described at a high level (implementation details may change)